It would be useful to be able to configure Telegrafs' exec input plugin in order to implement custom monitoring.
I'd suggest something like:
service {
monitoring {
telegraf {
input {
exec test1 {
command "/config/my_custom_monitoring_script.sh"
format csv
}
exec test2 {
command "/config/foo.sh"
format influx
}
}
}
}
}To generate a config fragment like
[[inputs.exec]]
commands = [
"/config/my_custom_monitoring_script.sh"
]
data_format = "csv"
[[inputs.exec]]
commands = [
"/config/foo.sh"
]
data_format = "influx"