diff --git a/tidb-cloud/monitor-datadog-integration-tidb-cloud-dynamic-tracker-essential.json b/tidb-cloud/monitor-datadog-integration-tidb-cloud-dynamic-tracker-essential.json new file mode 100644 index 0000000000000..a99ad5e4957c7 --- /dev/null +++ b/tidb-cloud/monitor-datadog-integration-tidb-cloud-dynamic-tracker-essential.json @@ -0,0 +1,998 @@ +{ + "title": "TiDB X Essential Dynamic Tracker", + "description": "This dashboard provides a high-level overview for TiDB X Essential clusters. It includes resource unit metrics, and excludes Dedicated-only node, DM, and CDC metrics.", + "layout_type": "ordered", + "reflow_type": "fixed", + "template_variables": [ + { + "name": "instance_name", + "prefix": "instance_name", + "available_values": [], + "default": "*" + }, + { + "name": "instance_id", + "prefix": "instance_id", + "available_values": [], + "default": "*" + } + ], + "widgets": [ + { + "definition": { + "title": "Performance Overview", + "background_color": "green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 0, + "definition": { + "type": "note", + "content": "Database performance and storage metrics for TiDB X essential.", + "background_color": "yellow", + "font_size": "18", + "text_align": "left", + "vertical_align": "center", + "show_tick": false, + "has_padding": true + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Database Time", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_database_time{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_database_time{$instance_name,$instance_id} by {sql_type}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "log", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 1, + "layout": { + "x": 0, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Queries Per Second", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_query_per_second{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_query_per_second{$instance_name,$instance_id} by {type}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 2, + "layout": { + "x": 6, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Average Query Duration", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "avg:tidb_cloud.db_average_query_duration{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "avg:tidb_cloud.db_average_query_duration{$instance_name,$instance_id} by {sql_type}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "log", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 3, + "layout": { + "x": 0, + "y": 4, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Failed Queries", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_failed_queries{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_failed_queries{$instance_name,$instance_id} by {type}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 4, + "layout": { + "x": 6, + "y": 4, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Row Storage Used", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_row_storage_used_bytes{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 5, + "layout": { + "x": 0, + "y": 7, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Columnar Storage Used", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_columnar_storage_used_bytes{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 6, + "layout": { + "x": 6, + "y": 7, + "width": 6, + "height": 3 + } + } + ] + }, + "id": 1, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Connections", + "background_color": "green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 0, + "definition": { + "type": "note", + "content": "Connection state at TiDB X essential cluster or instance scope.", + "background_color": "yellow", + "font_size": "18", + "text_align": "left", + "vertical_align": "center", + "show_tick": false, + "has_padding": true + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Total Connections", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_total_connection{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 1, + "layout": { + "x": 0, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Active Connections", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_active_connections{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 2, + "layout": { + "x": 6, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Disconnection Count", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_disconnections{$instance_name,$instance_id} by {result}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 3, + "layout": { + "x": 0, + "y": 4, + "width": 6, + "height": 3 + } + } + ] + }, + "id": 2, + "layout": { + "x": 0, + "y": 1, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Command & Transaction", + "background_color": "green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 0, + "definition": { + "type": "note", + "content": "SQL command throughput, plan cache usage, and transaction activity.", + "background_color": "yellow", + "font_size": "18", + "text_align": "left", + "vertical_align": "center", + "show_tick": false, + "has_padding": true + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Command Per Second", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_command_per_second{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_command_per_second{$instance_name,$instance_id} by {type}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 1, + "layout": { + "x": 0, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Queries Using Plan Cache OPS", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_queries_using_plan_cache_ops{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 2, + "layout": { + "x": 6, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Transaction Per Second", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_transaction_per_second{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_transaction_per_second{$instance_name,$instance_id} by {type,txn_mode}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 3, + "layout": { + "x": 0, + "y": 4, + "width": 6, + "height": 3 + } + } + ] + }, + "id": 3, + "layout": { + "x": 0, + "y": 2, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Request Unit", + "background_color": "vivid_yellow", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 0, + "definition": { + "type": "note", + "content": "This panel shows RU usage for TiDB X essential clusters.", + "background_color": "yellow", + "font_size": "18", + "text_align": "left", + "vertical_align": "center", + "show_tick": true, + "tick_pos": "50%", + "tick_edge": "left", + "has_padding": true + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "id": 1, + "definition": { + "title": "Request Unit", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "auto", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "response_format": "timeseries", + "queries": [ + { + "name": "query1", + "data_source": "metrics", + "query": "sum:tidb_cloud.resource_manager_resource_request_unit_total{$instance_name,$instance_id}" + } + ], + "formulas": [ + { + "number_format": {}, + "alias": "total", + "formula": "query1" + } + ], + "style": { + "palette": "dog_classic", + "order_by": "values", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "markers": [] + }, + "layout": { + "x": 0, + "y": 1, + "width": 12, + "height": 3 + } + } + ] + }, + "id": 4, + "layout": { + "x": 0, + "y": 3, + "width": 12, + "height": 1 + } + } + ], + "notify_list": [] +} diff --git a/tidb-cloud/monitor-datadog-integration-tidb-cloud-dynamic-tracker-premium.json b/tidb-cloud/monitor-datadog-integration-tidb-cloud-dynamic-tracker-premium.json new file mode 100644 index 0000000000000..c459c13fabae6 --- /dev/null +++ b/tidb-cloud/monitor-datadog-integration-tidb-cloud-dynamic-tracker-premium.json @@ -0,0 +1,1149 @@ +{ + "title": "TiDB X Premium Dynamic Tracker", + "description": "This dashboard provides a high-level overview for TiDB X Premium clusters. It includes CDC and resource unit metrics, and excludes Dedicated-only node and DM metrics.", + "layout_type": "ordered", + "reflow_type": "fixed", + "template_variables": [ + { + "name": "instance_name", + "prefix": "instance_name", + "available_values": [], + "default": "*" + }, + { + "name": "instance_id", + "prefix": "instance_id", + "available_values": [], + "default": "*" + } + ], + "widgets": [ + { + "definition": { + "title": "Performance Overview", + "background_color": "green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 0, + "definition": { + "type": "note", + "content": "Database performance and storage metrics for TiDB X premium.", + "background_color": "yellow", + "font_size": "18", + "text_align": "left", + "vertical_align": "center", + "show_tick": false, + "has_padding": true + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Database Time", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_database_time{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_database_time{$instance_name,$instance_id} by {sql_type}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "log", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 1, + "layout": { + "x": 0, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Queries Per Second", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_query_per_second{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_query_per_second{$instance_name,$instance_id} by {type}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 2, + "layout": { + "x": 6, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Average Query Duration", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "avg:tidb_cloud.db_average_query_duration{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "avg:tidb_cloud.db_average_query_duration{$instance_name,$instance_id} by {sql_type}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "log", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 3, + "layout": { + "x": 0, + "y": 4, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Failed Queries", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_failed_queries{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_failed_queries{$instance_name,$instance_id} by {type}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 4, + "layout": { + "x": 6, + "y": 4, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Row Storage Used", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_row_storage_used_bytes{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 5, + "layout": { + "x": 0, + "y": 7, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Columnar Storage Used", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_columnar_storage_used_bytes{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 6, + "layout": { + "x": 6, + "y": 7, + "width": 6, + "height": 3 + } + } + ] + }, + "id": 1, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Connections", + "background_color": "green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 0, + "definition": { + "type": "note", + "content": "Connection state at TiDB X premium cluster or instance scope.", + "background_color": "yellow", + "font_size": "18", + "text_align": "left", + "vertical_align": "center", + "show_tick": false, + "has_padding": true + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Total Connections", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_total_connection{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 1, + "layout": { + "x": 0, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Active Connections", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_active_connections{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 2, + "layout": { + "x": 6, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Disconnection Count", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_disconnections{$instance_name,$instance_id} by {result}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 3, + "layout": { + "x": 0, + "y": 4, + "width": 6, + "height": 3 + } + } + ] + }, + "id": 2, + "layout": { + "x": 0, + "y": 1, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Command & Transaction", + "background_color": "green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 0, + "definition": { + "type": "note", + "content": "SQL command throughput, plan cache usage, and transaction activity.", + "background_color": "yellow", + "font_size": "18", + "text_align": "left", + "vertical_align": "center", + "show_tick": false, + "has_padding": true + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Command Per Second", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_command_per_second{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_command_per_second{$instance_name,$instance_id} by {type}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 1, + "layout": { + "x": 0, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Queries Using Plan Cache OPS", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_queries_using_plan_cache_ops{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 2, + "layout": { + "x": 6, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Transaction Per Second", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_transaction_per_second{$instance_name,$instance_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + }, + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "sum:tidb_cloud.db_transaction_per_second{$instance_name,$instance_id} by {type,txn_mode}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 3, + "layout": { + "x": 0, + "y": 4, + "width": 6, + "height": 3 + } + } + ] + }, + "id": 3, + "layout": { + "x": 0, + "y": 2, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Request Unit", + "background_color": "vivid_yellow", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 0, + "definition": { + "type": "note", + "content": "This panel shows RU usage for TiDB X premium clusters.", + "background_color": "yellow", + "font_size": "18", + "text_align": "left", + "vertical_align": "center", + "show_tick": true, + "tick_pos": "50%", + "tick_edge": "left", + "has_padding": true + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "id": 1, + "definition": { + "title": "Request Unit", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "auto", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "response_format": "timeseries", + "queries": [ + { + "name": "query1", + "data_source": "metrics", + "query": "sum:tidb_cloud.resource_manager_resource_request_unit_total{$instance_name,$instance_id} by {resource_group}" + } + ], + "formulas": [ + { + "number_format": {}, + "alias": "total", + "formula": "query1" + } + ], + "style": { + "palette": "dog_classic", + "order_by": "values", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "markers": [] + }, + "layout": { + "x": 0, + "y": 1, + "width": 6, + "height": 3 + } + } + ] + }, + "id": 4, + "layout": { + "x": 0, + "y": 3, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Changefeed", + "background_color": "green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 0, + "definition": { + "type": "note", + "content": "CDC metrics supported for TiDB X premium. Panels stay empty when CDC is not enabled.", + "background_color": "yellow", + "font_size": "18", + "text_align": "left", + "vertical_align": "center", + "show_tick": false, + "has_padding": true + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 1 + } + }, + { + "definition": { + "title": "Changefeed Checkpoint Lag", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "number_format": { + "unit": { + "type": "canonical_unit", + "unit_name": "second" + } + }, + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "max:tidb_cloud.cdc_changefeed_latency{$instance_name,$instance_id} by {changefeed_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 2, + "layout": { + "x": 0, + "y": 1, + "width": 6, + "height": 3 + } + }, + { + "definition": { + "title": "Changefeed Status", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "vertical", + "legend_columns": [ + "avg", + "min", + "max", + "value" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "formula": "query0" + } + ], + "response_format": "timeseries", + "queries": [ + { + "query": "max:tidb_cloud.cdc_changefeed_status{$instance_name,$instance_id} by {changefeed_id}", + "data_source": "metrics", + "name": "query0" + } + ], + "style": { + "palette": "dog_classic", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ], + "yaxis": { + "include_zero": true, + "scale": "linear", + "label": "", + "min": "auto", + "max": "auto" + }, + "markers": [] + }, + "id": 3, + "layout": { + "x": 6, + "y": 1, + "width": 6, + "height": 3 + } + } + ] + }, + "id": 5, + "layout": { + "x": 0, + "y": 4, + "width": 12, + "height": 1 + } + } + ], + "notify_list": [] +} diff --git a/tidb-cloud/monitor-prometheus-and-grafana-integration-tidb-cloud-dynamic-tracker-essential.json b/tidb-cloud/monitor-prometheus-and-grafana-integration-tidb-cloud-dynamic-tracker-essential.json index 64649eccf9c58..691643623464d 100644 --- a/tidb-cloud/monitor-prometheus-and-grafana-integration-tidb-cloud-dynamic-tracker-essential.json +++ b/tidb-cloud/monitor-prometheus-and-grafana-integration-tidb-cloud-dynamic-tracker-essential.json @@ -459,6 +459,18 @@ }, "pluginVersion": "12.0.0", "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(tidbcloud_db_failed_queries{instance_name=~\"$Instance_name\", instance_id=~\"$Instance_id\"})", + "instant": false, + "legendFormat": "Total", + "range": true, + "refId": "A" + }, { "datasource": { "type": "prometheus", @@ -469,10 +481,10 @@ "instant": false, "legendFormat": "{{type}}", "range": true, - "refId": "A" + "refId": "B" } ], - "title": "Failed Queries Per Second", + "title": "Failed Queries", "type": "timeseries" }, { @@ -1356,13 +1368,13 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "tidbcloud_resource_manager_resource_request_unit_total{instance_name=~\"$Instance_name\", instance_id=~\"$Instance_id\"}", - "legendFormat": "{{resource_group}}", + "expr": "sum (tidbcloud_resource_manager_resource_request_unit_total{instance_name=~\"$Instance_name\", instance_id=~\"$Instance_id\"})", + "legendFormat": "total", "range": true, "refId": "A" } ], - "title": "Resource Group RU", + "title": "Request Unit", "type": "timeseries" } ], diff --git a/tidb-cloud/monitor-prometheus-and-grafana-integration-tidb-cloud-dynamic-tracker-premium.json b/tidb-cloud/monitor-prometheus-and-grafana-integration-tidb-cloud-dynamic-tracker-premium.json index ea2483570dc7c..2eeb1ff827110 100644 --- a/tidb-cloud/monitor-prometheus-and-grafana-integration-tidb-cloud-dynamic-tracker-premium.json +++ b/tidb-cloud/monitor-prometheus-and-grafana-integration-tidb-cloud-dynamic-tracker-premium.json @@ -459,6 +459,18 @@ }, "pluginVersion": "12.0.0", "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "sum(tidbcloud_db_failed_queries{instance_name=~\"$Instance_name\", instance_id=~\"$Instance_id\"})", + "instant": false, + "legendFormat": "Total", + "range": true, + "refId": "A" + }, { "datasource": { "type": "prometheus", @@ -469,10 +481,10 @@ "instant": false, "legendFormat": "{{type}}", "range": true, - "refId": "A" + "refId": "B" } ], - "title": "Failed Queries Per Second", + "title": "Failed Queries", "type": "timeseries" }, { @@ -1356,13 +1368,13 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "tidbcloud_resource_manager_resource_request_unit_total{instance_name=~\"$Instance_name\", instance_id=~\"$Instance_id\"}", + "expr": "sum by(resource_group) (tidbcloud_resource_manager_resource_request_unit_total{instance_name=~\"$Instance_name\", instance_id=~\"$Instance_id\"})", "legendFormat": "{{resource_group}}", "range": true, "refId": "A" } ], - "title": "Resource Group RU", + "title": "Request Unit", "type": "timeseries" }, { @@ -1460,9 +1472,9 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "max by(changefeed) (tidbcloud_changefeed_latency{instance_name=~\"$Instance_name\", instance_id=~\"$Instance_id\"})", + "expr": "max by(changefeed_id) (tidbcloud_changefeed_latency{instance_name=~\"$Instance_name\", instance_id=~\"$Instance_id\"})", "instant": false, - "legendFormat": "{{changefeed}}", + "legendFormat": "{{changefeed_id}}", "range": true, "refId": "A" } @@ -1551,9 +1563,9 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "max by(changefeed) (tidbcloud_changefeed_status{instance_name=~\"$Instance_name\", instance_id=~\"$Instance_id\"})", + "expr": "max by(changefeed_id) (tidbcloud_changefeed_status{instance_name=~\"$Instance_name\", instance_id=~\"$Instance_id\"})", "instant": false, - "legendFormat": "{{changefeed}}", + "legendFormat": "{{changefeed_id}}", "range": true, "refId": "A" }