Router monitoring
Applications connect to Neki routers rather than directly to individual shards. Routers plan each statement, determine which shards need to participate, and combine results when a query runs on more than one shard. Router metrics include:- Queries per second.
- Query latency, including per-database detail.
- Query errors per second.
- Router CPU and memory utilization.
- Container restarts, out-of-memory restarts, and pod status.
Shard and Postgres monitoring
Each Neki shard contains a primary Postgres instance and can contain one or more replicas. The Shards and Storage metrics tabs can limit graphs to one configuration profile. The Logs page lets you select shards and then narrow the results to servers within those shards. Postgres monitoring includes:- CPU, memory, IOPS, and storage utilization.
- Connections, transaction rate, and locks.
- WAL storage and archival activity.
- Replication lag between primaries and replicas.
- Out-of-memory events, container restarts, and instance health.
Query monitoring
Query Insights groups executions into query patterns and shows their behavior over time. Use it to investigate:- Query latency and execution count.
- Rows read and rows written.
- Errors and anomalous performance.
- Query tags.
- Shard calls made by each query.
- Parallel worker activity.
- Schema recommendations.
appdb refers to orders and Postgres resolves it from the sales schema,
the qualified table is appdb.sales.orders. A query can reference more than
one qualified table. The Schema column is a connection grouping rather than
a PostgreSQL schema name; see
Table and schema names in Neki.
A high shard-call count can come from a query that fans out across shards or
from repeated dispatches to the same shard. Review the query plan and the
database’s data topology when investigating an
unexpected value.
Investigate a performance problem
A typical investigation moves between Query Insights, Metrics, and Logs:- Start with Query Insights to identify the affected query pattern and time range.
- Check Metrics for changes in router latency, shard resource utilization, storage activity, or replication lag during the same period.
- Search Logs for errors or server events from the affected shards and Postgres instances.
- Compare the results across shards to determine whether the issue is isolated or branch-wide.

