Skip to content

Commit

Permalink
Switch monitors from sum to average
Browse files Browse the repository at this point in the history
  • Loading branch information
dkirov-dd committed Jan 14, 2025
1 parent 9938947 commit 28a0da2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions milvus/assets/monitors/index_build_latency.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
"definition": {
"name": "High index build latency",
"type": "query alert",
"query": "sum(last_5m):sum:milvus.build_latency.sum{*}.as_count() > 0.3",
"query": "sum(last_5m):avg:milvus.build_latency.sum{*}.as_count() > 2",
"message": "{{#is_alert}}Index build latency has exceeded {{threshold}}.{{/is_alert}}\n{{#is_recovery}}Index build latency has returned to normal levels.{{/is_recovery}}",
"tags": ["integration:milvus"],
"options": {
"thresholds": {
"critical": 0.3
"critical": 2,
"warning": 1
},
"notify_audit": false,
"on_missing_data": "default",
Expand Down
2 changes: 1 addition & 1 deletion milvus/assets/monitors/request_latency.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"definition": {
"name": "Request latency is high",
"type": "query alert",
"query": "sum(last_5m):sum:milvus.proxy.req.latency.sum{*}.as_count() / sum:milvus.proxy.req.latency.count{*}.as_count() > 500",
"query": "sum(last_5m):avg:milvus.proxy.req.latency.sum{*}.as_count() > 500",
"message": "{{#is_alert}}Request latency exceeds {{threshold}} milliseconds.{{/is_alert}}\n{{#is_recovery}}Request latency has returned to acceptable levels.{{/is_recovery}}",
"tags": ["integration:milvus"],
"options": {
Expand Down

0 comments on commit 28a0da2

Please sign in to comment.