Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for adding custom labels to ServiceMonitor #905

Open
suyash-811 opened this issue Apr 30, 2024 · 0 comments
Open

Support for adding custom labels to ServiceMonitor #905

suyash-811 opened this issue Apr 30, 2024 · 0 comments

Comments

@suyash-811
Copy link

suyash-811 commented Apr 30, 2024

Hi,
We are currently trying to set-up Tempo Monolithic as our tracing backend. We would like to scrape metrics from the tempo instance using a serviceMonitor CR. We enabled the serviceMonitor by setting .spec.observability.metrics.serviceMonitors.enabled==true in the CRD.

While the serviceMonitor is successfully created, there is no way to add custom labels to it. Adding such labels would help to select a desired serviceMonitor based on the label.

Is it possible to have this functionality? Maybe an extra configuration block in the CRD to add extra labels to the serviceMonitor CR?
Or the serviceMonitor could also copy all labels from the tempo monolithic / stack instance.

Looking forward to some discussion on this 😄

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

No branches or pull requests

1 participant