From 83a467888f3542b08a2c33cf76725dd780f99d24 Mon Sep 17 00:00:00 2001 From: ObNitram Date: Sun, 18 Jan 2026 21:44:43 +0100 Subject: [PATCH] Update Prometheus Docker configuration and remove command overrides in stack.yaml --- observability/prometheus/Dockerfile | 1 + observability/prometheus/prometheus-compose.yaml | 1 + observability/stack.yaml | 3 --- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/observability/prometheus/Dockerfile b/observability/prometheus/Dockerfile index 37f119d..b96cf5a 100644 --- a/observability/prometheus/Dockerfile +++ b/observability/prometheus/Dockerfile @@ -4,6 +4,7 @@ FROM prom/prometheus:latest # Copy Prometheus configuration COPY prometheus.yaml /etc/prometheus/prometheus.yaml +COPY prometheus-compose.yaml /etc/prometheus/prometheus-compose.yaml # Switch to default user and expose port EXPOSE 9090 diff --git a/observability/prometheus/prometheus-compose.yaml b/observability/prometheus/prometheus-compose.yaml index 5ecb68a..a3ca8a2 100644 --- a/observability/prometheus/prometheus-compose.yaml +++ b/observability/prometheus/prometheus-compose.yaml @@ -1,4 +1,5 @@ # Prometheus main configuration +# This configuration is adapted for Docker Compose environment global: scrape_interval: 30s diff --git a/observability/stack.yaml b/observability/stack.yaml index d3cf8bc..b1b0dbc 100644 --- a/observability/stack.yaml +++ b/observability/stack.yaml @@ -60,9 +60,6 @@ services: prometheus: image: ghcr.io/obnitram/observability/prometheus:v0.2 - command: - - "--config.file=/etc/prometheus/prometheus.yml" - - "--storage.tsdb.path=/prometheus" volumes: - prometheus-storage:/prometheus deploy: