Skip to content

feat: remove some resource labels from prometheus metrics#330

Open
obs-gh-alexlew wants to merge 1 commit into
mainfrom
alew/remove-pod-metric-labels
Open

feat: remove some resource labels from prometheus metrics#330
obs-gh-alexlew wants to merge 1 commit into
mainfrom
alew/remove-pod-metric-labels

Conversation

@obs-gh-alexlew
Copy link
Copy Markdown
Contributor

No description provided.

- k8s.container.name
- container.id
labels:
- tag_name: app.kubernetes.io/name
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WOW AWESOME, thanks for doing this!

{{- include "config.processors.attributes.k8sattributes" . | nindent 2 }}

{{- include "config.processors.resource.observe_common" . | nindent 2 }}
resource/drop_additional_pod_metrics_labels:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we reasonably confident that this won't break any downstream datasets customers could have created?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no way to know really. These labels existed and after this they won't so if they are relying/filtering on them then that would break things. We could also draft this change as a major version change (and ideally roll it together with the removal of TRACE_TOKEN)

@obs-gh-mattcotter obs-gh-mattcotter removed their assignment Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants