Skip to content
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

Closed
wgrcunha opened this issue Apr 8, 2016 · 4 comments
Closed

Snmp - Support for custom tags #997

wgrcunha opened this issue Apr 8, 2016 · 4 comments

Comments

@wgrcunha
Copy link

wgrcunha commented Apr 8, 2016

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!

@joelsdc
Copy link

joelsdc commented May 17, 2016

+1 on this. It would be very useful.

@phemmer phemmer mentioned this issue Jun 20, 2016
3 tasks
sparrc added a commit that referenced this issue Jul 28, 2016
closes #1371
closes #808
closes #1361
closes #1151
closes #997
closes #1163
closes #856
closes #1043
closes #961
closes #1389
sparrc added a commit that referenced this issue Jul 28, 2016
closes #1371
closes #808
closes #1361
closes #1151
closes #997
closes #1163
closes #856
closes #1043
closes #961
closes #1389
sparrc added a commit that referenced this issue Jul 28, 2016
closes #1371
closes #808
closes #1361
closes #1151
closes #997
closes #1163
closes #856
closes #1043
closes #961
closes #1389
sparrc added a commit that referenced this issue Jul 28, 2016
closes #1371
closes #808
closes #1361
closes #1151
closes #997
closes #1163
closes #856
closes #1043
closes #961
closes #1389
sparrc added a commit that referenced this issue Aug 3, 2016
closes #1371
closes #808
closes #1361
closes #1151
closes #997
closes #1163
closes #856
closes #1043
closes #961
closes #1389
@sparrc
Copy link
Contributor

sparrc commented Aug 23, 2016

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.

@sparrc sparrc closed this as completed Aug 23, 2016
@osiris123d
Copy link

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.

@danielnelson
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants