I am using a prometheus plugin in Telegraf to get the data from promitor and push it to InfluxDB. However, as per my requirement there is one tag named as "resource_name" and it contains multiple values let's say ["A", "B", "C", "D", "E", "F", "G", "H"]. Out of these values I only want ["A", "B", "C", "D", "E"] and these only values should be inserted into InfluxDB.
To achieve my requirement I am using below plugin and using tagpass to allow only specific values.
[[inputs.prometheus]]
metric_version = 2
name_suffix = "_promitor_abcd"
urls = ["http://IP:Port/metrics"]
tagexclude = [ "host", "url" ]
[inputs.prometheus.tagpass]
resource_name = [ "A", "B", "C", "D", "E" ]
After using this when I run this configuration file I am still able to see all the values in InfluxDB under "resource_name" tag or column and not the values which I specified above in my configuration file.
Can anybody help me to understand what went wrong here and how to push only specific values in influxDB?