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

Improvement Hint: inherit_tags = ["sysName"] #22

Open
zeroflow opened this issue Jun 12, 2019 · 1 comment
Open

Improvement Hint: inherit_tags = ["sysName"] #22

zeroflow opened this issue Jun 12, 2019 · 1 comment

Comments

@zeroflow
Copy link

Hi,

I saw your post on the Ubiquiti forums and it helped a lot.

I noticed, that all the SNMP tables did lack the sysName information.

If you add inherit_tags = ["sysName"] to each table, you can get the name of the Device from Unifi into your series to group by device name or so on

   #  Ethernet interfaces
   [[inputs.snmp.table]]
     oid = "UBNT-UniFi-MIB::unifiIfTable"
     inherit_tags = ["sysName"]
     [[inputs.snmp.table.field]]
       is_tag = true
       oid = "UBNT-UniFi-MIB::unifiIfName"
@WaterByWind
Copy link
Owner

WaterByWind commented Feb 6, 2020

The agent_host tag already exists natively. This is the tag used for the device selector on the dashboard.

Adding 'sysName' as an inherited tag shouldn't affect cardinality so if this is used instead of agent_host it could be added with minimal impact to the indices. It might seem to be redundant but perhaps there is a use case?

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

2 participants