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

prometheus: Can't direct Headlamp to retrieve metrics on a sub-path of a Prometheus(-like) query service #120

Open
plevart opened this issue Nov 25, 2024 · 1 comment

Comments

@plevart
Copy link

plevart commented Nov 25, 2024

Hi,

I entered an issue to headlamp repo: headlamp-k8s/headlamp#2607, when I should have entered it here. So I'll just copy-paste it over here too.

In my cluster(s) I deploy VictoriaMetrics stack (a Prometheus equivalent) which exposes an endpoint for querying metrics using Prometheus-compatible API on a sub-path within the HTTP Service. In Lens, for example, I specify the following to display metrics:

vmstack/vmselect-vmstack-victoria-metrics-k8s-stack:8481//select/0/prometheus

Trying to enter such string into the Headlamp setting called "Prometheus Service Address", it displays an error below the field:

Invalid format. Use: namespace/service-name:port

If I just enter this:

vmstack/vmselect-vmstack-victoria-metrics-k8s-stack:8481

...it of course doesn't work.

Would it be possible to enable specifying the sub-path in this field too?

@NachoxMacho
Copy link

I couldn't currently find a way to accomplish this for mimir, which has a similar problem of being on a sub-path. Should probably make sure if #111 gets fixed this one also gets fixed

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

No branches or pull requests

2 participants