digitalocean / ceph_exporter

Prometheus exporter that scrapes meta information about a ceph cluster.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to implement multiple clusters

robp2175 opened this issue · comments

If this need to go somewhere else I apologize; please point me in the correct direction.

I have two ceph clusters, both config files are in /etc/ceph and they are name ceph.conf and ceph2.conf. However, I am unable to find documentation regarding what else I may have to do to send prometheus information on both clusters. Both config files do appear in the container. Any help would be appreciated.

Currently ceph-exporter is designed to talk to and extract metrics out of a single cluster. So if you have multiple Ceph clusters, you would need an instance of ceph-exporter for each of those. You can still scrape multiple such exporters from same prometheus and categorize them separately using labeling.

This discussion might be helpful to you: #105.

Support was added a while back f67a9a0 but we never ended up using so some testing on your side might be required.

Here's an example of how you'd configure it:

cluster:
   - cluster_label: block01
     user: admin
     config_file: /etc/ceph/ceph.conf

   - cluster_label: block02
     user: admin
     config_file: /etc/ceph/ceph2.conf