ceph_exporter/examples/docker-compose.yml

38 lines
1010 B
YAML
Raw Normal View History

# Example usage of exporter in use
2017-05-01 23:13:27 +00:00
# In this case, it depends on the proper ceph keys in the correct place. Adapt this to your use case if you would like to use in production
# Change CEPHCONF below to path where your ceph.conf and keys are stored.
2017-05-01 23:13:27 +00:00
# Also, change the password to the Grafana dashboard if you intend to use this further than just testing.
version: '2'
services:
prometheus:
image: prom/prometheus:v1.6.1
volumes:
2017-05-01 23:13:27 +00:00
- ./prometheus.yml:/etc/prometheus/prometheus.yml
volumes:
- prometheus_data:/prometheus
command:
2017-05-01 23:13:27 +00:00
- -config.file=/etc/prometheus/prometheus.yml
ports:
- '9090:9090'
ceph-exporter:
image: digitalocean/ceph_exporter
volumes:
2017-05-01 23:13:27 +00:00
- $CEPHCONF:/etc/ceph
ports:
- '9128:9128'
grafana:
image: grafana/grafana:4.2.0
environment:
- GF_SECURITY_ADMIN_PASSWORD=test
2017-05-01 23:13:27 +00:00
volumes:
- grafana_data:/var/lib/grafana
depends_on:
- prometheus
ports:
- "3000:3000"