chart-lineDatafy Metrics Exporter

The Datafy Metrics Exporter exposes supplementary metrics about the Datafy agent health and autoscaling volumes.

The Datafy Metrics Exporter exposes metrics at 2 endpoints:

  • /metrics - exposes metrics about the size and usage of autoscaling volumes managed by Datafy.

  • /health - returns a health indication for the Datafy agent installed on the instance.

Installing Datafy Metrics Exporter

Datafy Metrics Exporter can be installed with a single command or as a Docker container.

The metrics are exposed by default on port 9908, and a custom port can be configured as desired.

To install Datafy Metrics Exporter, run the command:

curl -sSfL https://bos.datafy.io/install_exporter | sh

To configure a custom port, install with the flag PORT. For example:

curl -sSfL https://bos.datafy.io/install_exporter | sh PORT=9100 sh

The exporter can be uninstalled in the same manner, using the command:

curl -sSfL https://bos.datafy.io/uninstall_exporter | sh

Datafy Exporter Metrics

Viewing Datafy Metrics

Once the Datafy Metrics Exporter is installed and running, you can verify that metrics are being exported, and view help and type information by accessing the /metrics endpoint:

circle-info

Make sure to use the port specified in the installation

You should see output like this:

Success! The Datafy Metrics Exporter is now exposing metrics that a service like Prometheus can scrape.

Using Datafy Metrics

The Datafy Metrics Exporter exposes size and usage metrics for each volume on the instance. For autoscaling volumes, the actual current size of the autoscaling volume is exposed.

circle-info

For out of space monitoring of autoscaling volumes use the utilization reported by the filesystem, do not use the metrics from Datafy Metrics Exporter.

Other metrics exporters (such as Prometheus Node Exporter) will continue to correctly report read, write and IOPS rates for autoscaling volumes. However, autoscaling volumes will have device names in the format datafy-vol-XXX... . This name corresponds to the vol field in the Datafy metrics, which you can use to enrich other metrics with the relevant mount and filesystem paths.

Last updated

Was this helpful?