python based prometheus exporter for VDO
Switch branches/tags
Nothing to show
Clone or download


VDO is a kernel subsystem that provides compression and deduplication to a Linux device. This project provides a Python2 based Prometheus exporter for VDO volume statistics. Once exported, you may visualize the data and define alerts within Prometheus itself, or define dashboards and alerts in systems like Grafana.


Writing an exporter for Prometheus would normally entail using the prometheus-client Python package, but at the time of writing the rpm for this wasn't available for CentOS or RHEL. So this project just uses standard Python features to implement the exporter (a Prometheus client is just a HTTP endpoint anyway!)

I've tested against vm's with the following configurations;

  • RHEL 7.5. beta (kernel 3.10.0-823.el7.x86_64)
  • Ceph 12.2.2 (luminous)
  • Python 2.7
  • vdo
  • Prometheus 2.0 (container -
  • Grafana 4.6.3 (container -
  • SELINUX disabled
  • Firewall disabled


  1. download and extract the archive
  2. cd to the vdo_exporter directory
  3. install vdo_exporter
> python install --record installed_files

Optionally copy the systemd file

> cp systemd/vdo_exporter.service /etc/systemd/system
> systemctl daemon-reload
> systemctl enable vdo_exporter
> systemctl start vdo_exporter


By default the vdo_exporter daemon will bind to, listening on port 9285. You'll see the success of scrape requests in the daemon's output.

Prometheus Configuration

Update prometheus.yml to include a scrape job for the hosts that have the vdo_exporter running.
e.g. under scrape_configs

  # VDO enabled hosts
  - job_name: "vdo_stats"
      - targets: [ '', '', '']

then reload Prometheus (SIGHUP)

if you're interested in bringing the VDO stats together with Ceph, you should use DNS names instead of IP addresses within the scrape definition. This will allow your promQL to 'match' across metrics based on "exported_instance" and "instance".

Grafana Configuration

I've included a dashboard to show some of the stats the exporter provides. Just import the the 'VDO_Information.json' dashboard from the grafana subdirectory into Grafana, then open the dashboard.

You should see something like;