Skip to main content

Overview

Rivestack provides built-in monitoring for all HA clusters. Metrics are collected via Prometheus exporters running on each node, with data available through the dashboard or API.
Monitoring is available on HA clusters only. Free tier databases show basic usage metrics.

Dashboard metrics

Navigate to the Metrics tab of your HA cluster to view real-time and historical data.

Time ranges

Select from three predefined ranges:
RangeSampling interval
1 hour1 minute
24 hours10 minutes
7 days1 hour

PostgreSQL metrics

MetricDescription
TPSTransactions per second (commits + rollbacks)
Active connectionsCurrent number of active connections
Cache hit ratioBuffer cache effectiveness (higher is better)
Disk usagePostgreSQL data directory size and total disk usage
Replication lagTime and byte lag for replica nodes
Tuple operationsRows fetched, inserted, updated, and deleted per second
DeadlocksNumber of deadlocks detected

System metrics (per node)

MetricDescription
CPU usageUser, system, and total CPU percentage
Memory usageUsed, free, cached, and total memory
Disk I/ORead and write throughput (KB/s)
Network I/OReceived and transmitted throughput (KB/s)
Disk spaceUsed and total disk space with usage percentage

Cluster health

The dashboard shows a real-time health status for each cluster:
StatusMeaning
HealthyAll nodes are running and reachable
DegradedSome nodes are healthy, but not all
CriticalNo nodes are responding
Health status is also visible on the main dashboard as a badge on each cluster card, alongside a TPS sparkline chart showing recent transaction throughput.

Node topology

The Topology tab shows each node in your cluster with:
  • Node name and role (primary or replica)
  • Current state (streaming, in archive recovery, stopped)
  • Replication lag (for replicas)
  • Timeline number

Accessing metrics

Dashboard

The easiest way to view metrics is through the Rivestack dashboard at app.rivestack.io. Charts update automatically with the selected time range.

API

You can query metrics programmatically via the Rivestack API:
# Current metrics for all nodes
GET /api/ha/:id/metrics

# Historical metrics per node
GET /api/ha/:id/nodes/metrics?range=24h

# TPS sparkline data
GET /api/ha/:id/tps

# Cluster health status
GET /api/ha/:id/health

Alerts and notifications

Rivestack sends email notifications for key events:
  • Cluster provisioning complete
  • Backup success or failure
  • Restore operations
  • Node scaling operations
  • Cluster health changes
Configure notification preferences in Settings from the dashboard sidebar.