Adds prometheus config to config_template.yml
@@ -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:
@@ -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:
@@ -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:
@@ -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:
