Pure Storage Metrics
Pure Storage-related metrics in this repo are documented through the Portworx metrics path.
Prerequisites
- Portworx is deployed and exposing Prometheus metrics
- service path is reachable from the AppDynamics scrape path
- verify that the
portworx-serviceexposes port9001 - Portworx runs as a DaemonSet. Set
internalTrafficPolicy: Localonportworx-serviceso each Machine Agent scrapes the local Portworx pod; otherwise agents may scrape a different node each interval and corrupt the delta-based IOPS metrics.
Enable Prometheus Scraping for Pure Storage
- service:
portworx-service - namespace:
kube-system - port:
9001 - path:
/metrics
Replace these values with the storage metrics service name and namespace used in the target environment.
Configure Machine Agent Ingestion
Infrastructure Visibility Prometheus monitoring loads the storage exporter definition through prometheus-config-template.yaml.
Before enabling the scrape, update the exporter YAML service discovery fields to the service name and namespace used by your storage metrics deployment.
Exporter YAML Contract
- exporter-yamls/storage-exporter.yaml
- key source metrics:
px_cluster_disk_total_bytespx_cluster_disk_utilized_bytespx_cluster_status_nodes_onlinepx_cluster_status_nodes_offlinepx_cluster_cpu_percentpx_volume_reads_totalpx_volume_writes_totalpx_volume_readthroughputpx_volume_writethroughputpx_volume_read_latency_secondspx_volume_write_latency_seconds
- custom metric family:
Custom Metrics|Storage|...
Counter-backed IOPS and throughput metrics in this exporter use delta publication before dashboarding. Throughput metrics are source gauge rates and are aggregated without reportDelta.
Expected AppDynamics Custom Metric Paths
Custom Metrics|Storage|Cluster Disk Total BytesCustom Metrics|Storage|Cluster Disk Utilized BytesCustom Metrics|Storage|Nodes OnlineCustom Metrics|Storage|Nodes OfflineCustom Metrics|Storage|Cluster CPU (%)Custom Metrics|Storage|Volume Read IOPSCustom Metrics|Storage|Volume Write IOPSCustom Metrics|Storage|Volume Read ThroughputCustom Metrics|Storage|Volume Write ThroughputCustom Metrics|Storage|Volume Read Latency (microseconds)Custom Metrics|Storage|Volume Write Latency (microseconds)
Create Custom Dashboard
The custom dashboard script generates ready-to-import AppDynamics dashboard JSON files from a set of templates. You supply your environment's node names and, optionally, the custom metric path prefixes. The script substitutes them into the templates and writes the JSON files. See Create Custom Dashboards for AI Pods.
Troubleshooting
Distinguish the zero-valued storage metrics from missing paths before changing the exporter YAML.