Skip to content

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.

Metric Description
sys_cpu_combined_percent_normalized Combined CPU usage percentage normalized across all cores
sys_rss Resident set size (RSS) memory usage of the CockroachDB process in bytes
sql_query_count Total number of SQL queries executed
sql_conns Number of currently active SQL connections
liveness_livenodes Number of live nodes in the cluster
capacity_used Amount of disk storage capacity currently in use in bytes