headlamp-k8s / plugins

Official plugins of the Headlamp project
https://headlamp.dev/
Apache License 2.0
6 stars 2 forks source link

Prometheus Plug-In: Also detect victoriametrics #37

Open micw opened 4 months ago

micw commented 4 months ago

Hello,

I run victoriametrics in my stacks (as replacement of prometheus). It should provide the same information (at least with lens it does) but it's not detected by the plug-in.

Could detection of victoriametrics be added? What is the exact mechanism to check if prometheus is available in the cluster or not?

joaquimrocha commented 1 month ago

@yolossn Can you check this one?

yolossn commented 1 month ago

The plugin searches the cluster for pods with the app.kubernetes.io/name=prometheus label to identify the prometheus pod to query the metrics. can you check if your prometheus pod has this label?

kubectl get pods -l app.kubernetes.io/name=prometheus --all-namespace

We are working on making the prometheus url configurable so that the user can configure the prometheus endpoint to fetch the metrics from.