Closed JeroenVanHoye closed 5 months ago
@JeroenVanHoye thank you very much for reporting this issue. It seems like the current parser cannot handle the inline notation for nested structs. PR #15261 removes the misleading configuration example... To solve your issue, you need to use the explicit notation
[[inputs.opcua]]
...
[[inputs.opcua_listener.group]]
name = "08TT20305"
namespace = "2"
identifier_type = "s"
default_tags = {tank = "F08200"}
sampling_interval = "1s"
[[inputs.opcua_listener.group.nodes]]
name = "Val_PV"
identifier = "0:08TT20305.HMI.Val_PV"
monitoring_params = {sampling_interval="0s", queue_size=10, discard_oldest=true, data_change_filter={trigger="Status", deadband_type="Absolute", deadband_value=0.0}}
[[inputs.opcua_listener.group.nodes]]
name = "Val_PVNotSim"
identifier = "0:08TT20305.HMI.Val_PVNotSim"
monitoring_params = {sampling_interval="0s", queue_size=10, discard_oldest=true, data_change_filter={trigger="Status", deadband_type="Absolute", deadband_value=0.0}}
...
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf v1.30.1, Windows Server 2022
Docker
No response
Steps to reproduce
1.add monitoring params from the example configuration to a node 2.run the configuration 3. ...
Expected behavior
Run with no errors
Actual behavior
Throws an arror about nog being able to unmarchal the TOML array
Additional info
Config works without these optional parameters. But I would like to configure the dead band. Would be nice to configure these parameters as a group settings as well instead of having to repeat it in each node.