basiradocs
Dashboard

Dashboard Overview

Understand the Basira dashboard and what each metric means.

The dashboard gives you an at-a-glance view of your database health. It shows a health score, key performance indicators, and the top slow queries.

Health Score

The health score (0–100) is a composite of your database's current state. It accounts for active query count, cache efficiency, dead tuple ratio, replication lag, and lock contention. Higher is better.

RangeMeaning
80–100Healthy — no action needed
50–79Degraded — review flagged issues
0–49Unhealthy — immediate attention recommended

Use the Health Diagnosis page for a detailed breakdown of what's affecting the score.

Key Metrics

PostgreSQL

MetricWhat it meansHealthy range
Active queriesQueries currently executingDepends on workload; sudden spikes indicate problems
Longest queryDuration of the longest running queryUnder 30s for OLTP workloads
Blocked queriesQueries waiting on locks held by other sessions0 in normal operation
Cache hit ratioPercentage of reads served from shared buffers> 99% for OLTP
Dead tuple ratioFraction of dead rows across all tables< 5%; high values mean autovacuum is behind
Last autovacuumWhen autovacuum last ran on any tableRecent (within hours)

ClickHouse

MetricWhat it meansHealthy range
Active queriesQueries currently executingDepends on workload
Longest queryDuration of the longest running queryVaries by use case
Active mergesBackground merge operations in progressSome is normal; high counts slow inserts
Merge progressAverage progress of active mergesSteady progress; stalls indicate problems
Active mutationsALTER TABLE mutations in progress0 when idle
Stuck mutationsMutations that have stopped progressingShould always be 0
Query P9999th percentile query latencyDepends on workload

Top Slow Queries

The dashboard shows your top queries ranked by total execution time. Click any query to see its full performance history and EXPLAIN plans on the Query Performance page.

Time Range

Use the time picker in the top right to change the window. Presets include 1 day, 7 days, and 30 days, or pick a custom range. The selected range applies across all dashboard views.

Database Selector

If you monitor multiple databases, use the database dropdown in the sidebar to switch between them. Each database has its own independent dashboard.

On this page