influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.57k stars 5.56k forks source link

Prometheus plugin: expose Kubernetes annotations as tags #8793

Open sandervandegeijn opened 3 years ago

sandervandegeijn commented 3 years ago

Feature Request

It would be nice to have the option to also import and expose the Kubernetes annotations for discovered containers as tags.

Proposal:

Expose annotations as tags

Current behavior:

-

Desired behavior:

Expose annotations as tags

Use case:

This would enable us to tag containers with our Terraform deploys and filter the data in Elastic based on the annotations.

powersj commented 2 years ago

Hi,

Sorry, no one has gotten back to you yet. Is this something you are still interested in? If so, could you provide an example of what the annotations look like and what you might be expecting in telegraf?

Thanks

sandervandegeijn commented 2 years ago

Yes I would be interested in this, we annotate our containers with metadata (like the business for which it is running). It would be nice to be able to collect all of this in one go and be able to report over it :)