Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

additionalScrapeConfigs not working #23718

Closed
KR411-prog opened this issue Sep 7, 2020 · 2 comments
Closed

additionalScrapeConfigs not working #23718

KR411-prog opened this issue Sep 7, 2020 · 2 comments

Comments

@KR411-prog
Copy link

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

@gkarthiks
Copy link
Contributor

Hi @KR411-prog the stable/prometheus chart has been deprecated effectively as per this PR #23692 on Sep 5, 2020 and moved to https://github.com/prometheus-community/helm-charts.

Please close this Issue and re-open against the prometheus-community/helm-charts repo. Here's a friendly link for new issue

We hope to see you there. 👋

@KR411-prog
Copy link
Author

Thankyou..I have raised issue in the link you specified.prometheus-community/helm-charts#62

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants