You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A [Discord thread](https://discord.com/channels/638610460567928832/638610461109256194/891417109920362518)
revealed several problems with Prometheus including:
* `build.sh` not being run
* `config.yml` not being in the right place
* `config.yml` scraping not being adjusted if CAdvisor and Node
Exporter were selected in the menu.
This Pull Request proposes a revamp of Prometheus:
1. A single service definition which includes Prometheus, CAdvisor and
Node Exporter. Note that this changes the `prometheus` fragment from
the previous pairing of:
```
volumes:
- ./volumes/prometheus/data:/data
command:
- '--storage.tsdb.path=/data'
```
to:
```
volumes:
- ./volumes/prometheus/data:/prometheus
```
which is the default for the `--storage` argument.
2. A matching `config.yml` set to scrape information from all three
cooperating containers. The file is referenced as:
```
command:
- '--config.file=/prometheus/config/config.yml'
```
so it automatically becomes part of the persistent storage area.
3. Self-healing functionality similar to the Mosquitto example
implemented via a Dockerfile.
Removes `build.sh`, `service_cadvisor-arm.yml` and `service_node-exporter.yml`
from the template as no longer necessary.
Adds container documentation for Prometheus (previously non-existent).
0 commit comments