Skip to content
BleemeoBleemeo

CockroachDB

Prometheus Metrics

CockroachDB is a distributed SQL database designed for cloud-native applications with built-in resilience and horizontal scalability.

CockroachDB exposes Prometheus metrics by default at http://localhost:8080/_status/vars – no additional service-side configuration is required.

Terminal window
sudo tee /etc/glouton/conf.d/99-cockroachdb.conf > /dev/null << 'EOF'
metric:
prometheus:
targets:
- url: "http://localhost:8080/_status/vars"
name: "cockroachdb"
allow_metrics:
- "sys_cpu_combined_percent_normalized"
- "sys_rss"
- "sql_query_count"
- "sql_conns"
- "liveness_livenodes"
- "capacity_used"
EOF

Glouton automatically detects configuration changes.

MetricDescription
sys_cpu_combined_percent_normalizedCombined CPU usage percentage normalized across all cores
sys_rssResident set size (RSS) memory usage of the CockroachDB process in bytes
sql_query_countTotal number of SQL queries executed
sql_connsNumber of currently active SQL connections
liveness_livenodesNumber of live nodes in the cluster
capacity_usedAmount of disk storage capacity currently in use in bytes