Prometheus exporter for scraping Ceph RADOSGW usage data.
Switch branches/tags
Nothing to show
Clone or download
blemmenes Fixed gauge metric names
Not sure why I asked for _total to be added on PR #8. Fixing name to match gauge type
Latest commit 7c9ce84 Aug 28, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile Update Dockerfile Jun 5, 2018
LICENSE Initial commit May 24, 2017 * Added support for Python3. Apr 7, 2018 Fixed gauge metric names Aug 28, 2018
requirements.txt Initial Commit May 24, 2017

Ceph RADOSGW Usage Exporter

Prometheus exporter that scrapes Ceph RADOSGW usage information (operations and buckets). This information is gathered from a RADOSGW using the Admin Operations API.

This exporter was based off from both ( and the more elaborate Jenkins exporter here (


  • Working Ceph Cluster with Object Gateways setup.
  • Ceph RADOSGWs must beconfigured to gather usage information as this is not on by default. The miniumum is to enable it via ceph.conf as below. There are however other options that are available and should be considered here.
rgw enable usage log = true
  • Configure admin entry point (default is 'admin'):
rgw admin entry = "admin"
  • Enable admin API (default is enabled):
rgw enable apis = "s3, admin"
  • This exporter requires a user that has a capability of usage=read and buckets=read see the Admin Guide here for more details.

Local Installation

git clone
cd radosgw_usage_exporter
pip install requirements.txt


usage: [-h] [-H HOST] [-e ADMIN_ENTRY]
                                 [-a ACCESS_KEY] [-s SECRET_KEY] [-p PORT]

RADOSGW address and local binding port as well as S3 access_key and secret_key

optional arguments:
  -h, --help            show this help message and exit
  -H HOST, --host HOST  Server URL for the RADOSGW api (example:
  -e ADMIN_ENTRY, --admin_entry ADMIN_ENTRY
                        The entry point for an admin request URL [default is
  -a ACCESS_KEY, --access_key ACCESS_KEY
                        S3 access key
  -s SECRET_KEY, --secret_key SECRET_KEY
                        S3 secrest key
  -p PORT, --port PORT  Port to listen


./check_ceph_rgw_api -H -a JXUABTZZYHAFLCMF9VYV -s jjP8RDD0R156atS6ACSy2vNdJLdEPM0TJQ5jD1pw

Docker Usage

Docker build (

docker run -d -p 9242 blemmenes/radosgw_usage_exporter:latest \

Arguments can also be specified by environment variables as well.

docker run -d -p 9242:9242 \
-e "RADOSGW_SERVER=<host>" \
-e "VIRTUAL_PORT=9242" \
-e "ACCESS_KEY=<access_key>" \
-e "SECRET_KEY=<secret_key>" \

Resulting metrics can be then retrieved via your Prometheus server via the http://<exporter host>:9242/metrics endpoint.