diff --git a/charts/flipt/templates/servicemonitor.yaml b/charts/flipt/templates/servicemonitor.yaml index ded290d..b6b8668 100644 --- a/charts/flipt/templates/servicemonitor.yaml +++ b/charts/flipt/templates/servicemonitor.yaml @@ -18,6 +18,7 @@ spec: interval: {{ . }} {{- end }} path: /metrics + honorLabels: {{ .Values.metrics.serviceMonitor.honorLabels }} {{- with .Values.metrics.serviceMonitor.relabelings }} relabelings: {{- toYaml . | nindent 8 }} diff --git a/charts/flipt/values.yaml b/charts/flipt/values.yaml index 8b22154..af26cc4 100644 --- a/charts/flipt/values.yaml +++ b/charts/flipt/values.yaml @@ -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