diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d81b9a66..16e587ea7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +* Added `ydb_go_sdk_ydb_query_pool_size_limit` metrics + ## v3.80.7 * Doesn't rollback a the transaction on the operation error in table service diff --git a/metrics/query.go b/metrics/query.go index fffa76da1..d8a849adc 100644 --- a/metrics/query.go +++ b/metrics/query.go @@ -42,7 +42,7 @@ func query(config Config) (t trace.Query) { sizeConfig := poolConfig.WithSystem("size") limit := sizeConfig.GaugeVec("limit") idle := sizeConfig.GaugeVec("idle") - + index := sizeConfig.GaugeVec("index") t.OnPoolChange = func(stats trace.QueryPoolChange) { if sizeConfig.Details()&trace.QueryPoolEvents == 0 { return @@ -50,6 +50,7 @@ func query(config Config) (t trace.Query) { limit.With(nil).Set(float64(stats.Limit)) idle.With(nil).Set(float64(stats.Idle)) + index.With(nil).Set(float64(stats.Index)) } } }