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

Added ServiceMonitor to facilitate Prometheus target discovery #9

Merged
merged 9 commits into from
Nov 15, 2022

Conversation

esteinerMW
Copy link
Member

Create ServiceMonitor conditionally if enabled in values.yaml and CRD is available (installed).
Tie ServiceMonitor to Prometheus deployment via configurable label-selection in values.yaml
Updated values.yaml inline comments and aligned indentation of inner template yaml file.

Tested the following Prometheus scenarios:

@NBonfattiMW
Copy link
Collaborator

I believe we need to disable the prometheus annotations when the servicemonitor is present. I know we didn't get any scraping in our test cluster without the servicemonitor, but it seems there could be situations where having both would result in double scraping:

https://gitlab.com/gitlab-org/charts/gitlab-runner/-/issues/361
kubernetes-sigs/aws-load-balancer-controller#2601

@NBonfattiMW NBonfattiMW merged commit 9eae4c3 into main Nov 15, 2022
@esteinerMW esteinerMW deleted the staging branch March 1, 2023 19:41
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.

None yet

2 participants