Skip to content

Commit 6bb8401

Browse files
authored
Merge pull request weaviate#2605 from weaviate/reduce-prometheus-metrics
2 parents c59cf60 + 37d7c60 commit 6bb8401

File tree

6 files changed

+778
-235
lines changed

6 files changed

+778
-235
lines changed

tools/dev/grafana/dashboards/importing.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"uid": "Prometheus"
106106
},
107107
"exemplar": true,
108-
"expr": "rate(batch_durations_ms_sum{class_name=\"n/a\"}[5s])/rate(batch_durations_ms_count{class_name=\"n/a\"}[5s])",
108+
"expr": "rate(batch_durations_ms_sum{class_name=\"n/a\"}[$__interval])/rate(batch_durations_ms_count{class_name=\"n/a\"}[$__interval])",
109109
"interval": "",
110110
"legendFormat": "{{operation}}",
111111
"refId": "A"
@@ -350,7 +350,7 @@
350350
"uid": "Prometheus"
351351
},
352352
"exemplar": true,
353-
"expr": "rate(batch_durations_ms_sum{operation=\"object_storage\"}[5s])/rate(batch_durations_ms_count{operation=\"object_storage\"}[5s])",
353+
"expr": "rate(batch_durations_ms_sum{operation=\"object_storage\"}[$__interval])/rate(batch_durations_ms_count{operation=\"object_storage\"}[$__interval])",
354354
"interval": "",
355355
"legendFormat": "Object Storage ({{class_name}} - {{shard_name}})",
356356
"refId": "A"
@@ -361,7 +361,7 @@
361361
"uid": "Prometheus"
362362
},
363363
"exemplar": true,
364-
"expr": "rate(batch_durations_ms_sum{operation=\"vector_storage\"}[5s])/rate(batch_durations_ms_count{operation=\"vector_storage\"}[5s])",
364+
"expr": "rate(batch_durations_ms_sum{operation=\"vector_storage\"}[$__interval])/rate(batch_durations_ms_count{operation=\"vector_storage\"}[$__interval])",
365365
"hide": false,
366366
"interval": "",
367367
"legendFormat": "Vector Storage ({{class_name}} - {{shard_name}})",

tools/dev/grafana/dashboards/lsm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@
476476
"uid": "Prometheus"
477477
},
478478
"editorMode": "code",
479-
"expr": "rate(lsm_bloom_filters_duration_ms_sum{strategy=\"replace\"}[5s])/rate(lsm_bloom_filters_duration_ms_count{strategy=\"replace\"}[5s])",
479+
"expr": "rate(lsm_bloom_filters_duration_ms_sum{strategy=\"replace\"}[$__interval])/rate(lsm_bloom_filters_duration_ms_count{strategy=\"replace\"}[$__interval])",
480480
"legendFormat": "{{operation}} ({{class_name}}/{{shard_name}})",
481481
"range": true,
482482
"refId": "A"

0 commit comments

Comments
 (0)