Documentation Index
Fetch the complete documentation index at: https://docs.nearbase.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Nearbase console provides live monitoring data for every running instance across four areas: Performance, Usage, Error Logs, and Slow Query Logs.Performance Tab
The Performance tab shows real-time and historical charts for the most important database metrics.| Metric | Description |
|---|---|
| CPU Usage | Percentage of allocated vCPUs in use. Sustained high CPU suggests the instance class needs to be scaled up. |
| Memory Usage | Percentage of allocated RAM in use. High memory pressure can cause query slowdowns and swapping. |
| Disk IOPS | Read and write I/O operations per second. Useful for identifying I/O-bound workloads. |
| Active Connections | Number of client connections currently open. Compare against your instance’s connection limit. |
| Slow Queries | Count of queries that exceeded the slow query threshold in the selected time window. |
| Long Transactions | Count of transactions open for an unusually long time. Long transactions can block vacuuming and cause lock contention. |
Usage Tab
The Usage tab shows aggregate resource utilization for the instance.| Metric | Description |
|---|---|
| Disk Usage | Total storage consumed vs. your provisioned storage size. |
| Memory | Actual memory consumed by the database process. |
Storage can only be scaled up, not down. Monitor disk usage and scale storage
before you run out — the platform will alert you when usage is high.
Error Logs
The Error Logs tab streams PostgreSQL error log entries from your instance. Filtering:- Use the date range picker to view logs from a specific time window.
- Results are paginated; use the navigation controls to scroll through older entries.
| Message Pattern | What It Means |
|---|---|
FATAL: password authentication failed | A client attempted to connect with wrong credentials. |
ERROR: out of shared_buffers | Memory pressure; consider scaling up or tuning shared_buffers. |
FATAL: remaining connection slots are reserved | Connection limit reached; reduce pool size or scale up. |
ERROR: deadlock detected | Two transactions were waiting on each other; one was rolled back. |
Slow Query Logs
The Slow Query Logs tab lists queries that exceeded the slow query threshold, along with their execution time and query text. Filtering:- Use the date range picker to scope to a specific time window.
- Results are paginated.
- Sort by execution time to find the worst offenders.
- Run
EXPLAIN ANALYZEon slow queries inpsqlto see the query plan. - Add indexes on columns used in
WHERE,JOIN, andORDER BYclauses. - Consider rewriting queries that perform sequential scans on large tables.