AIStore Observability: Prometheus
AIStore (AIS) exposes metrics in Prometheus format via HTTP endpoints.
This integration enables comprehensive monitoring of AIS clusters, performance tracking, capacity planning, and long-term trend analysis.
Table of Contents
- Overview
- Monitoring Stack
- Prometheus Integration
- Node Alerts
- Best Practices
- References
- Related Documentation
Overview
AIS tracks a comprehensive set of performance metrics including:
- Operation counters (GET/PUT/DELETE/etc.)
- Resource utilization (CPU, memory, disk)
- Latencies and throughput
- Network and peer-to-peer streaming statistics
- Extended actions (xactions)
- Error counters and node state
AIS supports observability through several complementary tools:
-
Node logs (fine-grained operational events)
-
CLI for interactive monitoring (e.g.,
ais show cluster stats) -
Monitoring backends:
- Prometheus (recommended)
- Grafana for dashboards & alerting
For load testing and benchmarking metrics, see AIS Load Generator and How To Benchmark AIStore.
A complete catalog of AIS metrics is available at: Monitoring Metrics Reference
Monitoring Stack
Typical Prometheus deployment:
This stack provides:
- Direct metric collection from AIS nodes
- Centralized metric retention
- Grafana visualization & alerting
- Long-term performance & cost analysis
Prometheus Integration
Native Exporter
AIS acts as a first-class Prometheus exporter. Every node automatically:
- Registers all metrics at startup
- Exposes
/metricsfor Prometheus to scrape - Uses Prometheus native formatting and metadata
- Works with both HTTP and HTTPS clusters
No configuration is required to “enable” Prometheus — it is always on.
AIS exports counters ending in .n with _count, sizes ending in .size with _bytes, and cumulative totals ending in .ns.total with _ns_total; periods elsewhere become underscores unless a metric has an explicit public name. For example, put.size is exported as ais_target_put_bytes. Internally computed latency and throughput metrics, such as get.ns and get.bps, are not exported to Prometheus. This document primarily uses the exported Prometheus names.
Viewing Raw Metrics
View metrics directly:
Example:
To watch GET rates without Prometheus:
Key Metric Groups
AIS organizes metrics into four major groups, reflected in the codebase and Prometheus exporter:
For GetBatch observability, see Monitoring GetBatch.
Metric Labels
AIS provides labels for filtering and aggregation:
Labels depend on the metric family: GET and DELETE counters have bucket; PUT counters have bucket and xkind; remote backend counters (remote_get_count, etc.) have backend, bucket, and xkind; filesystem health errors can have mountpath; disk metrics have disk. GetBatch counters have node_id but no job UUID or per-file archive-path label. Use job details and logs for per-job or per-file investigation.
Labels enable PromQL queries such as:
Essential PromQL Queries
GET operations per second
Average GET latency (ms)
Disk utilization
GET error percentage
ais_target_get_count tracks successful GETs, so include ais_target_err_get_count in the denominator when calculating an error percentage. Object-not-found GETs are counted in ais_target_err_get_count only when the Count-Object-NotFound-Stats feature flag is enabled.
Total cluster capacity usage
Use ais show performance capacity to inspect target mountpath used and available capacity. The built-in AIS exporter does not register ais_target_capacity_used or ais_target_capacity_total; a Prometheus capacity panel requires separately collected capacity data.
Go scheduler delay
With Enable-Go-Runtime-Metrics enabled, go_sched_latencies_seconds measures how long runnable goroutines waited for the Go scheduler before they began running. The histogram is cumulative, so use bucket rates over a recent window to estimate the p99 in milliseconds for each node.
Check the number of observations in the same window before interpreting the percentile. Sparse windows can produce unstable estimates.
GetBatch (x-moss) Queries
GetBatch is AIStore’s high-performance multi-object retrieval pipeline. Metrics describe throughput, composition (objects vs files), Rx stalls, throttling, and error behavior.
Work items per second
Logical payload throughput
Stall breakdown (RxWait vs Throttle)
Soft vs Hard Error Rates
Soft errors:
Hard errors:
Full details and operational guidance: → Monitoring GetBatch
Node Alerts
AIS nodes expose operational alerts and states via ais_target_state_flags.
Flags indicate:
Red (critical)
OOS— Out of spaceOOM— Out of memoryDiskFault— Disk failuresDiskOOS— Disk out of spaceOOCPU— Out of CPUHighNumGoroutines— critical Go scheduler latency (added in v5.3; name kept for compatibility)CertificateExpired— TLS expiry
Warning
Rebalancing,ResilveringRebalanceInterrupted,ResilverInterruptedLowCapacity,LowMemory,LowCPU,DiskLowCapacityNodeRestartedMaintenanceModeCertWillSoonExpireNumGoroutines— high Go scheduler latency (added in v5.3; name kept for compatibility)KeepAliveErrors
Informational
ClusterStartedNodeStartedVoteInProgress
CLI Monitoring
Prometheus Queries
PromQL has no bitwise operators; to test flag bit 2^k, use (floor(x / 2^k) % 2) == 1.
Critical (all red flags):
Selected warnings:
For bit values of all flags, see cmn/cos/node_state.go.
Grafana Alert Example
Best Practices
-
Prometheus retention Plan retention around performance analysis needs (14–30 days recommended).
-
Dashboard segmentation Maintain dashboards for:
- Cluster overview
- Node-level performance
- Resource utilization
- Error monitoring
- Extended actions (GetBatch, rebalance, ETL)
-
Alerts on critical states Monitor:
- Node state flags
- Error spikes
- Disk utilization
- High throttle or rxwait stalls (GetBatch)
-
Scrape frequency 5–15 seconds for critical workloads; 30s+ for low-traffic clusters.
Related Documentation
Separately, Prometheus references: