Monitoring

Prometheus metrics, health checks and range status.

Every node serves metrics and the health check on its administration port (27200 by default).

/healthz

Returns 200 if the node is serving and 503 if not, with no body and no credentials. Use it in your load balancer or orchestrator.

/metrics

Prometheus exposition format. It asks for a client certificate of a user with the clusterMonitor role.

MetricWhat it measures
teseladb_upThe node is running
teseladb_rangesRanges with a replica on this node
teseladb_range_applied_index{range}Last applied entry of each replica
teseladb_range_leader{range}Whether this node leads that range

You can also read them with the CLI:

Shell
teseladb admin metrics

Ranges

Shell
teseladb admin ranges --collection shop.orders

Shows each range with its bounds, replicas and leader. From mongosh, serverStatus, currentOp, $collStats and the profiler have MongoDB's shape.