- Ceph Exporter: returns data on demand
- Prometheus: data collector
- Grafana: data visualizer
- Deploy ceph-exporter on host that has access to ceph
docker run -dp 9128:9128 --name ceph-exporter digitalocean/ceph_exporter
- Deploy Prometheus on monitoring host
docker volume create prometheus-data
mkdir /etc/prometheus
curl https://raw.githubusercontent.com/prometheus/prometheus/master/documentation/examples/prometheus.yml -O /etc/prometheus/prometheus.yml
docker run -dp 9090:9090 --name prometheus -v prometheus-data:/prometheus-data -v /etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
- Config Prometheus to retrieve data from ceph-exporter
add the following to
scrape_configs
section inprometheus.yml
- job_name: ceph
static_configs:
- targets: ["$CEPH_EXPORTER_HOST"]
Then restart the prometheus container 4. Deploy Grafana
docker volume create grafana-data
docker run -dp 3000:3000 --name grafana -v grafana-data:/var/lib/grafana grafana/grafana
- Configure grafana
- add prometheus data source
- add dashboards
Written with StackEdit.