-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNMP input unknown ifAlias_1 #5735
Comments
Can you run these commands and add the output:
|
|
|
I think I see whats going on here, In the past using This is the same issue described in #4326 (comment). I briefly describe a workaround there: you will need to use the
If you are using
Once your current shard expires any queries against the new data will work with the original query again, but you will probably want to keep the workaround in place until all old data has been removed by a retention policy. Closing the issue, but let me know if you have any follow up questions. |
Hello thanks for looking into it, I understand your workaround but the thing is my new Telegraf agent doesn't write any data in the |
The Setup in a new database so as not to mess up real data.
Insert a fake point in the way Telegraf 1.5 does, both field and tag are added with same name:
Insert a fake point in the way Telegraf 1.10 does, only the tag:
Here we can see the field and tag have the same name:
Now if we query all, they appear as
It may be more clear with this query using aliases, you can see it is the tag that is missing:
It might be easiest if we work through an actual query, if you could show me one that is giving you trouble I think I will be able to help you get it working. |
Thanks for the precision ! |
Actual behavior:
I try to migrate from an environment where a container run Telegraf 1.5 to an environment where a VM run Telegraf 1.10.
The Telegraf configuration is identical as the InfluxDB environment.
I use Influxdb Relay to provide HA and request buffering.
When the data is written from the new environment, only the
ifAlias_1
field is populated, when the data is written from the original environment, bothifAlias
TAG andifAlias_1
field are populated.I don't know when or how was created this
ifAlias_1
and why Telegraf 1.10 doesn't write in the appropriate TAGifAlias
.Request filtered on
host=70b61eba915f
: that's the telegraf agent 1.5.select * from interface_snmp where agent_host='cpe1-mgmt1.mediam.fr-avs.intercloud.fr' and host='70b61eba915f' AND time >='2019-04-16T16:00:00Z' AND time <='2019-04-16T17:00:00Z';
Request filtered on
host=svcmon0-ld5
: that's the telegraf agent 1.10.select * from interface_snmp where agent_host='cpe1-mgmt1.mediam.fr-avs.intercloud.fr' and host='svcmon0-ld5' AND time >='2019-04-16T16:00:00Z' AND time <='2019-04-16T17:00:00Z';
Expected behavior:
The snmp value should be written in the
ifAlias
tag and not in anifAlias_1
field.System info:
Linux svcmon0-ld5 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Telegraf 1.10.0 (git: HEAD fe33ee89)
Docker image
telegraf:1.5-alpine
Telegraf v1.5.3 (git: release-1.5 1e519698)
Linux pa2-server2.intercloud.fr 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
InfluxDB v1.7.4 (git: 1.7 ef77e72f435b71b1ad6da7d6a6a4c4a262439379)
Steps to reproduce:
I didn't managed to reproduce the issue on a similar environment : same Telegraf instance and Relay setup, different InfluxDB server (running the same version and databases).
I don't know from where come this field, I checked the configuration and nothings refers it.
Relevant telegraf.conf:
Additional info:
The text was updated successfully, but these errors were encountered: