cockroachdb / cockroach

CockroachDB - the open source, cloud-native distributed SQL database.
https://www.cockroachlabs.com
Other
29.59k stars 3.7k forks source link

Add all execution stats to the cloud telemetry logging channel #84729

Open kevin-v-ngo opened 2 years ago

kevin-v-ngo commented 2 years ago

We collect execution statistics and surface them in crdb_internal.statement_statistics. We should also capture these statistics in our cloud telemetry logging channel for query events. A few fields that are missing include:

The full list is here: https://www.cockroachlabs.com/docs/stable/crdb-internal.html#statistics-column

Related issue: https://github.com/cockroachdb/cockroach/pull/84718

Jira issue: CRDB-17832

Epic CRDB-32141

kevin-v-ngo commented 1 year ago

Related issue: https://github.com/cockroachdb/cockroach/pull/84718

kevin-v-ngo commented 1 year ago

Retries would've been helpful to understand workload suffering from contention (write after read, read uncertainty window, closed timestamp).

j82w commented 1 year ago

All MVCC and latency info added in: https://github.com/cockroachdb/cockroach/pull/102820

j82w commented 1 year ago

Nodes needs to wait on: https://github.com/cockroachdb/cockroach/pull/102774