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

Enable Prometheus metrics without ServiceMonitor #3244

Closed
prashcr opened this issue Jun 14, 2023 · 9 comments
Closed

Enable Prometheus metrics without ServiceMonitor #3244

prashcr opened this issue Jun 14, 2023 · 9 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@prashcr
Copy link

prashcr commented Jun 14, 2023

Is your feature request related to a problem?
I want to enable Prometheus metrics on aws-load-balancer-controller without creating a ServiceMonitor and having Prometheus Operator on my Kubernetes cluster. This is because I'm using an alternative Prometheus collector: Grafana Agent.

Currently the Helm chart defines a single serviceMonitor.enabled variable to enable both the Prometheus metrics service and the ServiceMonitor.

Describe the solution you'd like
The Helm charts defines a new metrics.enabled variable. The metrics Service is created if metrics.enabled OR serviceMonitor.enabled

Related
aws/eks-charts#959

@oliviassss
Copy link
Collaborator

@prashcr, thanks for bringing this up, feel free to raise a PR.

@prashcr
Copy link
Author

prashcr commented Jun 22, 2023

@oliviassss Thanks, here it is: #3245

@darren-recentive
Copy link

@oliviassss @orsenthil @jerryhe1999
Anything I can do to help in finishing up this Issue / PR? 😄

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 10, 2024
@Helinanu
Copy link

Is the pending PR still valid? Would really like this feature since we cannot use prometheus operator

@qoehliang
Copy link

Would be awesome if we could get the PR merged. Our use case is we use Argo CD sync-waves to deploy several open-source applications in a particular sequence. We currently use the kube-prometheus-stack and aws-load-balancer-controller, and it creates a circular dependency when using sync-waves. E.G. kube-prometheus-stack can't become healthy until the Ingress is healthy, which is dependent on the aws-load-balancer-controller being up and available. However, if we attempt to place aws-load-balancer-controller first in priority using a faster sync wave, it will fail to sync if we enable ServiceMonitors as the CRD hasn't been deployed by the kube-prometheus-stack yet.

If we disable ServiceMonitors for aws-load-balancer-controller to unblock this issue and create the ServiceMonitor via a separate application, we also lose the creation of the Service which is not ideal. Hence, this PR would fix the issue and allow us to use metrics.enabled flag to enable creation of the Service but not the ServiceMonitor, so that we can sequence the aws-load-balancer-controller to sync first, so that the kube-prometheus-stack can then sync afterwards and the Ingress resource can become healthy.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 10, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

@k8s-ci-robot k8s-ci-robot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2024
@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

7 participants