headlamp-k8s / headlamp

A Kubernetes web UI that is fully-featured, user-friendly and extensible
https://headlamp.dev
Apache License 2.0
2.38k stars 170 forks source link

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

Open plevart opened 2 days ago

plevart commented 2 days ago

Hi,

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?

velvetzhero commented 11 hours ago

At the end, everything is just a question of time !

joaquimrocha commented 9 hours ago

cc/ @yolossn ^

plevart commented 4 hours ago

I re-entered the issue into the right repo now. You can close this one.