Skip to content

Commit 5acf627

Browse files
Update prometheus-metrics-v1-to-v2.md
1 parent 1d3dbee commit 5acf627

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/integrate/prometheus-with-redis-enterprise/prometheus-metrics-v1-to-v2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ As of Redis Enterprise Software version 7.8.2, [PromQL (Prometheus Query Languag
2727
| <span class="break-all">bdb_avg_read_latency_max</span></span> | <span class="break-all">`sum by (db) (irate(endpoint_acc_read_latency[1m])) / sum by (db) (irate(endpoint_total_started_res[1m])) / 1000000`</span> | Highest value of average latency of read operations (seconds); returned only when there is traffic |
2828
| <span class="break-all">bdb_avg_write_latency</span> | <span class="break-all">`sum by (db) (irate(endpoint_acc_write_latency[1m])) / sum by (db) (irate(endpoint_total_started_res[1m])) / 1000000`</span> | Average latency of write operations (seconds); returned only when there is traffic |
2929
| <span class="break-all">bdb_avg_write_latency_max</span> | <span class="break-all">`sum by (db) (irate(endpoint_acc_write_latency[1m])) / sum by (db) (irate(endpoint_total_started_res[1m])) / 1000000`</span> | Highest value of average latency of write operations (seconds); returned only when there is traffic |
30-
| <span class="break-all">bdb_bigstore_shard_count</span> | <span class="break-all">`sum((sum(label_replace(namedprocess_namegroup_thread_count{threadname=~"(speedb\|rocksdb).*", cluster="$cluster", db="$db"}, "driver", "$1", "threadname", "(speedb\|rocksdb).*")) by (redis, driver) > bool 0)) by (db, driver)`</span> | Shard count by database and by storage engine (driver - rocksdb / speedb); Only for databases with Auto Tiering enabled |
30+
| <span class="break-all">bdb_bigstore_shard_count</span> | <span class="break-all">`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)`</span> | Shard count by database and by storage engine (driver - rocksdb / speedb); Only for databases with Auto Tiering enabled |
3131
| <span class="break-all">bdb_conns</span> | <span class="break-all">`sum by(db) (endpoint_client_connections)`</span> | Number of client connections to database |
3232
| <span class="break-all">bdb_egress_bytes</span> | <span class="break-all">`sum by(db) (irate(endpoint_egress_bytes[1m]))`</span> | Rate of outgoing network traffic from the database (bytes/sec) |
3333
| <span class="break-all">bdb_egress_bytes_max</span> | <span class="break-all">`sum by(db) (irate(endpoint_egress_bytes[1m]))`</span> | Highest value of the rate of outgoing network traffic from the database (bytes/sec) |
@@ -71,7 +71,7 @@ As of Redis Enterprise Software version 7.8.2, [PromQL (Prometheus Query Languag
7171
| <span class="break-all">bdb_shard_cpu_system_max<span></span> | <span class="break-all">`sum by(db) (irate(namedprocess_namegroup_thread_cpu_seconds_total{mode="system", role="master"}[1m]))`</span> | Highest value of % cores utilization in system mode for all Redis shard processes of this database |
7272
| <span class="break-all">bdb_shard_cpu_user</span> | <span class="break-all">`sum by(db) (irate(namedprocess_namegroup_thread_cpu_seconds_total{mode="user", role="master"}[1m]))`</span> | % cores utilization in user mode for the Redis shard process |
7373
| <span class="break-all">bdb_shard_cpu_user_max</span> | <span class="break-all">`sum by(db) (irate(namedprocess_namegroup_thread_cpu_seconds_total{mode="user", role="master"}[1m]))`</span> | Highest value of % cores utilization in user mode for the Redis shard process |
74-
| <span class="break-all">bdb_shards_used</span> | <span class="break-all">`sum((sum(label_replace(label_replace(namedprocess_namegroup_thread_count{cluster="$cluster", db="$db"}, "shard_type", "flash", "threadname", "(bigstore).*"), "shard_type", "ram", "shard_type", "")) by (redis, shard_type) > bool 0)) by (db, shard_type)`</span> | Used shard count by database and by shard type (ram / flash) |
74+
| <span class="break-all">bdb_shards_used</span> | <span class="break-all">`sum((sum(label_replace(label_replace(label_replace(namedprocess_namegroup_thread_count{groupname=~"redis-\d+"}, "redis", "$1", "groupname", "redis-(\d+)"), "shard_type", "flash", "threadname", "(bigstore).*"), "shard_type", "ram", "shard_type", "")) by (redis, shard_type) > bool 0) * on (redis) group_left(db) redis_server_up) by (db, shard_type)`</span> | Used shard count by database and by shard type (ram / flash) |
7575
| <span class="break-all">bdb_total_connections_received</span> | <span class="break-all">`sum by(db) (irate(endpoint_total_connections_received[1m]))`</span> | Rate of new client connections to database (connections/sec) |
7676
| <span class="break-all">bdb_total_connections_received_max<span></span> | <span class="break-all">`sum by(db) (irate(endpoint_total_connections_received[1m]))`</span> | Highest value of the rate of new client connections to database (connections/sec) |
7777
| <span class="break-all">bdb_total_req</span> | <span class="break-all">`sum by (db) (irate(endpoint_total_req[1m]))`</span> | Rate of all requests on the database (ops/sec) |

0 commit comments

Comments
 (0)