25 lines
702 B
Markdown
25 lines
702 B
Markdown
# Exporter image-mapping test example
|
|
|
|
Run the exporter in dry-run mode to print the `service -> image:tag` mapping without starting the metrics loop:
|
|
|
|
```bash
|
|
SERVICES_UP_SCRIPT=/workspace/docker/services-up.sh python monitoring/docker-exporter/exporter.py --dry-run
|
|
```
|
|
|
|
Example output excerpt:
|
|
|
|
```json
|
|
{
|
|
"crowdsec": "crowdsecurity/crowdsec:latest",
|
|
"docker-update-exporter": "python:3.11-slim",
|
|
"nextcloud-webapp": "nextcloud:production",
|
|
"node-red": "nodered/node-red:latest",
|
|
"prometheus": "prom/prometheus:latest",
|
|
"traefik": "traefik:3"
|
|
}
|
|
```
|
|
|
|
This confirms the exporter now reports images for both:
|
|
- services with explicit `image:` values, and
|
|
- services using `build:` contexts.
|