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

feat(kube-monitoring): Add Pod service discovery #553

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

richardtief
Copy link
Member

Fixes #552

@richardtief richardtief requested a review from a team as a code owner December 12, 2024 13:52
Copy link
Contributor

@ibakshay ibakshay left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

Copy link
Contributor

@viennaa viennaa left a 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.

Comment on lines +251 to +254
## Example which selects all Pods to be monitored
## with label "monitoredby" with values any of "example-pod-1" or "example-pod-2"
selector:
matchExpressions: []
Copy link
Contributor

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.

Suggested change
## 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: []

Copy link
Member Author

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?

Comment on lines +258 to +259
matchLabels:
greenhouse/scrape: "true"
Copy link
Contributor

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?

Copy link
Member Author

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.

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.

[kube-monitoring] Add service discovery for pods
3 participants