From 90a8c632c6b2592279c083e43882cc94d7d5e911 Mon Sep 17 00:00:00 2001
From: Maayan Agranat <107346841+maayanagranat@users.noreply.github.com>
Date: Fri, 10 Oct 2025 11:45:16 +0300
Subject: [PATCH] Update rs-prometheus-metrics-transition-plan.md
update bdb conns
---
content/embeds/rs-prometheus-metrics-transition-plan.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/content/embeds/rs-prometheus-metrics-transition-plan.md b/content/embeds/rs-prometheus-metrics-transition-plan.md
index 674cfdc73..bbff9c439 100644
--- a/content/embeds/rs-prometheus-metrics-transition-plan.md
+++ b/content/embeds/rs-prometheus-metrics-transition-plan.md
@@ -9,7 +9,7 @@
| bdb_avg_write_latency | `(sum(irate(endpoint_write_requests_latency_histogram_sum{db=""$db""}[1m]))/sum(irate(endpoint_write_requests{db=""$db""}[1m])))/1000000` | Average latency of write operations (seconds); returned only when there is traffic |
| bdb_avg_write_latency_max | `histogram_quantile(1, sum by (le) (irate(endpoint_write_requests_latency_histogram_bucket{db=""$db""}[1m]))) / 1000000` | Highest value of average latency of write operations (seconds); returned only when there is traffic |
| bdb_bigstore_shard_count | `sum((sum(label_replace(label_replace(namedprocess_namegroup_thread_count{groupname=~"redis-\d+", threadname=~"(speedb\|rocksdb).*"}, "redis", "$1", "groupname", "redis-(\d+)"), "driver", "$1", "threadname", "(speedb\|rocksdb).*")) by (redis, driver) > bool 0) * on (redis) group_left(db) redis_server_up) by (db, driver)` | Shard count by database and by storage engine (driver - rocksdb / speedb); Only for databases with Auto Tiering enabled |
-| bdb_conns | `sum by (db) (endpoint_client_connections{cluster=""$cluster"", db=""$db""} - endpoint_client_disconnections{cluster=""$cluster"", db=""$db""})` | Number of client connections to database |
+| bdb_conns | `sum(endpoint_client_connections{cluster="$cluster", db="$db"} - endpoint_client_disconnections{cluster="$cluster", db="$db"} - endpoint_proxy_disconnections{cluster="$cluster", db="$db"})` | Number of client connections to database |
| bdb_egress_bytes | `sum by(db) (irate(endpoint_egress{db="$db"}[1m]))` | Rate of outgoing network traffic from the database (bytes/sec) |
| bdb_egress_bytes_max | `max_over_time (sum by(db) (irate(endpoint_egress{db="$db"}[1m]))[$__range:])` | Highest value of the rate of outgoing network traffic from the database (bytes/sec) |
| bdb_evicted_objects | `sum by (db) (irate(redis_server_evicted_keys{role="master"}[1m]))` | Rate of key evictions from database (evictions/sec) |