Global tags can be specified in the [global_tags] table in key=“value” format. All metrics that are gathered will be tagged with the tags specified. Global tags are overriden by tags set by plugins.
It’s useful when using telegraf to:
Run a single telegraf collection, outputting metrics to stdout:
telegraf --config telegraf.conf --test
It’s also useful to change debug=true in the agent portion of your confing.
Thank you!! After reading and practicing with --test a few times I think the lightbulb has clicked. I just needed to add [inputs.snmp.tags] Its funny how everything is obvious in hindsight. just in case anyone has the same question in the future, this is what I learned:
testing the config in my first post (before adding the [global_tags] section) yielded the output below.
Notice how the global tags are now listed in the output as “center = unknown” etc.
The next step was to add [inputs.snmp.tags] and define them as below: