influxdata / influxdata/telegraf

Prometheus plugin: expose Kubernetes annotations as tags

Open
#8,793 2 comments 0 reactions 0 assignees View on GitHub
area/prometheus feature request
Dominant language
Go
Stars
17.8k
Forks
5.8k
Avg merge
1d 20h
Merged PRs (30d)
161

Description

## 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.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Prometheus plugin's Kubernetes container discovery and existing tag construction. Trace how discovered metadata is selected for tags, then define the option and behavior needed to expose annotations and verify that annotation-derived tags can filter the resulting data in Elastic.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes, prometheus
Domain
observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.