Skip to content

Commit

Permalink
docker-compose: Add Grafana and test dashboards (#77) (#80)
Browse files Browse the repository at this point in the history
Following on #76 the
`docker-compose` environment now also includes Grafana configured to display the
example dashboards graphing metrics from the Prometheus container.
  • Loading branch information
pgporada authored and cpu committed Jan 7, 2019
1 parent 08d06e8 commit 7aedd1f
Show file tree
Hide file tree
Showing 5 changed files with 1,366 additions and 999 deletions.
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: '3'

volumes:
grafana_data: {}
prometheus_data: {}

services:
Expand Down Expand Up @@ -79,6 +80,27 @@ services:
# webhook alert target
- ct-test-srv

grafana:
image: grafana/grafana:latest
environment:
- "GF_SECURITY_ADMIN_USER=woodpecker"
- "GF_SECURITY_ADMIN_PASSWORD=woodpecker"
- "GF_LOG_LEVEL=error"
ports:
# Grafana UI
- 3000:3000
volumes:
- ./test/config/grafana/provisioning/:/etc/grafana/provisioning/
- grafana_data:/var/lib/grafana
networks:
ctnet:
ipv4_address: 10.40.50.6
aliases:
- grafana
depends_on:
# Grafana pulls metrics from prometheus
- prometheus

networks:
ctnet:
driver: bridge
Expand Down
Loading

0 comments on commit 7aedd1f

Please sign in to comment.