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

Add support for PodMonitor #304

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

Conversation

shlomitubul
Copy link

Add support for using PodMonitor

Signed-off-by: ShlomiTubul <[email protected]>
@jetstack-bot jetstack-bot added the dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. label Feb 24, 2024
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign wallrj for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jetstack-bot jetstack-bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 24, 2024
@jetstack-bot
Copy link
Contributor

Hi @shlomitubul. Thanks for your PR.

I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jetstack-bot jetstack-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 24, 2024
@erikgb
Copy link
Contributor

erikgb commented Feb 24, 2024

Hi @shlomitubul! Can you explain why you cannot use a ServiceMonitor? This PR adds a lot of additional complexity, and ServiceMonitor and PodMonitor are quite equivalent in function, ref. prometheus-operator/prometheus-operator#3119.

@shlomitubul
Copy link
Author

@erikgb we want to reduce the use of k8s service when it's not needed as the metrics service only exists to give ServiceMonitor access

@jetstack-bot jetstack-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 26, 2024
Signed-off-by: shlomi tubul <[email protected]>
@jetstack-bot jetstack-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 7, 2024
@shlomitubul
Copy link
Author

@erikgb is there anything from my end that need to be handled ?

@erikgb
Copy link
Contributor

erikgb commented Mar 13, 2024

@erikgb is there anything from my end that need to be handled ?

I would personally solve your use case (minimize the number of services) differently. Since trust-manager already has a webhook service, I would use this service to scrape metrics also. And keep the ServiceMonitor - to reduce Helm chart complexities. But I'll leave the decision to the maintainers. Maybe @inteon has an opinion?

@cert-manager-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
/lifecycle stale

@cert-manager-prow cert-manager-prow bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants