From db11d64507ea0350e9499c4d606b5edd37bd67e2 Mon Sep 17 00:00:00 2001 From: Kyle Neale Date: Wed, 19 Feb 2025 21:49:52 -0500 Subject: [PATCH] Supabase dashboard fixes (#19657) * Supabase dashboard fixes * remove overview2 * empty --- .../assets/dashboards/supabase_overview.json | 2215 +++++++++-------- 1 file changed, 1110 insertions(+), 1105 deletions(-) diff --git a/supabase/assets/dashboards/supabase_overview.json b/supabase/assets/dashboards/supabase_overview.json index d5526c852f663..cd675308db748 100644 --- a/supabase/assets/dashboards/supabase_overview.json +++ b/supabase/assets/dashboards/supabase_overview.json @@ -1,1167 +1,1172 @@ { - "author_name": "Datadog", - "title": "Supabase Overview", - "description": "## Supabase\n\nThis dashboard provides a high-level overview of your Supabase instances so you can monitor metrics.\n\nFor further reading on monitoring Supabase, see:\n\n- [Official Supabase integration docs](https://docs.datadoghq.com/integrations/supabase/#data-collected)\n \nClone this template to make changes and add your own graphs and widgets.", - "widgets": [ - { - "id": 8731293132858003, - "definition": { - "title": "About Supabase", - "title_align": "left", - "banner_img": "/static/images/logos/supabase_large.svg", - "show_title": false, - "type": "group", - "layout_type": "ordered", - "widgets": [ - { - "id": 7248787798500294, - "definition": { - "type": "note", - "content": "This dashboard provides a high-level overview of your Supabase deployment to help monitor your system.\n", - "background_color": "transparent", - "font_size": "14", - "text_align": "left", - "show_tick": false, - "tick_pos": "50%", - "tick_edge": "left" - }, - "layout": { - "x": 0, - "y": 0, - "width": 3, - "height": 3 - } + "author_name": "Datadog", + "title": "Supabase Overview", + "description": "## Supabase\n\nThis dashboard provides a high-level overview of your Supabase instances so you can monitor metrics.\n\nFor further reading on monitoring Supabase, see:\n\n- [Official Supabase integration docs](https://docs.datadoghq.com/integrations/supabase/#data-collected)\n \nClone this template to make changes and add your own graphs and widgets.", + "widgets": [ + { + "id": 8731293132858003, + "definition": { + "title": "About Supabase", + "title_align": "left", + "banner_img": "/static/images/logos/supabase_large.svg", + "show_title": false, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 7248787798500294, + "definition": { + "type": "note", + "content": "This dashboard provides a high-level overview of your Supabase deployment to help monitor your system.\n", + "background_color": "transparent", + "font_size": "14", + "text_align": "left", + "show_tick": false, + "tick_pos": "50%", + "tick_edge": "left" }, - { - "id": 2783259848144032, - "definition": { - "type": "note", - "content": "**Refer to the following resources for more information**\n\n- [Datadog Supabase documentation](https://docs.datadoghq.com/integrations/supabase/?tab=host#overview)\n\n- [Available Supabase metrics](https://docs.datadoghq.com/integrations/supabase/?tab=host#metrics) \n", - "background_color": "transparent", - "font_size": "14", - "text_align": "left", - "vertical_align": "top", - "show_tick": false, - "tick_pos": "50%", - "tick_edge": "left", - "has_padding": false - }, - "layout": { - "x": 3, - "y": 0, - "width": 3, - "height": 3 - } + "layout": { + "x": 0, + "y": 0, + "width": 3, + "height": 3 + } + }, + { + "id": 2783259848144032, + "definition": { + "type": "note", + "content": "**Refer to the following resources for more information**\n\n- [Datadog Supabase documentation](https://docs.datadoghq.com/integrations/supabase/?tab=host#overview)\n\n- [Available Supabase metrics](https://docs.datadoghq.com/integrations/supabase/?tab=host#metrics) \n", + "background_color": "transparent", + "font_size": "14", + "text_align": "left", + "vertical_align": "top", + "show_tick": false, + "tick_pos": "50%", + "tick_edge": "left", + "has_padding": false + }, + "layout": { + "x": 3, + "y": 0, + "width": 3, + "height": 3 } - ] - }, - "layout": { - "x": 0, - "y": 0, - "width": 6, - "height": 6 - } + } + ] }, - { - "id": 8146310266617062, - "definition": { - "title": "Overview", - "background_color": "vivid_green", - "show_title": true, - "type": "group", - "layout_type": "ordered", - "widgets": [ - { - "id": 628034008442880, - "definition": { - "type": "note", - "content": "This is an overview of service checks, monitors, and connect statuses of your Supabase deployment", - "background_color": "green", - "font_size": "14", - "text_align": "left", - "vertical_align": "center", - "show_tick": false, - "tick_pos": "50%", - "tick_edge": "bottom", - "has_padding": true - }, - "layout": { - "x": 0, - "y": 0, - "width": 6, - "height": 1 - } + "layout": { + "x": 0, + "y": 0, + "width": 6, + "height": 6 + } + }, + { + "id": 8146310266617062, + "definition": { + "title": "Overview", + "background_color": "vivid_green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 628034008442880, + "definition": { + "type": "note", + "content": "This is an overview of service checks, monitors, and connect statuses of your Supabase deployment", + "background_color": "green", + "font_size": "14", + "text_align": "left", + "vertical_align": "center", + "show_tick": false, + "tick_pos": "50%", + "tick_edge": "bottom", + "has_padding": true }, - { - "id": 7605881108562756, - "definition": { - "title": "Healthy", - "title_size": "16", - "title_align": "center", - "type": "check_status", - "check": "supabase.openmetrics.health", - "grouping": "cluster", - "group_by": [], - "tags": [] - }, - "layout": { - "x": 0, - "y": 1, - "width": 6, - "height": 2 - } + "layout": { + "x": 0, + "y": 0, + "width": 6, + "height": 1 + } + }, + { + "id": 7605881108562756, + "definition": { + "title": "Healthy", + "title_size": "16", + "title_align": "center", + "type": "check_status", + "check": "supabase.openmetrics.health", + "grouping": "cluster", + "group_by": [], + "tags": [] }, - { - "id": 1012080992937468, - "definition": { - "title": "CPU Cores", - "title_size": "16", - "title_align": "left", - "type": "query_value", - "requests": [ - { - "response_format": "scalar", - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "count:node_cpu_seconds.count{$supabase_project_ref} by {cpu}.as_count()", - "aggregator": "avg" - } - ], - "formulas": [ - { - "formula": "count_nonzero(query1)" - } - ] - } - ], - "autoscale": true, - "precision": 2 - }, - "layout": { - "x": 0, - "y": 3, - "width": 2, - "height": 1 - } + "layout": { + "x": 0, + "y": 1, + "width": 6, + "height": 2 + } + }, + { + "id": 1012080992937468, + "definition": { + "title": "CPU Cores", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "count:node_cpu_seconds.count{$supabase_project_ref} by {cpu}.as_count()", + "aggregator": "avg" + } + ], + "formulas": [ + { + "formula": "count_nonzero(query1)" + } + ] + } + ], + "autoscale": true, + "precision": 2 }, - { - "id": 4024226952991628, - "definition": { - "title": "RAM Total", - "title_size": "16", - "title_align": "left", - "type": "query_value", - "requests": [ - { - "response_format": "scalar", - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.node.memory.mem_total_bytes{*}", - "aggregator": "avg" - } - ], - "formulas": [ - { - "formula": "query1", - "number_format": { - "unit": { - "type": "canonical_unit" - } + "layout": { + "x": 0, + "y": 3, + "width": 2, + "height": 1 + } + }, + { + "id": 4024226952991628, + "definition": { + "title": "RAM Total", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.node.memory.mem_total_bytes{*}", + "aggregator": "avg" + } + ], + "formulas": [ + { + "formula": "query1", + "number_format": { + "unit": { + "type": "canonical_unit" } } - ] - } - ], - "autoscale": true, - "precision": 2, - "timeseries_background": { - "type": "area" + } + ] } - }, - "layout": { - "x": 2, - "y": 3, - "width": 2, - "height": 1 + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" } }, - { - "id": 5334778882916670, - "definition": { - "title": "SWAP Total", - "title_size": "16", - "title_align": "left", - "type": "query_value", - "requests": [ - { - "response_format": "scalar", - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.node.memory.swap_total_bytes{$supabase_project_ref}", - "aggregator": "avg" - } - ], - "formulas": [ - { - "formula": "query1" - } - ] - } - ], - "autoscale": true, - "precision": 2, - "timeseries_background": { - "type": "area" + "layout": { + "x": 2, + "y": 3, + "width": 2, + "height": 1 + } + }, + { + "id": 5334778882916670, + "definition": { + "title": "SWAP Total", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.node.memory.swap_total_bytes{$supabase_project_ref}", + "aggregator": "avg" + } + ], + "formulas": [ + { + "formula": "query1" + } + ] } - }, - "layout": { - "x": 4, - "y": 3, - "width": 2, - "height": 1 + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" } }, - { - "id": 8868940511277042, - "definition": { - "title": "RootFS Total", - "title_size": "16", - "title_align": "left", - "type": "query_value", - "requests": [ - { - "response_format": "scalar", - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.node.filesystem.size_bytes{$supabase_project_ref, mountpoint:/, !fstype:rootfs}", - "aggregator": "avg" - } - ], - "formulas": [ - { - "formula": "query1" - } - ] - } - ], - "autoscale": true, - "precision": 2, - "timeseries_background": { - "type": "area" + "layout": { + "x": 4, + "y": 3, + "width": 2, + "height": 1 + } + }, + { + "id": 8868940511277042, + "definition": { + "title": "RootFS Total", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.node.filesystem.size_bytes{$supabase_project_ref, mountpoint:/, !fstype:rootfs}", + "aggregator": "avg" + } + ], + "formulas": [ + { + "formula": "query1" + } + ] } - }, - "layout": { - "x": 0, - "y": 4, - "width": 3, - "height": 1 + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" } }, - { - "id": 16207200747768, - "definition": { - "title": "Data Disk Total", - "title_size": "16", - "title_align": "left", - "type": "query_value", - "requests": [ - { - "response_format": "scalar", - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.node.filesystem.size_bytes{$supabase_project_ref, mountpoint:/data ,!fstype:rootfs}", - "aggregator": "avg" - } - ], - "formulas": [ - { - "formula": "query1" - } - ] - } - ], - "autoscale": true, - "precision": 2, - "timeseries_background": { - "type": "area" + "layout": { + "x": 0, + "y": 4, + "width": 3, + "height": 1 + } + }, + { + "id": 16207200747768, + "definition": { + "title": "Data Disk Total", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.node.filesystem.size_bytes{$supabase_project_ref, mountpoint:/data ,!fstype:rootfs}", + "aggregator": "avg" + } + ], + "formulas": [ + { + "formula": "query1" + } + ] } - }, - "layout": { - "x": 3, - "y": 4, - "width": 3, - "height": 1 + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" } + }, + "layout": { + "x": 3, + "y": 4, + "width": 3, + "height": 1 } - ] - }, - "layout": { - "x": 6, - "y": 0, - "width": 6, - "height": 6 - } + } + ] }, - { - "id": 6143778381633990, - "definition": { - "title": "Postgres Metrics", - "background_color": "vivid_green", - "show_title": true, - "type": "group", - "layout_type": "ordered", - "widgets": [ - { - "id": 109699765942540, - "definition": { - "type": "note", - "content": "The Go runtime metrics that can help in troubleshooting performance or bottleneck issues.", - "background_color": "green", - "font_size": "14", - "text_align": "center", - "vertical_align": "top", - "show_tick": false, - "tick_pos": "50%", - "tick_edge": "left", - "has_padding": true - }, - "layout": { - "x": 0, - "y": 0, - "width": 12, - "height": 1 - } + "layout": { + "x": 6, + "y": 0, + "width": 6, + "height": 6 + } + }, + { + "id": 6143778381633990, + "definition": { + "title": "Postgres Metrics", + "background_color": "vivid_green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 109699765942540, + "definition": { + "type": "note", + "content": "This is an overview of the PG status of your Supabase deployment", + "background_color": "green", + "font_size": "14", + "text_align": "center", + "vertical_align": "top", + "show_tick": false, + "tick_pos": "50%", + "tick_edge": "left", + "has_padding": true }, - { - "id": 1418540018030086, - "definition": { - "title": "Rows fetched / returned / inserted / updated (per second)", - "show_legend": true, - "legend_layout": "auto", - "legend_columns": [ - "avg", - "min", - "max", - "value", - "sum" - ], - "type": "timeseries", - "requests": [ - { - "formulas": [ - { - "formula": "query1" - } - ], - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "sum:supabase.pg_stat_database.tup_fetched.count{$supabase_project_ref, $endpoint}.as_rate()" - } - ], - "response_format": "timeseries", - "style": { - "palette": "dog_classic", - "line_type": "solid", - "line_width": "normal" - }, - "display_type": "line" + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "id": 1418540018030086, + "definition": { + "title": "Rows fetched / returned / inserted / updated (per second)", + "show_legend": true, + "legend_layout": "auto", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "time": {}, + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "alias": "Fetched", + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "sum:supabase.pg_stat_database.tup_fetched.count{$supabase_project_ref, $endpoint}.as_rate()" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" }, - { - "formulas": [ - { - "formula": "query1" - } - ], - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "sum:supabase.pg_stat_database.tup_returned.count{$supabase_project_ref, $endpoint}.as_rate()" - } - ], - "response_format": "timeseries", - "style": { - "palette": "dog_classic", - "line_type": "solid", - "line_width": "normal" - }, - "display_type": "line" + "display_type": "line" + }, + { + "formulas": [ + { + "alias": "Returned", + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "sum:supabase.pg_stat_database.tup_returned.count{$supabase_project_ref, $endpoint}.as_rate()" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" }, - { - "formulas": [ - { - "formula": "query1" - } - ], - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "sum:supabase.pg_stat_database.tup_inserted.count{$supabase_project_ref, $endpoint}.as_rate()" - } - ], - "response_format": "timeseries", - "style": { - "palette": "dog_classic", - "line_type": "solid", - "line_width": "normal" - }, - "display_type": "line" + "display_type": "line" + }, + { + "formulas": [ + { + "alias": "Inserted", + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "sum:supabase.pg_stat_database.tup_inserted.count{$supabase_project_ref, $endpoint}.as_rate()" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" }, - { - "formulas": [ - { - "formula": "query1" - } - ], - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "sum:supabase.pg_stat_database.tup_updated.count{$supabase_project_ref, $endpoint}.as_rate()" - } - ], - "response_format": "timeseries", - "style": { - "palette": "dog_classic", - "line_type": "solid", - "line_width": "normal" - }, - "display_type": "line" - } - ] - }, - "layout": { - "x": 0, - "y": 1, - "width": 7, - "height": 3 - } + "display_type": "line" + }, + { + "formulas": [ + { + "alias": "Updated", + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "sum:supabase.pg_stat_database.tup_updated.count{$supabase_project_ref, $endpoint}.as_rate()" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] }, - { - "id": 4423946308485056, - "definition": { - "title": "Connections", - "show_legend": true, - "legend_layout": "auto", - "legend_columns": [ - "avg", - "min", - "max", - "value", - "sum" - ], - "type": "timeseries", - "requests": [ - { - "formulas": [ - { - "alias": "Connections", - "formula": "query1" - } - ], - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.db.sql.connection_open{$supabase_project_ref, $endpoint} by {endpoint}" - } - ], - "response_format": "timeseries", - "style": { - "palette": "dog_classic", - "line_type": "solid", - "line_width": "normal" - }, - "display_type": "line" - } - ] - }, - "layout": { - "x": 7, - "y": 1, - "width": 5, - "height": 3 - } + "layout": { + "x": 0, + "y": 1, + "width": 7, + "height": 3 + } + }, + { + "id": 4423946308485056, + "definition": { + "title": "Connections", + "show_legend": true, + "legend_layout": "auto", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "alias": "Connections", + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.db.sql.connection_open{$supabase_project_ref, $endpoint} by {endpoint}" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] + }, + "layout": { + "x": 7, + "y": 1, + "width": 5, + "height": 3 } - ] - }, - "layout": { - "x": 0, - "y": 6, - "width": 12, - "height": 5 - } + } + ] }, - { - "id": 2257545990564796, - "definition": { - "title": "Logs", - "background_color": "vivid_green", - "show_title": true, - "type": "group", - "layout_type": "ordered", - "widgets": [ - { - "id": 1205253880262830, - "definition": { - "title": "", - "title_size": "16", - "title_align": "left", - "requests": [ - { - "columns": [ - { - "field": "status_line", - "width": "auto" - }, - { - "field": "timestamp", - "width": "auto" - }, - { - "field": "host", - "width": "auto" - }, - { - "field": "service", - "width": "auto" - }, - { - "field": "content", - "width": "compact" - } - ], - "query": { - "data_source": "logs_stream", - "indexes": [], - "query_string": "source:supabase", - "sort": { - "column": "timestamp", - "order": "desc" - }, - "storage": "hot" + "layout": { + "x": 0, + "y": 6, + "width": 12, + "height": 5 + } + }, + { + "id": 2257545990564796, + "definition": { + "title": "Logs", + "background_color": "vivid_green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 1205253880262830, + "definition": { + "title": "", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "columns": [ + { + "field": "status_line", + "width": "auto" }, - "response_format": "event_list" - } - ], - "type": "list_stream" - }, - "layout": { - "x": 0, - "y": 0, - "width": 12, - "height": 3 - } + { + "field": "timestamp", + "width": "auto" + }, + { + "field": "host", + "width": "auto" + }, + { + "field": "service", + "width": "auto" + }, + { + "field": "content", + "width": "compact" + } + ], + "query": { + "data_source": "logs_stream", + "indexes": [], + "query_string": "source:supabase", + "sort": { + "column": "timestamp", + "order": "desc" + }, + "storage": "hot" + }, + "response_format": "event_list" + } + ], + "type": "list_stream" + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 3 } - ] - }, - "layout": { - "x": 0, - "y": 11, - "width": 12, - "height": 4 - } + } + ] }, - { - "id": 5340440168093318, - "definition": { - "title": "Supabase Node Overview", - "background_color": "vivid_green", - "show_title": true, - "type": "group", - "layout_type": "ordered", - "widgets": [ - { - "id": 2038656367341306, - "definition": { - "type": "note", - "content": "This is an overview of service checks, monitors, and connect statuses of your Supabase deployment", - "background_color": "green", - "font_size": "14", - "text_align": "center", - "vertical_align": "center", - "show_tick": false, - "tick_pos": "50%", - "tick_edge": "left", - "has_padding": true - }, - "layout": { - "x": 0, - "y": 0, - "width": 12, - "height": 1 - } + "layout": { + "x": 0, + "y": 11, + "width": 12, + "height": 4 + } + }, + { + "id": 5340440168093318, + "definition": { + "title": "Supabase Node Overview", + "background_color": "vivid_green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 2038656367341306, + "definition": { + "type": "note", + "content": "This is an overview of the node status of your Supabase deployment", + "background_color": "green", + "font_size": "14", + "text_align": "center", + "vertical_align": "center", + "show_tick": false, + "tick_pos": "50%", + "tick_edge": "left", + "has_padding": true }, - { - "id": 2060301842150758, - "definition": { - "title": "Node Memory", - "title_size": "16", - "title_align": "left", - "show_legend": true, - "legend_layout": "auto", - "legend_columns": [ - "avg", - "min", - "max", - "value", - "sum" - ], - "type": "timeseries", - "requests": [ - { - "formulas": [ - { - "alias": "RAM total", - "formula": "query1" - }, - { - "alias": "RAM free", - "formula": "query4" - }, - { - "alias": "RAM cache + RAM buffer", - "formula": "query3 + query2" - }, - { - "alias": "SWAP Used", - "formula": "query5 - query6" - }, - { - "alias": "RAM used", - "formula": "(query1 - query4 - query2 + query3)" - } - ], - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "sum:supabase.node.memory.mem_total_bytes{$supabase_project_ref}" - }, - { - "data_source": "metrics", - "name": "query4", - "query": "sum:supabase.node.memory.mem_free_bytes{$supabase_project_ref}" - }, - { - "data_source": "metrics", - "name": "query3", - "query": "sum:supabase.node.memory.buffers_bytes{$supabase_project_ref}" - }, - { - "data_source": "metrics", - "name": "query2", - "query": "sum:supabase.node.memory.cached_bytes{$supabase_project_ref}" - }, - { - "data_source": "metrics", - "name": "query5", - "query": "sum:supabase.node.memory.swap_total_bytes{$supabase_project_ref}" - }, - { - "data_source": "metrics", - "name": "query6", - "query": "sum:supabase.node.memory.swap_free_bytes{$supabase_project_ref}" - } - ], - "response_format": "timeseries", - "style": { - "palette": "dog_classic", - "order_by": "values", - "line_type": "solid", - "line_width": "normal" + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "id": 2060301842150758, + "definition": { + "title": "Node Memory", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "auto", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "alias": "RAM total", + "formula": "query1" }, - "display_type": "line" - } - ] - }, - "layout": { - "x": 0, - "y": 1, - "width": 8, - "height": 4 - } + { + "alias": "RAM free", + "formula": "query4" + }, + { + "alias": "RAM cache + RAM buffer", + "formula": "query3 + query2" + }, + { + "alias": "SWAP Used", + "formula": "query5 - query6" + }, + { + "alias": "RAM used", + "formula": "(query1 - query4 - query2 + query3)" + } + ], + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "sum:supabase.node.memory.mem_total_bytes{$supabase_project_ref}" + }, + { + "data_source": "metrics", + "name": "query4", + "query": "sum:supabase.node.memory.mem_free_bytes{$supabase_project_ref}" + }, + { + "data_source": "metrics", + "name": "query3", + "query": "sum:supabase.node.memory.buffers_bytes{$supabase_project_ref}" + }, + { + "data_source": "metrics", + "name": "query2", + "query": "sum:supabase.node.memory.cached_bytes{$supabase_project_ref}" + }, + { + "data_source": "metrics", + "name": "query5", + "query": "sum:supabase.node.memory.swap_total_bytes{$supabase_project_ref}" + }, + { + "data_source": "metrics", + "name": "query6", + "query": "sum:supabase.node.memory.swap_free_bytes{$supabase_project_ref}" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "order_by": "values", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] }, - { - "id": 8286881247680890, - "definition": { - "title": "Sys Load (5m average)", - "title_size": "16", - "title_align": "left", - "type": "query_value", - "requests": [ - { - "response_format": "scalar", - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.node.load5{$supabase_project_ref}", - "aggregator": "avg" - }, - { - "data_source": "metrics", - "name": "query2", - "query": "count:supabase.node.cpu.seconds.count{$supabase_project_ref} by {cpu}.as_count()", - "aggregator": "avg" - } - ], - "conditional_formats": [ - { - "comparator": "<", - "value": 80, - "palette": "white_on_green" - }, - { - "comparator": ">=", - "value": 80, - "palette": "white_on_yellow" - }, - { - "comparator": ">=", - "value": 90, - "palette": "white_on_red" - } - ], - "formulas": [ - { - "formula": "query1 / count_nonzero(query2) * 100", - "number_format": { - "unit": { - "type": "canonical_unit", - "unit_name": "percent" - } + "layout": { + "x": 0, + "y": 1, + "width": 8, + "height": 4 + } + }, + { + "id": 8286881247680890, + "definition": { + "title": "Sys Load (5m average)", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.node.load5{$supabase_project_ref}", + "aggregator": "avg" + }, + { + "data_source": "metrics", + "name": "query2", + "query": "count:supabase.node.cpu.seconds.count{$supabase_project_ref} by {cpu}.as_count()", + "aggregator": "avg" + } + ], + "conditional_formats": [ + { + "comparator": "<", + "value": 80, + "palette": "white_on_green" + }, + { + "comparator": ">=", + "value": 80, + "palette": "white_on_yellow" + }, + { + "comparator": ">=", + "value": 90, + "palette": "white_on_red" + } + ], + "formulas": [ + { + "formula": "query1 / count_nonzero(query2) * 100", + "number_format": { + "unit": { + "type": "canonical_unit", + "unit_name": "percent" } } - ] - } - ], - "autoscale": true, - "precision": 2, - "timeseries_background": { - "type": "area" + } + ] } - }, - "layout": { - "x": 8, - "y": 1, - "width": 2, - "height": 2 + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" } }, - { - "id": 1729860779513092, - "definition": { - "title": "Sys Load (15m average)", - "title_size": "16", - "title_align": "left", - "type": "query_value", - "requests": [ - { - "response_format": "scalar", - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.node.load15{$supabase_project_ref}", - "aggregator": "avg" - }, - { - "data_source": "metrics", - "name": "query2", - "query": "count:supabase.node.cpu.seconds.count{$supabase_project_ref} by {cpu}.as_count()", - "aggregator": "avg" - } - ], - "conditional_formats": [ - { - "comparator": "<", - "value": 80, - "palette": "white_on_green" - }, - { - "comparator": ">=", - "value": 80, - "palette": "white_on_yellow" - }, - { - "comparator": ">=", - "value": 90, - "palette": "white_on_red" - } - ], - "formulas": [ - { - "formula": "query1 / count_nonzero(query2) * 100", - "number_format": { - "unit": { - "type": "canonical_unit", - "unit_name": "percent" - } + "layout": { + "x": 8, + "y": 1, + "width": 2, + "height": 2 + } + }, + { + "id": 1729860779513092, + "definition": { + "title": "Sys Load (15m average)", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.node.load15{$supabase_project_ref}", + "aggregator": "avg" + }, + { + "data_source": "metrics", + "name": "query2", + "query": "count:supabase.node.cpu.seconds.count{$supabase_project_ref} by {cpu}.as_count()", + "aggregator": "avg" + } + ], + "conditional_formats": [ + { + "comparator": "<", + "value": 80, + "palette": "white_on_green" + }, + { + "comparator": ">=", + "value": 80, + "palette": "white_on_yellow" + }, + { + "comparator": ">=", + "value": 90, + "palette": "white_on_red" + } + ], + "formulas": [ + { + "formula": "query1 / count_nonzero(query2) * 100", + "number_format": { + "unit": { + "type": "canonical_unit", + "unit_name": "percent" } } - ] - } - ], - "autoscale": true, - "precision": 2, - "timeseries_background": { - "type": "area" + } + ] } - }, - "layout": { - "x": 10, - "y": 1, - "width": 2, - "height": 2 + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" } }, - { - "id": 1332738037161846, - "definition": { - "title": "RAM Used", - "title_size": "16", - "title_align": "left", - "type": "query_value", - "requests": [ - { - "response_format": "scalar", - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.node.memory.mem_available_bytes{$supabase_project_ref}", - "aggregator": "avg" - }, - { - "data_source": "metrics", - "name": "query2", - "query": "avg:supabase.node.memory.mem_total_bytes{$supabase_project_ref}", - "aggregator": "avg" - } - ], - "conditional_formats": [ - { - "comparator": "<", - "value": 80, - "palette": "white_on_green" - }, - { - "comparator": ">=", - "value": 80, - "palette": "white_on_yellow" - }, - { - "comparator": ">=", - "value": 90, - "palette": "white_on_red" - } - ], - "formulas": [ - { - "formula": "100 - (query1 * 100 / query2)", - "number_format": { - "unit": { - "type": "canonical_unit", - "unit_name": "percent" - } + "layout": { + "x": 10, + "y": 1, + "width": 2, + "height": 2 + } + }, + { + "id": 1332738037161846, + "definition": { + "title": "RAM Used", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.node.memory.mem_available_bytes{$supabase_project_ref}", + "aggregator": "avg" + }, + { + "data_source": "metrics", + "name": "query2", + "query": "avg:supabase.node.memory.mem_total_bytes{$supabase_project_ref}", + "aggregator": "avg" + } + ], + "conditional_formats": [ + { + "comparator": "<", + "value": 80, + "palette": "white_on_green" + }, + { + "comparator": ">=", + "value": 80, + "palette": "white_on_yellow" + }, + { + "comparator": ">=", + "value": 90, + "palette": "white_on_red" + } + ], + "formulas": [ + { + "formula": "100 - (query1 * 100 / query2)", + "number_format": { + "unit": { + "type": "canonical_unit", + "unit_name": "percent" } } - ] - } - ], - "autoscale": true, - "precision": 2, - "timeseries_background": { - "type": "area" + } + ] } - }, - "layout": { - "x": 8, - "y": 3, - "width": 2, - "height": 2 + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" } }, - { - "id": 1278011228573100, - "definition": { - "title": "Root FS Used", - "title_size": "16", - "title_align": "left", - "type": "query_value", - "requests": [ - { - "response_format": "scalar", - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.node.filesystem.available_bytes{$supabase_project_ref, mountpoint:/, ! fstype:rootfs}", - "aggregator": "avg" - }, - { - "data_source": "metrics", - "name": "query2", - "query": "avg:supabase.node.filesystem.size_bytes{$supabase_project_ref, mountpoint:/ , ! fstype:rootfs}", - "aggregator": "avg" - } - ], - "conditional_formats": [ - { - "comparator": "<", - "value": 80, - "palette": "white_on_green" - }, - { - "comparator": ">=", - "value": 80, - "palette": "white_on_yellow" - }, - { - "comparator": ">", - "value": 90, - "palette": "white_on_red" - } - ], - "formulas": [ - { - "formula": "100 - ((query1 * 100) / query2)", - "number_format": { - "unit": { - "type": "canonical_unit", - "unit_name": "percent" - } + "layout": { + "x": 8, + "y": 3, + "width": 2, + "height": 2 + } + }, + { + "id": 1278011228573100, + "definition": { + "title": "Root FS Used", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.node.filesystem.available_bytes{$supabase_project_ref, mountpoint:/, ! fstype:rootfs}", + "aggregator": "avg" + }, + { + "data_source": "metrics", + "name": "query2", + "query": "avg:supabase.node.filesystem.size_bytes{$supabase_project_ref, mountpoint:/ , ! fstype:rootfs}", + "aggregator": "avg" + } + ], + "conditional_formats": [ + { + "comparator": "<", + "value": 80, + "palette": "white_on_green" + }, + { + "comparator": ">=", + "value": 80, + "palette": "white_on_yellow" + }, + { + "comparator": ">", + "value": 90, + "palette": "white_on_red" + } + ], + "formulas": [ + { + "formula": "100 - ((query1 * 100) / query2)", + "number_format": { + "unit": { + "type": "canonical_unit", + "unit_name": "percent" } } - ] - } - ], - "autoscale": true, - "precision": 2, - "timeseries_background": { - "type": "area" + } + ] } - }, - "layout": { - "x": 10, - "y": 3, - "width": 2, - "height": 2 + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" } + }, + "layout": { + "x": 10, + "y": 3, + "width": 2, + "height": 2 } - ] - }, - "layout": { - "x": 0, - "y": 0, - "width": 12, - "height": 6, - "is_column_break": true - } + } + ] }, - { - "id": 2543804679721596, - "definition": { - "title": "Go Runtime Metrics", - "background_color": "vivid_green", - "show_title": true, - "type": "group", - "layout_type": "ordered", - "widgets": [ - { - "id": 5551092986994244, - "definition": { - "type": "note", - "content": "The Go runtime metrics that can help in troubleshooting performance or bottleneck issues.", - "background_color": "green", - "font_size": "14", - "text_align": "center", - "vertical_align": "top", - "show_tick": false, - "tick_pos": "50%", - "tick_edge": "left", - "has_padding": true - }, - "layout": { - "x": 0, - "y": 0, - "width": 12, - "height": 1 - } + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 6, + "is_column_break": true + } + }, + { + "id": 2543804679721596, + "definition": { + "title": "Go Runtime Metrics", + "background_color": "vivid_green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 5551092986994244, + "definition": { + "type": "note", + "content": "The Go runtime metrics that can help in troubleshooting performance or bottleneck issues.", + "background_color": "green", + "font_size": "14", + "text_align": "center", + "vertical_align": "top", + "show_tick": false, + "tick_pos": "50%", + "tick_edge": "left", + "has_padding": true }, - { - "id": 6124080568860610, - "definition": { - "title": "Number of Go Routines", - "title_size": "16", - "title_align": "left", - "show_legend": true, - "legend_layout": "auto", - "legend_columns": [ - "avg", - "min", - "max", - "value", - "sum" - ], - "type": "timeseries", - "requests": [ - { - "formulas": [ - { - "formula": "query1" - } - ], - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.go.goroutines{$supabase_project_ref, $endpoint} by {endpoint}" - } - ], - "response_format": "timeseries", - "style": { - "palette": "dog_classic", - "line_type": "solid", - "line_width": "normal" - }, - "display_type": "line" - } - ] - }, - "layout": { - "x": 0, - "y": 1, - "width": 4, - "height": 3 - } + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "id": 6124080568860610, + "definition": { + "title": "Number of Go Routines", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "auto", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.go.goroutines{$supabase_project_ref, $endpoint} by {endpoint}" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] }, - { - "id": 7935014164721852, - "definition": { - "title": "Memory Allocated", - "title_size": "16", - "title_align": "left", - "show_legend": true, - "legend_layout": "auto", - "legend_columns": [ - "avg", - "min", - "max", - "value", - "sum" - ], - "type": "timeseries", - "requests": [ - { - "formulas": [ - { - "formula": "query1" - } - ], - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.go.memstats.heap.alloc_bytes{$supabase_project_ref, $endpoint} by {endpoint}" - } - ], - "response_format": "timeseries", - "style": { - "palette": "dog_classic", - "line_type": "solid", - "line_width": "normal" - }, - "display_type": "line" - } - ] - }, - "layout": { - "x": 4, - "y": 1, - "width": 4, - "height": 3 - } + "layout": { + "x": 0, + "y": 1, + "width": 4, + "height": 3 + } + }, + { + "id": 7935014164721852, + "definition": { + "title": "Memory Allocated", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "auto", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.go.memstats.heap.alloc_bytes{$supabase_project_ref, $endpoint} by {endpoint}" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] }, - { - "id": 1371428597039902, - "definition": { - "title": "Quantiles of Garbage Collection", - "title_size": "16", - "title_align": "left", - "show_legend": false, - "type": "timeseries", - "requests": [ - { - "formulas": [ - { - "formula": "query1" - } - ], - "queries": [ - { - "data_source": "metrics", - "name": "query1", - "query": "avg:supabase.go.gc.duration.seconds.quantile{$supabase_project_ref, $endpoint} by {endpoint}" - } - ], - "response_format": "timeseries", - "style": { - "palette": "dog_classic", - "order_by": "values", - "line_type": "solid", - "line_width": "normal" - }, - "display_type": "line" - } - ] - }, - "layout": { - "x": 8, - "y": 1, - "width": 4, - "height": 3 - } + "layout": { + "x": 4, + "y": 1, + "width": 4, + "height": 3 } - ] - }, - "layout": { - "x": 0, - "y": 6, - "width": 12, - "height": 5 - } - } - ], - "template_variables": [ - { - "name": "supabase_project_ref", - "prefix": "supabase_project_ref", - "available_values": [], - "default": "*" + }, + { + "id": 1371428597039902, + "definition": { + "title": "Quantiles of Garbage Collection", + "title_size": "16", + "title_align": "left", + "show_legend": false, + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "metrics", + "name": "query1", + "query": "avg:supabase.go.gc.duration.seconds.quantile{$supabase_project_ref, $endpoint} by {endpoint}" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "order_by": "values", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] + }, + "layout": { + "x": 8, + "y": 1, + "width": 4, + "height": 3 + } + } + ] }, - { - "name": "endpoint", - "prefix": "endpoint", - "available_values": [], - "default": "*" + "layout": { + "x": 0, + "y": 6, + "width": 12, + "height": 5 } - ], - "layout_type": "ordered", - "notify_list": [], - "reflow_type": "fixed" - } \ No newline at end of file + } + ], + "template_variables": [ + { + "name": "supabase_project_ref", + "prefix": "supabase_project_ref", + "available_values": [], + "default": "*" + }, + { + "name": "endpoint", + "prefix": "endpoint", + "available_values": [], + "default": "*" + } + ], + "layout_type": "ordered", + "notify_list": [], + "reflow_type": "fixed" +} \ No newline at end of file