Skip to content

Commit f2ccf8d

Browse files
committed
Supabase Cloud: Fix monitor query for CPU load
1 parent aecb189 commit f2ccf8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supabase_cloud/assets/monitors/supabase_postgres_server_high_load.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"id": 232765495,
99
"name": "[Supabase] Postgres server cpu usage is high",
1010
"type": "query alert",
11-
"query": "avg(last_5m):avg:supabase.cloud.node.load15{*} by {supabase_project_ref} > 120",
11+
"query": "avg(last_5m):(avg:supabase.cloud.node.load15{*} by {supabase_project_ref,supabase_identifier} * 100) / sum:supabase.cloud.node.cpu.online{*} by {supabase_project_ref,supabase_identifier} > 120",
1212
"message": "The Postgres server for project {{supabase_project_ref.name}} is {{#is_alert}}under high load{{/is_alert}}{{#is_alert_recovery}}back within acceptable load{{/is_alert_recovery}}. @example@example.com",
1313
"tags": [
1414
"source:supabase-cloud"

0 commit comments

Comments
 (0)