So I have telegraf configured with a default “telegraf” database. In telegraf.d, I have configurations for different inputs and would like for them to send their metrics to different databases for example:
[[inputs.exec]]
commands = ["/usr/bin/speedtest -f json-pretty"]
name_override = "Speedtest"
timeout = "1m"
interval = "5m"
data_format = "json"
json_string_fields = [ "interface_externalIp",
"server_name",
"server_location",
"server_host",
"server_ip",
"result_url" ]
#A configuration here pointing to influxdb "speedtest"
So all other input files inside telegraf.d would send data to the default “telegraf” database but this one inputs.exec.
I can provide more information if It doesn’t make sense.
Thank you.