1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 11:48:53 +00:00

thanos: expose metrics endpoint

Whilst the service port is created by default, the metrics endpoint for the sidecar is never started.
This commit is contained in:
Victor Palade 2019-08-13 10:10:48 +02:00
parent 078a6d5246
commit 7fc72cb923
No known key found for this signature in database
GPG key ID: 47BCEB3A2698B9B3

View file

@ -710,6 +710,7 @@ func makeStatefulSetSpec(p monitoringv1.Prometheus, c *Config, ruleConfigMapName
fmt.Sprintf("--prometheus.url=http://%s:9090%s", c.LocalHost, path.Clean(webRoutePrefix)),
fmt.Sprintf("--tsdb.path=%s", storageDir),
"--grpc-address=[$(POD_IP)]:10901",
"--http-address=[$(POD_IP)]:10902",
},
Env: []v1.EnvVar{
{