Skip to content

Commit

Permalink
feat: expose honorLabels key in ServiceMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
andi4000 committed Dec 11, 2024
1 parent 5d27334 commit d023b42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/flipt/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
interval: {{ . }}
{{- end }}
path: /metrics
honorLabels: {{ .Values.metrics.serviceMonitor.honorLabels }}
{{- with .Values.metrics.serviceMonitor.relabelings }}
relabelings:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/flipt/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ metrics:
# -- ServiceMonitor relabel configs to apply to samples before scraping
# https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
relabelings: []
# -- What to do when flipt metrics labels are conflicting with Prometheus server-side labels.
# true means keep label values from flipt.
honorLabels: false
# -- ServiceMonitor will use http by default, but you can pick https as well
scheme: http
# -- ServiceMonitor will use these tlsConfig settings to make the health check requests
Expand Down

0 comments on commit d023b42

Please sign in to comment.