1
20.1 Legacy Series / Get metrics from unbound via telegraf
« on: May 04, 2020, 10:19:37 am »
I'm trying to get statistics from unbound with telegraph. So far I have these lines added to the telegraf config:
But I get the following error:
When I execute the command on the shell I also get an error but without the square brackets it works.
But how can I remove these brackets from the telegraf?
Code: [Select]
[[inputs.unbound]]
binary = "/usr/local/sbin/unbound-control"
thread_as_tag = false
But I get the following error:
Code: [Select]
E! [inputs.unbound] Error in plugin: error gathering metrics: error running unbound-control: exit status 1 (/usr/local/sbin/unbound-control [stats_noreset])
When I execute the command on the shell I also get an error but without the square brackets it works.
Code: [Select]
/usr/local/sbin/unbound-control stats_noreset
But how can I remove these brackets from the telegraf?