Skip to content

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

Open
@plevart

Description

@plevart

Hi,

I entered an issue to headlamp repo: kubernetes-sigs/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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingprometheusprometheus plugin related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions