Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Support name_override for metrics_version: 2 #134

Open
jmickey opened this issue Dec 28, 2023 · 0 comments
Open

Support name_override for metrics_version: 2 #134

jmickey opened this issue Dec 28, 2023 · 0 comments

Comments

@jmickey
Copy link

jmickey commented Dec 28, 2023

When using metrics_version: 2 with the prometheus plugin all metrics are stored in InfluxDB under the measurement name prometheus (see here).

The operator should support a simple method of overriding this name for telegraf sidecars via the name_override property on the prometheus input plugin. I suggest adding an annotation:

telegraf.influxdata.com/metric-v2-name-override

The only way to currently achieve this is to use the telegraf.influxdata.com/inputs annotation to configure the prometheus plugin, and ignore the other annotations.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant