Skip to main content

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.
If CPU or connections are consistently near their limits, consider scaling up your instance class or adding connection pooling in your application.

Usage Tab

The Usage tab shows aggregate resource utilization for the instance.
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.
Common log entries to watch for:

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.
Using slow query logs:
  1. Sort by execution time to find the worst offenders.
  2. Run EXPLAIN ANALYZE on slow queries in psql to see the query plan.
  3. Add indexes on columns used in WHERE, JOIN, and ORDER BY clauses.
  4. Consider rewriting queries that perform sequential scans on large tables.
Slow query logging is enabled by default. The threshold is set in your instance’s PostgreSQL parameters — see Parameters.