Use this when tracking storage metrics over months.
Trending
Storage trending records capacity and performance metrics over months, showing growth rates, peak periods and slowly rising latency, so upgrades are planned before limits are reached.
1. Trending shows growth and performance changes over time.
2. Keep long retention for capacity metrics.
3. Review monthly.
4. Use for planning and anomaly detection.
5. Annotate changes.
metrics over time → trends → decisions
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Too short retention to see trends.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Trends show growth and slowly rising latency.
- Keep long retention for capacity data.
- Review trends regularly.
Grafana dashboards— trendspredict_linear queries— forecastmonthly capacity report— review
ReferenceHow it works1 section · depth on demand
Commands
zpool iostat -v 60
sar -d 1
Store metrics in a time-series database (Prometheus, InfluxDB) and graph capacity and latency per pool.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
Trending answers "when will this become a problem?"
A single reading of capacity or latency says little. Trends over weeks show growth rates, busy periods and slow degradation.
Built-in history with sysstat
sar(1) reports block-device activity with -d, using fields tps, rkB/s, wkB/s, areq-sz, aqu-sz, await and %util. -f reads saved daily files, by default from /var/log/sa, and -1 selects yesterday. Disk statistics must be collected by sadc with -S DISK.
$ sar -d -p -f /var/log/sa/sa26 -s 08:00:00 -e 18:00:00
08:10:01 AM DEV tps rkB/s wkB/s areq-sz aqu-sz await %util
08:10:01 AM sdb 812.4 6120.3 21844.9 34.42 4.81 5.92 71.30
$ sar -d -p -1 | tail -5 # yesterday's averages
What to trend
| Metric | Planning question |
|---|---|
| Used capacity per volume or pool | Days until full |
| IOPS and throughput (tps, kB/s) | Approaching the array or link limit? |
Latency (await) at the same load | Is the storage degrading? |
Queue length (aqu-sz) | Is demand outgrowing parallelism? |
| SMART counters | Which disks to replace proactively |
| Snapshot and backup sizes | Retention cost over time |
Methods
- Keep at least 13 months for capacity data, so seasonal peaks are visible.
- Compare the same weekday and hour. Week-on-week comparison removes backup and batch noise.
- Use percentiles (p95, p99) for latency, not averages.
- Derive days-until-full from a 30- or 90-day linear fit, and alert on it as well as on percentage thresholds.
sysstat keeps a limited number of days by default (HISTORY in its configuration). For longer trends, ship metrics to a time-series system.
Documented example, not captured output.
Quick reference
Trending stores capacity and performance metrics long enough to see seasonality (13+ months) and forecasts when thresholds will be reached. Prometheus predict_linear(node_filesystem_avail_bytes[30d], 90*24*3600) < 0 warns 90 days before a filesystem is predicted to fill.
Reference
Keep at least 13 months of capacity and performance history to see seasonal patterns. Forecast with linear or growth-rate models and review monthly.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Storage Monitoring → Trending. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://sysstat.github.io/ · confidence 94%