Skip to content
Snippets Groups Projects
Commit 43863bf8 authored by Nacho Barrientos's avatar Nacho Barrientos Committed by Guillermo Facundo Colunga
Browse files

prometheus-server: honour metrics.prometheus.server.extraLabelsForMetrics

Author:    Nacho Barrientos <nacho.barrientos@cern.ch>
parent 063024ef
No related branches found
No related tags found
No related merge requests found
Pipeline #8374359 passed
......@@ -56,7 +56,7 @@ This file contains the markdown version of the default values that this chart ta
| metrics.prometheus.operator | object | Resources configuration. See `values.yaml`. | specific configuration for the prometheus operator |
| metrics.prometheus.operator.nodeSelector | hash | `"nil"` | prometheus operator node selectors |
| metrics.prometheus.server.nodeSelector | hash | `"nil"` | prometheus server node selectors |
| metrics.prometheus.server.extraLabelsForMetrics | list | `[]` | set of static labels and values to add to all the metrics gathered by the in-cluster prometheus when exported to central monitoring |
| metrics.prometheus.server.extraLabelsForMetrics | hash | `{}` | set of static labels and values to add to all the metrics gathered by the in-cluster prometheus when exported to central monitoring |
| metrics.prometheus.server.remoteWrite | object | `{}` | remote write prometheus configuration |
| metrics.prometheus.server.resources.limits.cpu | string | `"500m"` | |
| metrics.prometheus.server.resources.limits.memory | string | `"5Gi"` | |
......@@ -72,4 +72,4 @@ This file contains the markdown version of the default values that this chart ta
| tenant.name | string | `"nil"` | username used for authenitcating in the MONIT infrastructure |
| tenant.password | string | `"nil"` | password (plain) used for authenitcating in the MONIT infrastructure |
----------------------------------------------
\ No newline at end of file
----------------------------------------------
......@@ -12,6 +12,9 @@ spec:
retention: {{ .Values.metrics.prometheus.server.retention }}
externalLabels:
k8s_cluster_name: {{ .Values.kubernetes.clusterName }}
{{- with .Values.metrics.prometheus.server.extraLabelsForMetrics }}
{{- toYaml . | nindent 4 }}
{{- end }}
nodeSelector:
{{- .Values.metrics.prometheus.server.nodeSelector | default .Values.metrics.defaultNodeSelector | toYaml | nindent 4 }}
serviceAccountName: it-monit-metrics-collector-prometheus
......
......@@ -88,7 +88,7 @@ metrics:
# -- interval during which local cluster prometheus will store metrics
retention: "24h"
# -- set of static labels and values to add to all the metrics gathered by the in-cluster prometheus when exported to central monitoring
extraLabelsForMetrics: []
extraLabelsForMetrics: {}
# -- remote write prometheus configuration
remoteWrite: {}
# endpoint: "https://monit-prom-mom.cern.ch:9090/api/v1/write"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment