[stable/prometheus-mongodb-exporter] Add ServiceMonitor metricRelabelings (#23290)

Signed-off-by: Calvin Bui <3604363+calvinbui@users.noreply.github.com>
This commit is contained in:
Calvin Bui
2020-07-27 08:20:18 -07:00
committed by GitHub
parent e7d951d61e
commit e7b9c26902
4 changed files with 6 additions and 1 deletions
@@ -13,4 +13,4 @@ maintainers:
name: prometheus-mongodb-exporter
sources:
- https://github.com/percona/mongodb_exporter
version: 2.7.0
version: 2.8.0
@@ -66,4 +66,5 @@ podAnnotations:
| `serviceMonitor.namespace` | The namespace where the Prometheus Operator is deployed | `` |
| `serviceMonitor.additionalLabels` | Additional labels to add to the ServiceMonitor | `{}` |
| `serviceMonitor.targetLabels` | Set of labels to transfer on the Kubernetes Service onto the target. | `[]`
| `serviceMonitor.metricRelabelings` | MetricRelabelConfigs to apply to samples before ingestion. | `[]` |
| `tolerations` | List of node taints to tolerate | `[]` |
@@ -19,6 +19,9 @@ spec:
- port: metrics
interval: {{ .Values.serviceMonitor.interval }}
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
{{- if .Values.serviceMonitor.metricRelabelings }}
metricRelabelings: {{ toYaml .Values.serviceMonitor.metricRelabelings | nindent 4 }}
{{- end }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
@@ -93,5 +93,6 @@ serviceMonitor:
namespace:
additionalLabels: {}
targetLabels: []
metricRelabelings: []
tolerations: []