38 lines
722 B
YAML
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']
|
|
|