--- title: "Metrics" description: "Read connections, CPU, memory and replication lag for your managed database, and know what each one is telling you." category: "Deployment" language: en source: https://cubepath.com/docs/products/deployment/db-metrics updated: 2026-11-17 --- # Metrics Open the database → **Metrics** tab in [my.cubepath.com](https://my.cubepath.com). ## What's charted The tab charts availability, the engine's own activity (statements, sessions or commands, depending on the engine) and the server's CPU, memory, network and disk. These are the charts to read first: | Chart | Unit | What it tells you | |-------|------|-------------------| | **Connections** | count | How many clients are connected. A flat line at your pool's maximum means clients are queueing, not that the database is idle | | **Server CPU** | % | Sustained high CPU usually means missing indexes or an expensive query, not an undersized plan | | **Server memory** | GiB | Memory in use on the server. When it plateaus at the plan limit, cache hit rates fall and query latency climbs | | **Replica delay** | seconds | How far behind the replicas are (the replication lag). Only on databases with 3 nodes | ## Replication lag is the one to watch With 3 nodes, lag is the metric that quietly breaks correctness rather than availability. If your application reads from the replicas (through the read host), lag is the window in which a read can return data from *before* a write your user just made: the classic "I saved it but it's not there" bug. - **A few seconds during a heavy write burst** is normal. - **Lag that keeps growing** means the replica can't keep up. That's a bigger write volume than the plan can replicate, or a long-running query on the replica that stops it from applying changes. - **Lag that never returns to near zero** puts your failover at risk: promoting a replica that's minutes behind loses those minutes of writes. ## Time range and live mode Pick **Last hour**, **Last 6 hours**, **Last 24 hours**, **Last 3 days**, **Last 7 days** or **Last 30 days**, and click **Enable live mode** for a view that refreshes every 30 seconds while you test a change. > Note: Metric collection starts shortly after provisioning finishes, so charts can stay empty for a few minutes on a brand-new database. If a single series has no data yet, the chart says so rather than showing a misleading zero. > Tip: Read connections and CPU together. High CPU with few connections is one expensive query; high connections with low CPU is usually a connection pool that's misconfigured or leaking.