Sending part of Tag Values to InfluxDB

telegraf
#1

Hi,

My Tag Key(envDetails) and this Tag Values are as follows:

envDetails

prod-cluster1-20170513
dev-cluster1-20170513
qa-cluster1-20170513
prod-cluster1-20170512
dev-cluster1-20170512
qa-cluster1-20170512

While sending metrics from Telegraf to InfluxDB, I want to avoid writing the date present in my values… i.e., 20170513, 20170512 etc…

Means, I want to send only the Tag values like below and strip out the date from the original Tag Values:

envDetails

prod-cluster1
dev-cluster1
qa-cluster1
prod-cluster1
dev-cluster1
qa-cluster1

Please let me know if there is any configuration possible in Telegraf to do this…
Appreciate early response

Thanks

#2

Telegraf can’t do this yet, but we are discussing adding a feature that should handle this here.

You can do this using Kapacitor though. You would need to send the data from Telegraf to Kapacitor and have it add the modified points to InfluxDB.