-
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 - Support for custom tags #997
Comments
+1 on this. It would be very useful. |
this is now available in 1.0 RC 1 with the new SNMP plugin, please see here to download the latest version: https://github.com/influxdata/telegraf#linux-deb-and-rpm-packages, and the changelog for details on the new SNMP plugin. |
Are you sure you can do Custom Tags with the SNMP input model now like what wgrcunha shows above as an example? I don't see any documentation of it. |
@osiris123d It looks like this issue probably shouldn't have been closed, as you can't set static tags on a per agent basis. What you can do now, and I think this is what most people needed, is something like in this example where you can apply a snmp field as a tag: [[inputs.snmp]]
agents = [ "127.0.0.1:161" ]
version = 2
community = "public"
[[inputs.snmp.field]]
oid = "TEST::hostname"
is_tag = true
[[inputs.snmp.table]]
oid = "TEST::testTable"
inherit_tags = "hostname" If you are really after static tags, keep an eye on #3773 which should give you what you are looking for. |
Hello,
Currently we use the same telegraf instance to monitor "n" snmp devices, will be good if we can set custom tags per host, something like this:
[[inputs.snmp.host]]
address = "ip:161"
tag_foo = "bar"
Is possible to implement it?
Thanks!
The text was updated successfully, but these errors were encountered: