Datafy Metrics Exporter
The Datafy Metrics Exporter exposes supplementary metrics about the Datafy agent's health and your autoscaling volumes, at two 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 | shTo configure a custom port, install with the flag PORT. For example:
curl -sSfL https://bos.datafy.io/install_exporter | sh PORT=9100 shThe exporter can be uninstalled in the same manner, using the command:
curl -sSfL https://bos.datafy.io/uninstall_exporter | shTo install Datafy Metrics Exporter using a Docker image, use the following installation command:
docker run -d \
--name datafy_exporter \
--restart unless-stopped \
--pid=host --privileged \
-v /:/host:ro,rslave \
-v /var/lib/datafy/pipes/geoms.state:/var/lib/datafy/pipes/geoms.state \
-p 9908:9908 \
public.ecr.aws/datafy-io/datafy-exporter:latestTo configure a custom port, install with the flag -port. For example:
docker run -d \
--name datafy_exporter \
--restart unless-stopped \
--pid=host --privileged \
-v /:/host:ro,rslave \
-v /var/lib/datafy/pipes/geoms.state:/var/lib/datafy/pipes/geoms.state \
-p 9202:9202 \
public.ecr.aws/datafy-io/datafy-exporter:latest \
-port=9202Datafy 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:
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.
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 dvolXXX.... 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?
