-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(kube-monitoring): Add Pod service discovery #553
base: main
Are you sure you want to change the base?
feat(kube-monitoring): Add Pod service discovery #553
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for resuming from the discussion. Let's discuss inline.
## Example which selects all Pods to be monitored | ||
## with label "monitoredby" with values any of "example-pod-1" or "example-pod-2" | ||
selector: | ||
matchExpressions: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description is a copy paste error I assume.
Either we copy the original or I would comment it out.
## Example which selects all Pods to be monitored | |
## with label "monitoredby" with values any of "example-pod-1" or "example-pod-2" | |
selector: | |
matchExpressions: [] | |
## Custom definition to pick up specific pods with an expression. | |
# selector: | |
## matchExpressions: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This leads to a failed linting. What is the error here?
matchLabels: | ||
greenhouse/scrape: "true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want to add this label everywhere needed or put it the other way around and add some do-not-scrape
style?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer an opt-in. Otherwise, we cannot ensure that multiple pods are scraped.
Fixes #552