Skip to content

Commit

Permalink
fix issue #588 [Feature Request] Add prefix for metrics exposed by Pr… (
Browse files Browse the repository at this point in the history
#623)

* fix issue #588 [Feature Request] Add prefix for metrics exposed by Prometheus #588

---------

Co-authored-by: Rob Holland <rob@temporal.io>
  • Loading branch information
robaho and robholland committed Jan 16, 2025
1 parent 81cc46d commit bc81056
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/temporal/templates/server-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ data:
excludeTags:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with $server.metrics.prefix }}
prefix: "{{- . }}"
{{- end }}
{{- with $server.config.prometheus }}
prometheus:
{{- toYaml . | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/temporal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ server:
tags: {}
# Tags to be excluded in Prometheus metrics
excludeTags: {}
prefix:
# Enable Prometheus ServiceMonitor
# Use this if you installed the Prometheus Operator (https://github.com/coreos/prometheus-operator).
serviceMonitor:
Expand Down

0 comments on commit bc81056

Please sign in to comment.