Rename prometheus to metrics
This commit is contained in:
@ -12,7 +12,7 @@ Sources = [
|
||||
}
|
||||
]
|
||||
},
|
||||
[[- if conv.ToBool .prometheus.enabled ]]
|
||||
[[- if conv.ToBool .metrics.enabled ]]
|
||||
{
|
||||
Name = "[[ .instance ]]-metrics[[ .consul.suffix ]]"
|
||||
Permissions = [
|
||||
|
@ -2,5 +2,5 @@
|
||||
|
||||
minio:
|
||||
count: 3
|
||||
prometheus:
|
||||
metrics:
|
||||
enabled: true
|
||||
|
@ -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
|
||||
|
@ -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 ]]
|
||||
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user