From 9542fdfa89dff0da7e7575e6456fcbc66d54e741 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Mon, 24 Jul 2023 14:47:37 +0200 Subject: [PATCH] grafana - update haproxy dashboard --- templates/dashboards/haproxy.json.j2 | 102 +++++++++++++-------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/templates/dashboards/haproxy.json.j2 b/templates/dashboards/haproxy.json.j2 index 88c195d..587bf2f 100644 --- a/templates/dashboards/haproxy.json.j2 +++ b/templates/dashboards/haproxy.json.j2 @@ -154,7 +154,7 @@ "expr": "sum by(instance)(rate(haproxy_frontend_http_responses_total{proxy=~\"$frontend\",code=~\"$code\",instance=~\"$host\"}[$__rate_interval]))", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{instance}}", + "legendFormat": "\{\{ instance \}\}", "metric": "", "range": true, "refId": "A", @@ -259,7 +259,7 @@ "expr": "sum(rate(haproxy_frontend_http_responses_total{proxy=~\"$frontend\",code=~\"$code\",instance=~\"$host\"}[$__rate_interval])) by (code)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Front {{ code }}", + "legendFormat": "Front \{\{ code \}\}", "metric": "", "range": true, "refId": "A", @@ -364,7 +364,7 @@ "expr": "sum(rate(haproxy_backend_http_responses_total{proxy=~\"$backend\",code=~\"$code\",instance=~\"$host\"}[$__rate_interval])) by (code)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Back {{ code }}", + "legendFormat": "Back \{\{ code \}\}", "metric": "", "range": true, "refId": "B", @@ -1385,7 +1385,7 @@ "expr": "sum(rate(haproxy_frontend_connections_total{proxy=~\"$frontend\",instance=~\"$host\"}[$__rate_interval])*8) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "{\{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -1505,7 +1505,7 @@ "expr": "sum(rate(haproxy_backend_connection_attempts_total{proxy=~\"$backend\",instance=~\"$host\"}[$__rate_interval])*8) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "haproxy_backend_", "range": true, "refId": "A", @@ -1625,7 +1625,7 @@ "expr": "sum(rate(haproxy_frontend_connections_total{proxy=~\"$frontend\",instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Successful {{ proxy }}", + "legendFormat": "Successful \{\{ proxy \}\}", "metric": "haproxy_backe", "range": true, "refId": "B", @@ -1640,7 +1640,7 @@ "expr": "sum(rate(haproxy_frontend_denied_connections_total{proxy=~\"$frontend\",instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Denied {{ proxy }}", + "legendFormat": "Denied \{\{ proxy \}\}", "metric": "haproxy_backe", "range": true, "refId": "A", @@ -1761,7 +1761,7 @@ "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Attempts {{ proxy }}", + "legendFormat": "Attempts \{\{ proxy \}\}", "metric": "", "range": true, "refId": "B", @@ -1776,7 +1776,7 @@ "expr": "sum(rate(haproxy_backend_connection_errors_total{proxy=~\"$backend\",instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 2, - "legendFormat": "Error {{ proxy }}", + "legendFormat": "Error \{\{ proxy \}\}", "range": true, "refId": "A", "step": 240 @@ -1883,7 +1883,7 @@ "expr": "sum(haproxy_frontend_connections_rate_max{proxy=~\"$frontend\",instance=~\"$host\"}) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Max {{ proxy }}", + "legendFormat": "Max \{\{ proxy \}\}", "metric": "haproxy_backe", "range": true, "refId": "B", @@ -1990,7 +1990,7 @@ "expr": "sum(rate(haproxy_backend_connection_reuses_total{proxy=~\"$backend\",instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 2, - "legendFormat": "Reuses {{ proxy }}", + "legendFormat": "Reuses \{\{ proxy \}\}", "range": true, "refId": "C", "step": 240 @@ -2122,7 +2122,7 @@ "expr": "sum(haproxy_backend_current_queue{proxy=~\"$backend\",instance=~\"$host\"}) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Queued {{ proxy }}", + "legendFormat": "Queued \{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -2228,7 +2228,7 @@ "expr": "sum(haproxy_backend_max_queue{proxy=~\"$backend\",instance=~\"$host\"}) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Max {{ proxy }}", + "legendFormat": "Max \{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -2385,7 +2385,7 @@ "expr": "sum(rate(haproxy_frontend_http_requests_total{proxy=~\"$frontend\",instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Total {{ proxy }}", + "legendFormat": "Total \{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -2400,7 +2400,7 @@ "expr": "sum(rate(haproxy_frontend_request_errors_total{proxy=~\"$frontend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 2, - "legendFormat": "Error {{ proxy }}", + "legendFormat": "Error \{\{ proxy \}\}", "range": true, "refId": "B", "step": 240 @@ -2414,7 +2414,7 @@ "expr": "sum(rate(haproxy_frontend_requests_denied_total{proxy=~\"$frontend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 2, - "legendFormat": "Denied {{ proxy }}", + "legendFormat": "Denied \{\{ proxy \}\}", "range": true, "refId": "C", "step": 240 @@ -2518,7 +2518,7 @@ "expr": "sum(rate(haproxy_backend_responses_denied_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Denied {{ proxy }}", + "legendFormat": "Denied \{\{ proxy \}\}", "metric": "", "range": true, "refId": "B", @@ -2636,7 +2636,7 @@ "expr": "sum(rate(haproxy_frontend_responses_denied_total{proxy=~\"$frontend\",instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Denied {{ proxy }}", + "legendFormat": "Denied \{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -2768,7 +2768,7 @@ "expr": "sum(haproxy_backend_connect_time_average_seconds{proxy=~\"$backend\",instance=~\"$host\"}) by (proxy) != 0", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "haproxy_backend_current_queue", "range": true, "refId": "B", @@ -2872,7 +2872,7 @@ "expr": "sum(haproxy_backend_max_connect_time_seconds{proxy=~\"$backend\",instance=~\"$host\"}) by (proxy) != 0", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "haproxy_backend_current_queue", "range": true, "refId": "B", @@ -2978,7 +2978,7 @@ "expr": "haproxy_backend_response_time_average_seconds{proxy=~\"$backend\",instance=~\"$host\"} != 0", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "haproxy_backend_current_queue", "range": true, "refId": "C", @@ -3083,7 +3083,7 @@ "expr": "sum(haproxy_backend_max_response_time_seconds{proxy=~\"$backend\",instance=~\"$host\"}) by (proxy) != 0", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "haproxy_backend_current_queue", "range": true, "refId": "C", @@ -3229,7 +3229,7 @@ "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Total {{ proxy }}", + "legendFormat": "Total \{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -3245,7 +3245,7 @@ "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Denied {{ proxy }}", + "legendFormat": "Denied \{\{ proxy \}\}", "metric": "", "range": true, "refId": "B", @@ -3261,7 +3261,7 @@ "hide": true, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Current active {{ proxy }}", + "legendFormat": "Current active \{\{ proxy \}\}", "metric": "", "range": true, "refId": "C", @@ -3367,7 +3367,7 @@ "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Total {{ proxy }}", + "legendFormat": "Total \{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -3383,7 +3383,7 @@ "hide": true, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Current active {{ proxy }}", + "legendFormat": "Current active \{\{ proxy \}\}", "metric": "", "range": true, "refId": "B", @@ -3503,7 +3503,7 @@ "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Max {{ proxy }}", + "legendFormat": "Max \{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -3518,7 +3518,7 @@ "expr": "sum(haproxy_backend_limit_sessions{proxy=~\"$backend\",instance=~\"$host\"}) by (proxy)", "interval": "$interval", "intervalFactor": 2, - "legendFormat": "Limit {{ proxy }}", + "legendFormat": "Limit \{\{ proxy \}\}", "range": true, "refId": "B", "step": 240 @@ -3637,7 +3637,7 @@ "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Max {{ proxy }}", + "legendFormat": "Max \{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -3652,7 +3652,7 @@ "expr": "sum(haproxy_frontend_limit_sessions{proxy=~\"$frontend\",instance=~\"$host\"}) by (proxy)", "interval": "$interval", "intervalFactor": 2, - "legendFormat": "Limit {{ proxy }}", + "legendFormat": "Limit \{\{ proxy \}\}", "range": true, "refId": "B", "step": 240 @@ -3784,7 +3784,7 @@ "expr": "sum(rate(haproxy_backend_check_up_down_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -3890,7 +3890,7 @@ "expr": "sum(haproxy_backend_weight{proxy=~\"$backend\", instance=~\"$host\"}) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -4036,7 +4036,7 @@ "expr": "sum(rate(haproxy_frontend_http_cache_lookups_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Lookups {{ proxy }} ", + "legendFormat": "Lookups \{\{ proxy \}\} ", "metric": "", "range": true, "refId": "A", @@ -4051,7 +4051,7 @@ "expr": "sum(rate(haproxy_frontend_http_cache_hits_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Hits {{ proxy }} ", + "legendFormat": "Hits \{\{ proxy \}\} ", "metric": "", "range": true, "refId": "B", @@ -4170,7 +4170,7 @@ "expr": "sum(rate(haproxy_backend_http_cache_lookups_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Lookups {{ proxy }} ", + "legendFormat": "Lookups \{\{ proxy \}\} ", "metric": "", "range": true, "refId": "A", @@ -4185,7 +4185,7 @@ "expr": "sum(rate(haproxy_backend_http_cache_hits_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Hits {{ proxy }} ", + "legendFormat": "Hits \{\{ proxy \}\} ", "metric": "", "range": true, "refId": "B", @@ -4316,7 +4316,7 @@ "expr": "sum(rate(haproxy_frontend_http_comp_bytes_in_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Bytes fed {{ proxy }} ", + "legendFormat": "Bytes fed \{\{ proxy \}\} ", "metric": "", "range": true, "refId": "A", @@ -4331,7 +4331,7 @@ "expr": "sum(rate(haproxy_frontend_http_comp_bytes_out_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Bytes emitted {{ proxy }} ", + "legendFormat": "Bytes emitted \{\{ proxy \}\} ", "metric": "", "range": true, "refId": "B", @@ -4346,7 +4346,7 @@ "expr": "sum(rate(haproxy_frontend_http_comp_bytes_bypassed_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Bytes bypassed {{ proxy }} ", + "legendFormat": "Bytes bypassed \{\{ proxy \}\} ", "metric": "", "range": true, "refId": "C", @@ -4477,7 +4477,7 @@ "expr": "sum(rate(haproxy_backend_http_comp_bytes_in_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Bytes fed {{ proxy }} ", + "legendFormat": "Bytes fed \{\{ proxy \}\} ", "metric": "", "range": true, "refId": "A", @@ -4492,7 +4492,7 @@ "expr": "sum(rate(haproxy_backend_http_comp_bytes_out_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Bytes emitted {{ proxy }} ", + "legendFormat": "Bytes emitted \{\{ proxy \}\} ", "metric": "", "range": true, "refId": "B", @@ -4507,7 +4507,7 @@ "expr": "sum(rate(haproxy_backend_http_comp_bytes_bypassed_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Bytes bypassed {{ proxy }} ", + "legendFormat": "Bytes bypassed \{\{ proxy \}\} ", "metric": "", "range": true, "refId": "C", @@ -4613,7 +4613,7 @@ "expr": "sum(rate(haproxy_frontend_http_comp_responses_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }} ", + "legendFormat": "\{\{ proxy \}\} ", "metric": "", "range": true, "refId": "A", @@ -4719,7 +4719,7 @@ "expr": "sum(rate(haproxy_backend_http_comp_responses_total{proxy=~\"$backend\", instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }} ", + "legendFormat": "\{\{ proxy \}\} ", "metric": "", "range": true, "refId": "A", @@ -4851,7 +4851,7 @@ "expr": "sum(haproxy_frontend_status{proxy=~\"$frontend\",instance=~\"$host\"}) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -4956,7 +4956,7 @@ "expr": "sum(haproxy_backend_status{proxy=~\"$backend\",instance=~\"$host\"}) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -5061,7 +5061,7 @@ "expr": "sum(rate(haproxy_frontend_internal_errors_total{proxy=~\"$backend\",instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -5166,7 +5166,7 @@ "expr": "sum(rate(haproxy_backend_internal_errors_total{proxy=~\"$backend\",instance=~\"$host\"}[$__rate_interval])) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -5270,7 +5270,7 @@ "expr": "sum(haproxy_backend_active_servers{proxy=~\"$backend\",instance=~\"$host\"}) by (proxy)", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "metric": "", "range": true, "refId": "A", @@ -5373,7 +5373,7 @@ "editorMode": "code", "expr": "sum(haproxy_backend_backup_servers{proxy=~\"$backend\",instance=~\"$host\"}) by (proxy)", "interval": "", - "legendFormat": "{{ proxy }}", + "legendFormat": "\{\{ proxy \}\}", "range": true, "refId": "B" }