nodata/templates/docker-compose.monitoring.yaml
kjuulh a91846398c
feat: add prometheus and protobuf messages
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-11-10 13:42:19 +01:00

38 lines
722 B
YAML

services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
configs:
- source: prometheus
target: /etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "13000:3000"
depends_on:
- prometheus
volumes:
- grafana_data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
grafana_data:
configs:
prometheus:
content: |
global:
scrape_interval: 5s
scrape_configs:
- job_name: 'nodata'
static_configs:
- targets: ['nefarious:3000']