I started seeing this pop up with the latest version of telegraf:
DeprecationWarning: Option "tags" of plugin "inputs.opcua" deprecated since version 1.25.0 and will be removed in 1.35.0: use 'default_tags' instead
I am defining my nodes using the inline notation like so:
nodes = [
{name="name",namespace="2",identifier_type="s",identifier="TAG.PATH",tags=[["label1","value1"],["label2","value2"]]},
]
I have unique tags for every entry in the nodes array.
If I switch tags
to default_tags
like the warning says I get his error that prevents telegraf from starting:
E! loading config file /etc/telegraf_configs/config-2.conf failed: error parsing opcua, line 20: (input.NodeSettings.DefaultTags) cannot unmarshal TOML array into map[string]string (need slice)
Reading through the telegraf opcua input plugin documentation I see this statement:
Inline notation (default_tags not supported yet)
So I guess the toml unmarshling error makes sense. In that case what is the recommended way to apply tags using the inline notation? Is the functionality no longer supported?
I have pretty big telegraf config files (10k - 30k lines each), and if I can’t use the inline notation it will probably quadruple the line count, which feels extreme.