Skip to content

Commit

Permalink
Adds prometheus config to config_template.yml (cadence-workflow#2669)
Browse files Browse the repository at this point in the history
  • Loading branch information
kewu21 authored and wxing1292 committed Oct 16, 2019
1 parent 961f8b3 commit 4514b2e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker/config_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ services:
statsd:
hostPort: {{ .Env.STATSD_ENDPOINT }}
prefix: "cadence-frontend"
{{- else if .Env.PROMETHEUS_ENDPOINT }}
metrics:
prometheus:
timerType: {{ default .Env.PROMETHEUS_TIMER_TYPE "histogram" }}
listenAddress: {{ .Env.PROMETHEUS_ENDPOINT }}
{{- end }}

matching:
Expand All @@ -97,6 +102,11 @@ services:
statsd:
hostPort: {{ .Env.STATSD_ENDPOINT }}
prefix: "cadence-matching"
{{- else if .Env.PROMETHEUS_ENDPOINT }}
metrics:
prometheus:
timerType: {{ default .Env.PROMETHEUS_TIMER_TYPE "histogram" }}
listenAddress: {{ .Env.PROMETHEUS_ENDPOINT }}
{{- end }}

history:
Expand All @@ -108,6 +118,11 @@ services:
statsd:
hostPort: {{ .Env.STATSD_ENDPOINT }}
prefix: "cadence-history"
{{- else if .Env.PROMETHEUS_ENDPOINT }}
metrics:
prometheus:
timerType: {{ default .Env.PROMETHEUS_TIMER_TYPE "histogram" }}
listenAddress: {{ .Env.PROMETHEUS_ENDPOINT }}
{{- end }}

worker:
Expand All @@ -119,6 +134,11 @@ services:
statsd:
hostPort: {{ .Env.STATSD_ENDPOINT }}
prefix: "cadence-worker"
{{- else if .Env.PROMETHEUS_ENDPOINT }}
metrics:
prometheus:
timerType: {{ default .Env.PROMETHEUS_TIMER_TYPE "histogram" }}
listenAddress: {{ .Env.PROMETHEUS_ENDPOINT }}
{{- end }}

clusterMetadata:
Expand Down

0 comments on commit 4514b2e

Please sign in to comment.