New to Telegraf, trying to move a large Collectd setup across. There are many config files, and I’m starting with this one.
I have a config file that has a handful of definitions for individual measurements (if_errors, if_octets, etc.), and then many host definitions. In each host definition, we specify the IP Address, the name, and which of the previously defined measurements to collect. it is very simple, and looks a lot like how the “snmp_legacy” plugin worked.
I’m having real trouble understanding how to translate this into a config for the new snmp plugin, however. For instance, I understand that I can have multiple agents defined in an
[[inputs.snmp]] section, but I cannot see how I can name them individually. If they are not named, they will all be tagged by IP address, which will make setting up visualisations in Grafana a nightmare.
So. Is there a way that I can avoid having one
[[inputs.snmp]] section per switch, with 95% of the information duplicated between them, where I can name each agent? I can’t rely on the snmp hostname being accurate.