Skip to main content

Database Metrics

Monitor managed PostgreSQL database performance with Prometheus-powered metrics.

Available Metrics

  • CPU Usage -- container CPU utilization percentage
  • Memory Usage -- RSS and working set memory
  • Disk Usage -- persistent volume used/available
  • Connections -- active connections count
  • Query Performance -- rows returned, transactions per second
API
# Get database metrics (1h, 6h, 24h, or 7d range)
curl "https://railpush.com/api/v1/databases/<id>/metrics?range=24h" \
-H "Authorization: Bearer <token>"

# Response includes time-series data:
# {
# "cpu": [{"timestamp": "...", "value": 12.5}, ...],
# "memory": [{"timestamp": "...", "value": 256000000}, ...],
# "disk": {"used_bytes": 104857600, "total_bytes": 1073741824},
# "connections": [{"timestamp": "...", "value": 5}, ...]
# }