cockroachdb / cockroachdb/cockroach

admission: log CPU overload metrics

Open
#137,027 1 comment 0 reactions 0 assignees View on GitHub
A-admission-control C-enhancement E-starter T-admission-control
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

We log several IO overload metrics through `io_load_listener` to help investigate cases of IO overload. However, we rely only on prometheus exported metrics for CPU. This can create a blindspot when investigating unit test failures that implicate waiting on admission queues.

We should add some elastic CPU and slot metrics to the logs in a similar fashion to the `io_load_listener` logs. Some useful metrics could be:

1. CPU util
2. Elastic CPU util
3. Used/Available slots
4. Runnable go routines
5. Go scheduler latency
6. Token Exhaustion (both elastic and regular)

Jira issue: CRDB-45363

Epic CRDB-55046

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.