Update Prometheus Docker configuration and remove command overrides in stack.yaml
This commit is contained in:
@@ -4,6 +4,7 @@ FROM prom/prometheus:latest
|
|||||||
|
|
||||||
# Copy Prometheus configuration
|
# Copy Prometheus configuration
|
||||||
COPY prometheus.yaml /etc/prometheus/prometheus.yaml
|
COPY prometheus.yaml /etc/prometheus/prometheus.yaml
|
||||||
|
COPY prometheus-compose.yaml /etc/prometheus/prometheus-compose.yaml
|
||||||
|
|
||||||
# Switch to default user and expose port
|
# Switch to default user and expose port
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# Prometheus main configuration
|
# Prometheus main configuration
|
||||||
|
# This configuration is adapted for Docker Compose environment
|
||||||
|
|
||||||
global:
|
global:
|
||||||
scrape_interval: 30s
|
scrape_interval: 30s
|
||||||
|
|||||||
@@ -60,9 +60,6 @@ services:
|
|||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: ghcr.io/obnitram/observability/prometheus:v0.2
|
image: ghcr.io/obnitram/observability/prometheus:v0.2
|
||||||
command:
|
|
||||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
||||||
- "--storage.tsdb.path=/prometheus"
|
|
||||||
volumes:
|
volumes:
|
||||||
- prometheus-storage:/prometheus
|
- prometheus-storage:/prometheus
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
Reference in New Issue
Block a user