Skip to content

Commit

Permalink
enhancement(helm platform): metricRelabelings for Prometheus PodMonit…
Browse files Browse the repository at this point in the history
…or (#7914)

Signed-off-by: Jan Moeller <jan.moeller0@gmail.com>
  • Loading branch information
croissong committed Jun 17, 2021
1 parent 89acfd9 commit da8f825
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions distribution/helm/vector-agent/values.yaml
Expand Up @@ -258,6 +258,8 @@ prometheusSink:
additionalLabels: {}
# Additional relabelings to include in the `PodMonitor`.
extraRelabelings: []
# metricRelabelings to include in the `PodMonitor`.
metricRelabelings: []

# Sources to add to the generated `vector` config (besides "built-in" kubernetes
# logs source).
Expand Down
2 changes: 2 additions & 0 deletions distribution/helm/vector-aggregator/values.yaml
Expand Up @@ -275,6 +275,8 @@ prometheusSink:
additionalLabels: {}
# Additional relabelings to include in the `PodMonitor`.
extraRelabelings: []
# metricRelabelings to include in the `PodMonitor`.
metricRelabelings: []

# Sources to add to the generated `vector` config
sources: {}
Expand Down
4 changes: 4 additions & 0 deletions distribution/helm/vector-shared/templates/_metrics.tpl
Expand Up @@ -109,5 +109,9 @@ spec:
{{- with .Values.prometheusSink.podMonitor.extraRelabelings }}
{{- toYaml . | nindent 8 }}
{{- end }}
metricRelabelings:
{{- with .Values.prometheusSink.podMonitor.metricRelabelings }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit da8f825

Please sign in to comment.