You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
metrics: add SQLGauge to support high cardinality metrics
This patch introduces `SQLGauge` which is an aggregation gauge of
`SQLChildGauge` metrics. SQLGauge supports combination of `database` and
`application_name` labels. The SQLChildGauge stores the value of a gauge for a
given combination of database and application name. SQLGauge internally uses
cache.UnorderedCache to store child metrics with default size of 5000.
SQLGauge will report to crdb-internal time series only the aggregate sum of all
its children, while its children are additionally exported to prometheus.
SQLGauge differs from AggGauge in that a SQLGauge creates child metrics
dynamically while AggGauge needs child creation up front. We have extracted out
dynamic child creation from AggGauge in SQLGauge.
Epic: CRDB-43153
Part of: CRDB-48489
Release note: None
0 commit comments