I use telegraf to query a postgres server. I am setup with about a dozen *.conf
files in the config directory - each one for a single query + params. Everything works with regards to the config; however sometimes the queries error and I have a hard time knowing which/when of my dozen queries it is that is erroring... I just get a bunch of errors like this:
E! [inputs.postgresql_extensible] Error in plugin: [some postgres error...]
What would be super nice of Telegraf is if it said something like Error in plugin [file_name.conf]
or anything that gave me a clue. How can I do this? I actually though that setting name_override
would, but it apparently doesn't.
Here is an example of how all my queries/conf files are structured:
[[inputs.postgresql_extensible]]
address = "***redacted***"
max_lifetime="10m"
name_override="txn_count"
prepared_statements = false
[[inputs.postgresql_extensible.query]]
sqlquery="[some query]"