From cd733d47e5c588b473b3109ab4b75d1ee2d24cc4 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Thu, 14 Dec 2023 10:51:48 -0800 Subject: [PATCH] fix tests Signed-off-by: Tamal Saha --- .../perconaxtradb/perconaxtradb-galera.json | 8 +- .../perconaxtradb/perconaxtradb-pod.json | 110 +++++++++--------- .../perconaxtradb/perconaxtradb-summary.json | 4 +- 3 files changed, 61 insertions(+), 61 deletions(-) diff --git a/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-galera.json b/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-galera.json index e0a153c97..4502dde2d 100644 --- a/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-galera.json +++ b/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-galera.json @@ -81,7 +81,7 @@ "exemplar": true, "expr": "avg by(wsrep_cluster_name)(mysql_galera_variables_info{namespace=~\"$namespace\",service=~\"$app\"})", "interval": "", - "legendFormat": "{{wsrep_cluster_name}}", + "legendFormat": {{ `"{{wsrep_cluster_name}}"` }}, "refId": "A" } ], @@ -257,7 +257,7 @@ "exemplar": true, "expr": "avg_over_time(mysql_galera_evs_repl_latency_avg_seconds{namespace=~\"$namespace\",service=~\"$app\"}[5m])", "interval": "", - "legendFormat": "{{pod}} - Latency Average", + "legendFormat": {{ `"{{pod}} - Latency Average"` }}, "refId": "A" } ], @@ -357,7 +357,7 @@ "exemplar": true, "expr": "rate(mysql_galera_evs_repl_latency_stdev{namespace=~\"$namespace\",service=~\"$app\"}[1m])", "interval": "", - "legendFormat": "{{pod}} - Latency Average", + "legendFormat": {{ `"{{pod}} - Latency Average"` }}, "refId": "A" } ], @@ -457,7 +457,7 @@ "exemplar": true, "expr": "rate(mysql_galera_evs_repl_latency_sample_size{namespace=~\"$namespace\",service=~\"$app\"}[1m])", "interval": "", - "legendFormat": "{{pod}} - Latency Average", + "legendFormat": {{ `"{{pod}} - Latency Average"` }}, "refId": "A" } ], diff --git a/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-pod.json b/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-pod.json index 37b04cdc5..29fc177ac 100644 --- a/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-pod.json +++ b/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-pod.json @@ -729,7 +729,7 @@ "exemplar": true, "expr": "mysql_global_status_max_used_connections{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Max Used Connects - {{pod}}", + "legendFormat": {{ `"Max Used Connects - {{pod}}"` }}, "refId": "A" }, { @@ -737,7 +737,7 @@ "expr": "mysql_global_variables_max_connections{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "Max Connects - {{pod}}", + "legendFormat": {{ `"Max Connects - {{pod}}"` }}, "refId": "B" } ], @@ -834,7 +834,7 @@ "exemplar": true, "expr": "mysql_global_status_aborted_connects{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Aborted Connects - {{pod}}", + "legendFormat": {{ `"Aborted Connects - {{pod}}"` }}, "refId": "A" }, { @@ -842,7 +842,7 @@ "expr": "mysql_global_status_aborted_clients{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "Aborted Clients - {{pod}}", + "legendFormat": {{ `"Aborted Clients - {{pod}}"` }}, "refId": "B" } ], @@ -955,7 +955,7 @@ "exemplar": true, "expr": "mysql_global_status_threads_connected{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Threads Connected - {{pod}}", + "legendFormat": {{ `"Threads Connected - {{pod}}"` }}, "refId": "A" }, { @@ -963,7 +963,7 @@ "expr": "mysql_global_status_threads_running{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "Threads Running - {{pod}}", + "legendFormat": {{ `"Threads Running - {{pod}}"` }}, "refId": "B" } ], @@ -1061,7 +1061,7 @@ "exemplar": true, "expr": "mysql_global_variables_thread_cache_size{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Thread Cache Size - {{pod}}", + "legendFormat": {{ `"Thread Cache Size - {{pod}}"` }}, "refId": "A" }, { @@ -1069,7 +1069,7 @@ "expr": "mysql_global_status_threads_cached{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "Threads Cached - {{pod}} ", + "legendFormat": {{ `"Threads Cached - {{pod}}"` }}, "refId": "B" }, { @@ -1077,7 +1077,7 @@ "expr": "mysql_global_status_threads_created{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "Threads Created - {{pod}}", + "legendFormat": {{ `"Threads Created - {{pod}}"` }}, "refId": "C" } ], @@ -1189,7 +1189,7 @@ "exemplar": true, "expr": "rate(mysql_global_status_created_tmp_tables{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "interval": "", - "legendFormat": "Created Tmp Tables - {{pod}}", + "legendFormat": {{ `"Created Tmp Tables - {{pod}}"` }}, "refId": "A" }, { @@ -1197,7 +1197,7 @@ "expr": "rate(mysql_global_status_created_tmp_disk_tables{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Created Tmp Disk Tables - {{pod}}", + "legendFormat": {{ `"Created Tmp Disk Tables - {{pod}}"` }}, "refId": "B" }, { @@ -1205,7 +1205,7 @@ "expr": "mysql_global_status_created_tmp_files{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "Created Tmp Files - {{pod}}", + "legendFormat": {{ `"Created Tmp Files - {{pod}}"` }}, "refId": "C" } ], @@ -1303,7 +1303,7 @@ "exemplar": true, "expr": "mysql_global_status_slow_queries{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Slow Queries - {{pod}}", + "legendFormat": {{ `"Slow Queries - {{pod}}"` }}, "refId": "A" } ], @@ -1417,7 +1417,7 @@ "exemplar": true, "expr": "rate(mysql_global_status_select_full_join{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "interval": "", - "legendFormat": "Select Full Join - {{pod}}", + "legendFormat": {{ `"Select Full Join - {{pod}}"` }}, "refId": "A" }, { @@ -1425,7 +1425,7 @@ "expr": "rate(mysql_global_status_select_scan{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Select Scan - {{pod}}", + "legendFormat": {{ `"Select Scan - {{pod}}"` }}, "refId": "E" } ], @@ -1523,7 +1523,7 @@ "exemplar": true, "expr": "rate(mysql_global_status_sort_rows{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "interval": "", - "legendFormat": "Sort Rows - {{pod}}", + "legendFormat": {{ `"Sort Rows - {{pod}}"` }}, "refId": "A" }, { @@ -1531,7 +1531,7 @@ "expr": "rate(mysql_global_status_sort_range{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Sort Range - {{pod}}", + "legendFormat": {{ `"Sort Range - {{pod}}"` }}, "refId": "B" }, { @@ -1539,7 +1539,7 @@ "expr": "rate(mysql_global_status_sort_merge_passes{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Sort Merge Passes - {{pod}}", + "legendFormat": {{ `"Sort Merge Passes - {{pod}}"` }}, "refId": "C" }, { @@ -1547,7 +1547,7 @@ "expr": "rate(mysql_global_status_sort_scan{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Sort Scan - {{pod}}", + "legendFormat": {{ `"Sort Scan - {{pod}}"` }}, "refId": "D" } ], @@ -1658,7 +1658,7 @@ "exemplar": true, "expr": "rate(mysql_global_status_table_locks_immediate{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "interval": "", - "legendFormat": "Table Locks Immediate - {{pod}}", + "legendFormat": {{ `"Table Locks Immediate - {{pod}}"` }}, "refId": "A" }, { @@ -1666,7 +1666,7 @@ "expr": "rate(mysql_global_status_table_locks_waited{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Table Locks Waited - {{pod}}", + "legendFormat": {{ `"Table Locks Waited - {{pod}}"` }}, "refId": "B" } ], @@ -1763,7 +1763,7 @@ "exemplar": true, "expr": "rate(mysql_global_status_questions{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "interval": "", - "legendFormat": "Questions - {{pod}}", + "legendFormat": {{ `"Questions - {{pod}}"` }}, "refId": "A" } ], @@ -1891,7 +1891,7 @@ "format": "time_series", "interval": "", "intervalFactor": 1, - "legendFormat": "Inbound - {{pod}}", + "legendFormat": {{ `"Inbound - {{pod}}"` }}, "metric": "", "refId": "A", "step": 20 @@ -1905,7 +1905,7 @@ "format": "time_series", "interval": "", "intervalFactor": 1, - "legendFormat": "Outbound - {{pod}}", + "legendFormat": {{ `"Outbound - {{pod}}"` }}, "metric": "", "refId": "B", "step": 20 @@ -2022,7 +2022,7 @@ "instant": false, "interval": "1h", "intervalFactor": 1, - "legendFormat": "Received - {{pod}}", + "legendFormat": {{ `"Received - {{pod}}"` }}, "metric": "", "refId": "A", "step": 20 @@ -2036,7 +2036,7 @@ "format": "time_series", "interval": "1h", "intervalFactor": 1, - "legendFormat": "Sent - {{pod}}", + "legendFormat": {{ `"Sent - {{pod}}"` }}, "metric": "", "refId": "B", "step": 20 @@ -2154,7 +2154,7 @@ "expr": "mysql_global_variables_innodb_buffer_pool_size{namespace=\"$namespace\",service=\"$app\",pod=\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "InnoDB Buffer Pool Size - {{pod}}", + "legendFormat": {{ `"InnoDB Buffer Pool Size - {{pod}}"` }}, "refId": "A" }, { @@ -2162,7 +2162,7 @@ "expr": "mysql_global_variables_innodb_log_buffer_size{namespace=\"$namespace\",service=\"$app\",pod=\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "InnoDB Log Buffer Size - {{pod}}", + "legendFormat": {{ `"InnoDB Log Buffer Size - {{pod}}"` }}, "refId": "B" }, { @@ -2170,7 +2170,7 @@ "expr": "mysql_global_status_innodb_mem_dictionary{namespace=\"$namespace\",service=\"$app\",pod=\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "InnoDB Dictionary Size - {{pod}}", + "legendFormat": {{ `"InnoDB Dictionary Size - {{pod}}"` }}, "refId": "D" }, { @@ -2178,7 +2178,7 @@ "expr": "mysql_global_variables_key_buffer_size{namespace=\"$namespace\",service=\"$app\",pod=\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "Key Buffer Size - {{pod}}", + "legendFormat": {{ `"Key Buffer Size - {{pod}}"` }}, "refId": "E" }, { @@ -2186,7 +2186,7 @@ "expr": "mysql_global_variables_query_cache_size{namespace=\"$namespace\",service=\"$app\",pod=\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "Query Cache Size - {{pod}}", + "legendFormat": {{ `"Query Cache Size - {{pod}}"` }}, "refId": "F" }, { @@ -2194,7 +2194,7 @@ "expr": "mysql_global_status_innodb_mem_adaptive_hash{namespace=\"$namespace\",service=\"$app\",pod=\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "Adaptive Hash Index Size - {{pod}}", + "legendFormat": {{ `"Adaptive Hash Index Size - {{pod}}"` }}, "refId": "G" } ], @@ -2309,7 +2309,7 @@ "expr": "topk(5, rate(mysql_global_status_commands_total{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m]))", "instant": false, "interval": "", - "legendFormat": "Com_{{ command }} - {{pod}}", + "legendFormat": {{ `"Com_{{ command }} - {{pod}}"` }}, "refId": "A" } ], @@ -2425,7 +2425,7 @@ "instant": false, "interval": "1h", "intervalFactor": 1, - "legendFormat": "Com_{{ command }} - {{pod}}", + "legendFormat": {{ `"Com_{{ command }} - {{pod}}"` }}, "metric": "", "refId": "A", "step": 20 @@ -2529,7 +2529,7 @@ "expr": "rate(mysql_global_status_handlers_total{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])>0", "instant": false, "interval": "", - "legendFormat": "{{ handler }} - {{pod}}", + "legendFormat": {{ `"{{ handler }} - {{pod}}"` }}, "refId": "A" } ], @@ -2643,7 +2643,7 @@ "exemplar": true, "expr": "rate(mysql_global_status_qcache_free_memory{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "interval": "", - "legendFormat": "Query Cache Size - {{pod}}", + "legendFormat": {{ `"Query Cache Size - {{pod}}"` }}, "refId": "A" } ], @@ -2743,7 +2743,7 @@ "exemplar": true, "expr": "rate(mysql_global_status_qcache_hits{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "interval": "", - "legendFormat": "Hits - {{pod}}", + "legendFormat": {{ `"Hits - {{pod}}"` }}, "refId": "A" }, { @@ -2751,7 +2751,7 @@ "expr": "rate(mysql_global_status_qcache_inserts{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Inserts - {{pod}}", + "legendFormat": {{ `"Inserts - {{pod}}"` }}, "refId": "B" }, { @@ -2759,7 +2759,7 @@ "expr": "rate(mysql_global_status_qcache_not_cached{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Not Cached - {{pod}}", + "legendFormat": {{ `"Not Cached - {{pod}}"` }}, "refId": "C" }, { @@ -2767,7 +2767,7 @@ "expr": "rate(mysql_global_status_qcache_lowmem_prunes{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Prunes - {{pod}}", + "legendFormat": {{ `"Prunes - {{pod}}"` }}, "refId": "D" }, { @@ -2775,7 +2775,7 @@ "expr": "rate(mysql_global_status_qcache_queries_in_cache{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Queries in Cache - {{pod}}", + "legendFormat": {{ `"Queries in Cache - {{pod}}"` }}, "refId": "E" } ], @@ -2887,7 +2887,7 @@ "exemplar": true, "expr": "mysql_global_status_opened_files{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Openings - {{pod}}", + "legendFormat": {{ `"Openings - {{pod}}"` }}, "refId": "A" } ], @@ -2985,21 +2985,21 @@ "exemplar": true, "expr": "mysql_global_status_open_files{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Open Files - {{pod}}", + "legendFormat": {{ `"Open Files - {{pod}}"` }}, "refId": "A" }, { "exemplar": true, "expr": "mysql_global_variables_open_files_limit{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Open Files Limit - {{pod}}", + "legendFormat": {{ `"Open Files Limit - {{pod}}"` }}, "refId": "B" }, { "exemplar": true, "expr": "mysql_global_status_innodb_num_open_files{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "InnoDB Open Files - {{pod}}", + "legendFormat": {{ `"InnoDB Open Files - {{pod}}"` }}, "refId": "C" } ], @@ -3111,7 +3111,7 @@ "exemplar": true, "expr": "rate(mysql_global_status_opened_tables{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "interval": "", - "legendFormat": "Openings - {{pod}}", + "legendFormat": {{ `"Openings - {{pod}}"` }}, "refId": "A" }, { @@ -3119,7 +3119,7 @@ "expr": "rate(mysql_global_status_table_open_cache_hits{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Hits - {{pod}}", + "legendFormat": {{ `"Hits - {{pod}}"` }}, "refId": "B" }, { @@ -3127,7 +3127,7 @@ "expr": "rate(mysql_global_status_table_open_cache_misses{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Misses - {{pod}}", + "legendFormat": {{ `"Misses - {{pod}}"` }}, "refId": "C" }, { @@ -3135,7 +3135,7 @@ "expr": "rate(mysql_global_status_table_open_cache_overflows{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Misses due to Overflows - {{pod}}", + "legendFormat": {{ `"Misses due to Overflows - {{pod}}"` }}, "refId": "D" }, { @@ -3143,7 +3143,7 @@ "expr": "rate(mysql_global_status_table_open_cache_hits{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}[5m])", "hide": false, "interval": "", - "legendFormat": "Table Open Cache Hit Ratio - {{pod}}", + "legendFormat": {{ `"Table Open Cache Hit Ratio - {{pod}}"` }}, "refId": "E" } ], @@ -3241,14 +3241,14 @@ "exemplar": true, "expr": "mysql_global_status_open_tables{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Open Tables - {{pod}}", + "legendFormat": {{ `"Open Tables - {{pod}}"` }}, "refId": "A" }, { "exemplar": true, "expr": "mysql_global_variables_table_open_cache{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Table Open Cache - {{pod}}", + "legendFormat": {{ `"Table Open Cache - {{pod}}"` }}, "refId": "B" } ], @@ -3346,14 +3346,14 @@ "exemplar": true, "expr": "mysql_global_status_open_table_definitions{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Open Table Definitions - {{pod}}", + "legendFormat": {{ `"Open Table Definitions - {{pod}}"` }}, "refId": "A" }, { "exemplar": true, "expr": "mysql_global_variables_table_definition_cache{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "interval": "", - "legendFormat": "Table Definitions Cache Size - {{pod}}", + "legendFormat": {{ `"Table Definitions Cache Size - {{pod}}"` }}, "refId": "B" }, { @@ -3361,7 +3361,7 @@ "expr": "mysql_global_status_opened_table_definitions{namespace=~\"$namespace\",service=~\"$app\",pod=~\"$pod\"}", "hide": false, "interval": "", - "legendFormat": "Opened Table Definitions - {{pod}}", + "legendFormat": {{ `"Opened Table Definitions - {{pod}}"` }}, "refId": "C" } ], diff --git a/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-summary.json b/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-summary.json index 403ae876f..5f777211b 100644 --- a/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-summary.json +++ b/charts/kubedb-grafana-dashboards/dashboards/perconaxtradb/perconaxtradb-summary.json @@ -1804,7 +1804,7 @@ "instant": false, "interval": "", "intervalFactor": 1, - "legendFormat": "{{pod}}-disk-write", + "legendFormat": {{ `"{{pod}}-disk-write"` }}, "refId": "A" }, { @@ -1813,7 +1813,7 @@ "hide": false, "instant": false, "interval": "", - "legendFormat": "{{pod}}-disk-read", + "legendFormat": {{ `"{{pod}}-disk-read"` }}, "refId": "B" } ],