I using Telergaf (version:Telegraf 1.23.0 ) postgres plugin to gather and send so custom query metrics to Wavefront.
I have the following plugin config
>># cat postgresql.conf
[[inputs.postgresql_extensible]]
address ="host=<RDS_ENDPOINT> port=<PORT> user=<USER> password=<PzASS> dbname=<DB> sslmode=require"
[[inputs.postgresql_extensible.query]]]
sqlquery = "SELECT * FROM pg_stat_database"
How can I add a tag to this config, in such a way that it will override the global tag in wavefront config. [[outputs.wavefront]]
The ultimate goal is to query different RDS instances (PRE,SBX,PRD) from using this telegraf agent and to differentiate them using tags in the wavefront dashboard.
Tried to use following but still the value is from global tag tags = {environment="pre"} tagpass = ["environment=pre"]