You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
I am trying to add a new label called "teamname" to the metrics scraped on kube-state-metrics.So my objective is to add teamname as an additional label to the metrics scraped at kube-state-metrics so in the PrometheusRule we can set the specific team name on the label.
So tried with the below config.But I dont see this new label being added to the kube-state-metrics in Prometheus Service Discovery page.Please let me know whats the correct method to do this.
Objective: is to add new label named "teamname" so based upon the metrics,the team name has to be set.
I am trying to add a new label called "teamname" to the metrics scraped on kube-state-metrics.So my objective is to add teamname as an additional label to the metrics scraped at kube-state-metrics so in the PrometheusRule we can set the specific team name on the label.
So tried with the below config.But I dont see this new label being added to the kube-state-metrics in Prometheus Service Discovery page.Please let me know whats the correct method to do this.
Objective: is to add new label named "teamname" so based upon the metrics,the team name has to be set.
prometheus:
prometheusSpec:
additionalScrapeConfigs:
- job_name: kube-state-metrics
relabel_configs:
- separator: ;
regex: (.*)
target_label: teamname
replacement: "myteam"
action: replace
Prometheus Operator chart version: 9.3.1
Insert image tag or Git SHA here
quay.io/coreos/prometheus-operator:v0.38.1
Kubernetes version information:
kubectl version 1.15
Kubernetes cluster kind: EKS
The text was updated successfully, but these errors were encountered: