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

Improve auto-detection when multiple Prometheus instances are installed #8028

Open
kurthaegeman opened this issue Mar 12, 2024 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@kurthaegeman
Copy link

What would you like to be added:
I would like for an improved or assisted way to be implemented for Lens to detect the correct Prometheus instance when multiple instances are deployed on the cluster. The current k get svc -A approach to auto-detection appears to pick the first Prometheus service it finds, but that might not be the main one. Maybe with the help of some labels or annotations, we can tag the correct service for Lens to find and avoid all developers having to hardcode the Prometheus path?

Why is this needed:
Applications like Kubecost come with their own Prometheus install, optimised for their purpose.

Kubecost strongly recommends installing Kubecost with the bundled Prometheus in most environments.

However, since its installation, it is the Kubecost Prometheus service that gets auto-detected by Lens and not the main install.

Screenshot 2024-03-12 at 09 50 16

  • Kubernetes distribution: RKE-deployed on-prem clusters, Kube v1.26.6
  • Desktop OS: Windows 11 and Mac OS X Sonoma
@kurthaegeman kurthaegeman added the enhancement New feature or request label Mar 12, 2024
@IanMoroney
Copy link

Adding to this,
prometheus installs managed / deployed by argocd also can't be detected, as they're not direct helm chart installations.
Being able to have an additional prometheus provider maybe for "other" or "custom install" and being able to specify the required details would be preferred.

@RobCannon
Copy link

I would like to know the criteria Lens uses for auto-detecting so we can make sure our Prometheus endpoint (a proxy to Grafana Cloud) is auto-detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants