lens icon indicating copy to clipboard operation
lens copied to clipboard

metrics be able to customize the prometheus labels

Open theyough opened this issue 1 year ago • 1 comments

https://github.com/lensapp/lens/blob/f1a960fd785b62a118acd8b1525d879f39917e21/packages/technical-features/prometheus/src/helm-provider.injectable.ts#L149

from the last version of Helm prometheus server the new labels are

app.kubernetes.io/component=server
app.kubernetes.io/instance=prometheus
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=prometheus

theyough avatar Oct 05 '23 01:10 theyough

I can confirm this issue as well... I have had Prometheus deployed via Helm chart 19.3.3 (Prometheus v2.41.0) in my EKS clusters and recently upgraded to the 25.8.2 chart version (Prometheus v2.48.1), and the labels applied by the chart have changed. According to what I was able to find, this has been done in the 21.0 chart to follow Helm 3 label and best practices.

OLD NEW Status
heritage app.kubernetes.io/managed-by REQ
chart helm.sh/chart REQ
app app.kubernetes.io/name REQ
release app.kubernetes.io/instance REQ
component app.kubernetes.io/component OPT

jbouse avatar Dec 21 '23 23:12 jbouse