Rename prometheus to metrics

This commit is contained in:
2025-01-07 16:43:00 +01:00
parent ccdfb5077b
commit 7a93ce9b68
5 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ Sources = [
}
]
},
[[- if conv.ToBool .prometheus.enabled ]]
[[- if conv.ToBool .metrics.enabled ]]
{
Name = "[[ .instance ]]-metrics[[ .consul.suffix ]]"
Permissions = [

View File

@ -2,5 +2,5 @@
minio:
count: 3
prometheus:
metrics:
enabled: true

View File

@ -1,4 +1,4 @@
FROM danielberteaud/alpine:24.12-2
FROM danielberteaud/alpine:25.1-1
LABEL maintainer="Daniel Berteaud <dbd@ehtrace.com>"
ARG MINIO_VERSION=2024-12-18T13-15-44Z

View File

@ -3,7 +3,7 @@ job "[[ .instance ]]" {
[[- $c := merge .minio . ]]
[[ template "common/job_start" $c ]]
[[- if conv.ToBool $c.prometheus.enabled ]]
[[- if conv.ToBool $c.metrics.enabled ]]
group "metrics" {
[[- $c := merge .minio.metrics .minio . ]]
@ -37,7 +37,7 @@ job "[[ .instance ]]" {
static = [[ $c.api.port ]]
}
[[- end ]]
[[- if conv.ToBool $c.prometheus.enabled ]]
[[- if conv.ToBool $c.metrics.enabled ]]
port "metrics" {}
[[- end ]]

View File

@ -111,14 +111,14 @@ minio:
# Minio metrics are only cluster wide, not per instance. So to expose them
# use a dedicated group with a single task : the metrics-proxy. It'll proxify metrics
# to one of the minio instance through the service-mesh, and be seen in prometheus as a single instance
# to one of the minio instance through the service-mesh, and be seen metrics wise as a single instance
metrics:
consul:
connect:
upstreams:
- destination_name: '[[ .instance ]]'
local_bind_port: 8000
prometheus:
metrics:
# metrics-proxy needs to be the main task, and not just a sidecar (else it'd be terminated)
proxy_is_main_task: true
endpoints: