Hello,
I have a structure that is SQL Server + Telegraf + Prometheus + Grafana.
I was able to configure my telegraf agent to use multiple custom SQL Queries to get the data needed.
Now I need to escalate this to multiple servers and multiple DBs.
All the DB’s have the same structure.
My question: is it possible to have a connection.conf (for example) and use this to point the same query to the different sql servers?
I didn’t want to
[[inputs.sql]]
[[inputs.sql.query]]
dsns = “server1”
query=" select 1 "
[[inputs.sql]]
[[inputs.sql.query]]
dsns = “server2”
query=" select 1 "
Thanks