Skip to content

Instantly share code, notes, and snippets.

@mgirouard
Created September 14, 2016 19:03
Show Gist options
  • Save mgirouard/c6360cf823c290a0b78eaccd8f946242 to your computer and use it in GitHub Desktop.
Save mgirouard/c6360cf823c290a0b78eaccd8f946242 to your computer and use it in GitHub Desktop.
prometheus in a box
version: '2'
volumes:
metric_data: {}
networks:
metrics:
driver: bridge
services:
pushgateway:
image: prom/pushgateway
container_name: pushgateway
expose:
- 9091
ports:
- 9091:9091
networks:
- metrics
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus/:/etc/prometheus/
- metric_data:/metrics
command:
- '-config.file=prometheus.yml'
- '-storage.local.path=/metrics'
expose:
- 9090
ports:
- 9090:9090
links:
- pushgateway:pushgateway
networks:
- metrics
scrape_configs:
- job_name: 'entitlements'
scrape_interval: 10s
static_configs:
- targets: ['pushgateway:9091']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment