Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 7d399cb

Browse files
committed
mount prometheus to volume instead of host to avoid [this issue](prometheus/prometheus#5976)
1 parent 12ea8f4 commit 7d399cb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ services:
4040
./entrypoint.sh
4141
prometheus-local:
4242
image: prom/prometheus
43+
user: "65534:65534"
4344
container_name: mlops-prometheus-local
4445
volumes:
4546
# prometheus configuration
@@ -48,6 +49,8 @@ services:
4849
# Select the data and aggregations (summary statistics) from api/metrics
4950
# to be monitored carefully and handle the time series with care
5051
# in order to avoid leaking sensitive information!
51-
- ./monitoring/prometheus:/prometheus
52+
# With this example configuration, metrics time series are stored
53+
# in /prometheus volume:
54+
- /prometheus
5255
ports:
5356
- 9090:9090

0 commit comments

Comments
 (0)