Change prometheus and grafana docker image tags to be "latest"

Robert Drake 2025-09-24 14:59:10 -04:00
parent d4a5dd0fae
commit 53ba4ddb47

@ -5,6 +5,11 @@
If you use the below config to set "METRICS_ENABLED" to 'true' inside of docker-compose.override.yml, you will need to edit env/netbox.env and comment out the METRICS_ENABLED line there. This is (I think) because the environment file is sourced after the docker-compose override. I think this line should probably be removed from env/netbox.env to reduce confusion, since it's the default. If you use the below config to set "METRICS_ENABLED" to 'true' inside of docker-compose.override.yml, you will need to edit env/netbox.env and comment out the METRICS_ENABLED line there. This is (I think) because the environment file is sourced after the docker-compose override. I think this line should probably be removed from env/netbox.env to reduce confusion, since it's the default.
### Docker image tags
The prometheus and grafana docker images are set to use the "latest" version. You might want to pin these to specific versions in your own deployment.
Add the following to your `docker-compose.override.yml` (or create that file if you haven't done so): Add the following to your `docker-compose.override.yml` (or create that file if you haven't done so):
```yml ```yml
@ -50,7 +55,7 @@ services:
# prometheus # prometheus
prometheus: prometheus:
image: prom/prometheus:v2.22.0 image: prom/prometheus:latest
depends_on: depends_on:
- postgres-exporter - postgres-exporter
- redis-cache-exporter - redis-cache-exporter
@ -64,7 +69,7 @@ services:
# grafana # grafana
grafana: grafana:
image: grafana/grafana:7.2.1 image: grafana/grafana:latest
depends_on: depends_on:
- prometheus - prometheus
environment: environment: