Add scraping of kube state metrics

Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
This commit is contained in:
Michel Hollands
2023-07-27 09:23:09 +01:00
parent a1cd5d36b0
commit 18f0dc932a
2 changed files with 15 additions and 0 deletions

View File

@@ -49,6 +49,13 @@ data:
targets = discovery.relabel.rename_meta_labels.output
forward_to = [ {{ include "agent.prometheus_write_targets" . }} ]
}
{{- if .Values.kubeStateMetrics.enabled }}
prometheus.scrape "kubeStateMetrics" {
targets = [ { "__address__" = "{{ .Values.kubeStateMetrics.endpoint }}" } ]
forward_to = [ {{ include "agent.prometheus_write_targets" . }} ]
}
{{- end }}
{{- end }}
{{- if or .Values.local.traces.enabled .Values.cloud.traces.enabled }}