Also, install docker-compose. Since you added docker repository before installing Docker Engine, you should be able to install docker-compose from yum or apt-get.

# yum -y install docker-compose

For Ubuntu:

# apt-get install docker-compose

Step 3: Build Ceph Exporter Docker image

Once you have Docker Engine installed and service running. You should be ready to build docker image from DigitalOcean Ceph exporter project. Consider installing Git if you don’t have it already.

# yum -y install git

If you’re using Ubuntu, run:

# apt-get install git

Then clone the project from Github:

# git clone https://github.com/digitalocean/ceph_exporter.git

Switch to the ceph_exporter directory and build docker image:

# docker build -t ceph_exporter

This will build an image named ceph_exporter. It may take a while depending on your internet and disk write speeds.

Step 4: Start Prometheus ceph exporter client container

Copy ceph.conf configuration file and the ceph.<user>.keyring to /etc/ceph directory and start docker container host’s network stack. You can use vanilla docker commands, docker-compose or systemd to manage the container. For docker command line tool, run below commands.

Step 7: Add Prometheus Data Source to Grafana

Name: Name given to this data sourceType: The type of data source, in our case this is PrometheusURL: IP address and port number of Prometheus server you’re adding.Access: Specify if access through proxy or direct. Proxy means access through Grafana server, direct means access from the web.

Save the settings by clicking save & Test button.

Step 8: Import Ceph Cluster Grafana Dashboards

The last step is to import Ceph Cluster Grafana Dashboards. From my research, I found the following Dashboards by Cristian Calin.