Skip to content

Commit

Permalink
Config to specify tags to be excluded in prometheus metrics (#566)
Browse files Browse the repository at this point in the history
* Config to specify tags to be excluded in prometheus metrics

---------

Co-authored-by: Rob Holland <[email protected]>
  • Loading branch information
prathyushpv and robholland authored Sep 30, 2024
1 parent 03662b7 commit 7d8c551
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/temporal/templates/server-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ data:
{{- with $server.metrics.tags }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with $server.metrics.excludeTags }}
excludeTags:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with $server.config.prometheus }}
prometheus:
{{- toYaml . | nindent 10 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/temporal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ server:
enabled: true
# Additional tags to be added to Prometheus metrics
tags: {}
# Tags to be excluded in Prometheus metrics
excludeTags: {}
# Enable Prometheus ServiceMonitor
# Use this if you installed the Prometheus Operator (https://github.com/coreos/prometheus-operator).
serviceMonitor:
Expand Down

0 comments on commit 7d8c551

Please sign in to comment.