-
I am playing with Prometheus and I found that nginx-proxy always flood when it starts or stops
and if Prometheus started earlier, nginx-proxy crashes on start Problematic docker-compose.yml for Prometheus version: '3.9'
services:
prometheus:
image: prom/prometheus:v2.42.0
container_name: prometheus
restart: always
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
ports:
- 9090:9090
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
alertmanager:
image: prom/alertmanager:v0.25.0
container_name: alertmanager
restart: always
ports:
- 9093:9093
volumes:
- ./alertmanager:/config
- alertmanager-data:/data
command: --config.file=/config/alertmanager.yml --log.level=debug
depends_on:
- prometheus
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
restart: always
ports:
- 8080:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
depends_on:
- redis
- prometheus
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- 6379:6379
volumes:
prometheus_data:
alertmanager-data: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Does nginx-proxy still work?
I assume "it" in your sentence refers to Prometheus, not nginx-proxy. Right?
What do you mean by "crashes"? What is the relevant log output?
I see no I also don't see your nginx-proxy container here. I assume it is in a different compose file. Can you provide that? What are the contents of |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue so i tried to distill it down as much as possible. I'm not running any other containers to proxy for now. docker-compose.yml
Not sure if this is an error or has any other ill effects but the log:
|
Beta Was this translation helpful? Give feedback.
-
It turns out the "invalid value" message is a debug message that I accidentally left in when making some changes. It can be ignored. See nginx-proxy/docker-gen#494 |
Beta Was this translation helpful? Give feedback.
It turns out the "invalid value" message is a debug message that I accidentally left in when making some changes. It can be ignored. See nginx-proxy/docker-gen#494