Skip to main content
Version: 3.1

Portworx integration with Prometheus

Deprecation notice

Support for Portworx on the following orchestrators will be deprecated:

  • Docker Swarm and Docker Standalone
  • Nomad

For installation instructions on other platforms, refer to the Platform guides section.

note

This document presents the non-Kubernetes method of monitoring your Portworx cluster with Prometheus. Please refer to the Prometheus and Grafana page if you are running Portworx on Kubernetes.

Portworx storage and network stats can easily be integrated with prometheus or similar applications. These stats are exported at port 9001; your application can poll http://<IP_ADDRESS>:9001/metrics to get their runtime values.

Integration with Prometheus

Step 1: Configuring Prometheus to watch a Portworx node

Add your Portworx node as a target in Prometheus config file:

Prometheus Config File

In the example above, our node has IP address of X.X.X.1, so Prometheus is watching X.X.X.1:9001 as its target. This can be any node in the Portworx cluster.

Step 2: Portworx metrics to watch and building graphs with Prometheus

Once Prometheus starts watching your Portworx node, you will be able to see new Portworx related metrics added to Prometheus.

Portworx Metrics in Prometheus

You can now build graphs:

Building a Graph with Prometheus

note

You can also see the stats by running the following curl command:

curl http://<hostname-or-ip>:9001/metrics

For information on the available Portworx metrics, refer to the Portworx metrics for monitoring reference.