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

Commit

Permalink
[stable/prometheus-mongodb-exporter] Add ServiceMonitor metricRelabel…
Browse files Browse the repository at this point in the history
…ings (#23290)

Signed-off-by: Calvin Bui <[email protected]>
  • Loading branch information
calvinbui authored Jul 27, 2020
1 parent e7d951d commit e7b9c26
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/prometheus-mongodb-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ maintainers:
name: prometheus-mongodb-exporter
sources:
- https://github.com/percona/mongodb_exporter
version: 2.7.0
version: 2.8.0
1 change: 1 addition & 0 deletions stable/prometheus-mongodb-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `[]` |
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions stable/prometheus-mongodb-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ serviceMonitor:
namespace:
additionalLabels: {}
targetLabels: []
metricRelabelings: []

tolerations: []

0 comments on commit e7b9c26

Please sign in to comment.