mirror of
https://github.com/rfmoz/grafana-dashboards.git
synced 2024-11-13 17:14:22 -08:00
Basic General Info tab take into account the backend and fronted selected
This commit is contained in:
parent
e68a8a3b8e
commit
25f0e7b9db
|
@ -95,7 +95,7 @@
|
||||||
"step": 60
|
"step": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "count(haproxy_backend_up{instance=~\"$host:$port\"} == 0)",
|
"expr": "count(haproxy_backend_up{backend=~\"$backend\",instance=~\"$host:$port\"} == 0)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
"legendFormat": "Backends Down",
|
"legendFormat": "Backends Down",
|
||||||
|
@ -216,7 +216,7 @@
|
||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "sum(rate(haproxy_backend_http_responses_total{code=~\"$code\",instance=~\"$host:$port\"}[5m])) by (code)",
|
"expr": "sum(rate(haproxy_frontend_http_responses_total{frontend=~\"$frontend\",code=~\"$code\",instance=~\"$host:$port\"}[5m])) by (code)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "Frontend {{ code }}",
|
"legendFormat": "Frontend {{ code }}",
|
||||||
|
@ -225,7 +225,7 @@
|
||||||
"step": 30
|
"step": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(rate(haproxy_backend_http_responses_total{code=~\"$code\",instance=~\"$host:$port\"}[5m])) by (code)",
|
"expr": "sum(rate(haproxy_backend_http_responses_total{backend=~\"$backend\",code=~\"$code\",instance=~\"$host:$port\"}[5m])) by (code)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "Backend {{ code }}",
|
"legendFormat": "Backend {{ code }}",
|
||||||
|
@ -314,7 +314,7 @@
|
||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "sum(rate(haproxy_frontend_bytes_in_total{instance=~\"$host:$port\"}[5m])*8) by (instance)",
|
"expr": "sum(rate(haproxy_frontend_bytes_in_total{frontend=~\"$frontend\",instance=~\"$host:$port\"}[5m])*8) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "IN Front",
|
"legendFormat": "IN Front",
|
||||||
|
@ -323,7 +323,7 @@
|
||||||
"step": 30
|
"step": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(rate(haproxy_frontend_bytes_out_total{instance=~\"$host:$port\"}[5m])*8) by (instance)",
|
"expr": "sum(rate(haproxy_frontend_bytes_out_total{frontend=~\"$frontend\",instance=~\"$host:$port\"}[5m])*8) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
"legendFormat": "OUT Front",
|
"legendFormat": "OUT Front",
|
||||||
|
@ -331,14 +331,14 @@
|
||||||
"step": 60
|
"step": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(rate(haproxy_backend_bytes_in_total{instance=~\"$host:$port\"}[5m])*8) by (instance)",
|
"expr": "sum(rate(haproxy_backend_bytes_in_total{backend=~\"$backend\",instance=~\"$host:$port\"}[5m])*8) by (instance)",
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
"legendFormat": "IN Back",
|
"legendFormat": "IN Back",
|
||||||
"refId": "C",
|
"refId": "C",
|
||||||
"step": 240
|
"step": 240
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(rate(haproxy_backend_bytes_out_total{instance=~\"$host:$port\"}[5m])*8) by (instance)",
|
"expr": "sum(rate(haproxy_backend_bytes_out_total{backend=~\"$backend\",instance=~\"$host:$port\"}[5m])*8) by (instance)",
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
"legendFormat": "OUT Back",
|
"legendFormat": "OUT Back",
|
||||||
"refId": "D",
|
"refId": "D",
|
||||||
|
@ -422,7 +422,7 @@
|
||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "sum(deriv(haproxy_frontend_connections_total{instance=~\"$host:$port\"}[5m])) by (instance)",
|
"expr": "sum(deriv(haproxy_frontend_connections_total{frontend=~\"$frontend\",instance=~\"$host:$port\"}[5m])) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "Front",
|
"legendFormat": "Front",
|
||||||
|
@ -431,7 +431,7 @@
|
||||||
"step": 30
|
"step": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(deriv(haproxy_backend_connections_total{instance=~\"$host:$port\"}[5m])) by (instance)",
|
"expr": "sum(deriv(haproxy_backend_connections_total{backend=~\"$backend\",instance=~\"$host:$port\"}[5m])) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "Back",
|
"legendFormat": "Back",
|
||||||
|
@ -440,7 +440,7 @@
|
||||||
"step": 30
|
"step": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(deriv(haproxy_backend_connection_errors_total{instance=~\"$host:$port\"}[5m])) by (instance)",
|
"expr": "sum(deriv(haproxy_backend_connection_errors_total{backend=~\"$backend\",instance=~\"$host:$port\"}[5m])) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "Back errors",
|
"legendFormat": "Back errors",
|
||||||
|
@ -530,7 +530,7 @@
|
||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "sum(rate(haproxy_frontend_http_requests_total{instance=~\"$host:$port\"}[5m])) by (instance)",
|
"expr": "sum(rate(haproxy_frontend_http_requests_total{frontend=~\"$frontend\",instance=~\"$host:$port\"}[5m])) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "Requests",
|
"legendFormat": "Requests",
|
||||||
|
@ -539,7 +539,7 @@
|
||||||
"step": 30
|
"step": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(deriv(haproxy_backend_response_errors_total{instance=~\"$host:$port\"}[5m])) by (instance)",
|
"expr": "sum(deriv(haproxy_backend_response_errors_total{backend=~\"$backend\",instance=~\"$host:$port\"}[5m])) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
"legendFormat": "Response errors",
|
"legendFormat": "Response errors",
|
||||||
|
@ -547,7 +547,7 @@
|
||||||
"step": 60
|
"step": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(deriv(haproxy_frontend_request_errors_total{instance=~\"$host:$port\"}[5m])) by (instance)",
|
"expr": "sum(deriv(haproxy_frontend_request_errors_total{frontend=~\"$frontend\",instance=~\"$host:$port\"}[5m])) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "Requests errors",
|
"legendFormat": "Requests errors",
|
||||||
|
@ -556,7 +556,7 @@
|
||||||
"step": 30
|
"step": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(deriv(haproxy_backend_redispatch_warnings_total{instance=~\"$host:$port\"}[5m])) by (instance)",
|
"expr": "sum(deriv(haproxy_backend_redispatch_warnings_total{backend=~\"$backend\",instance=~\"$host:$port\"}[5m])) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
"legendFormat": "Backend redispatch",
|
"legendFormat": "Backend redispatch",
|
||||||
|
@ -564,7 +564,7 @@
|
||||||
"step": 60
|
"step": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(deriv(haproxy_backend_retry_warnings_total{instance=~\"$host:$port\"}[5m])) by (instance)",
|
"expr": "sum(deriv(haproxy_backend_retry_warnings_total{backend=~\"$backend\",instance=~\"$host:$port\"}[5m])) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
"legendFormat": "Backend retry",
|
"legendFormat": "Backend retry",
|
||||||
|
@ -572,7 +572,7 @@
|
||||||
"step": 60
|
"step": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(deriv(haproxy_frontend_requests_denied_total{instance=~\"$host:$port\"}[5m])) by (instance)",
|
"expr": "sum(deriv(haproxy_frontend_requests_denied_total{frontend=~\"$frontend\",instance=~\"$host:$port\"}[5m])) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
"legendFormat": "Request denied",
|
"legendFormat": "Request denied",
|
||||||
|
@ -580,7 +580,7 @@
|
||||||
"step": 60
|
"step": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(haproxy_backend_current_queue{instance=~\"$host:$port\"}) by (instance)",
|
"expr": "sum(haproxy_backend_current_queue{backend=~\"$backend\",instance=~\"$host:$port\"}) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
"legendFormat": "Backend Queued",
|
"legendFormat": "Backend Queued",
|
||||||
|
@ -666,7 +666,7 @@
|
||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "sum(haproxy_frontend_current_sessions{instance=~\"$host:$port\"}) by (instance)",
|
"expr": "sum(haproxy_frontend_current_sessions{frontend=~\"$frontend\",instance=~\"$host:$port\"}) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "Frontend current sessions",
|
"legendFormat": "Frontend current sessions",
|
||||||
|
@ -675,7 +675,7 @@
|
||||||
"step": 30
|
"step": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(haproxy_frontend_current_session_rate{instance=~\"$host:$port\"}) by (instance)",
|
"expr": "sum(haproxy_frontend_current_session_rate{frontend=~\"$frontend\",instance=~\"$host:$port\"}) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "Frontend current session rate",
|
"legendFormat": "Frontend current session rate",
|
||||||
|
@ -684,7 +684,7 @@
|
||||||
"step": 30
|
"step": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(haproxy_backend_current_sessions{instance=~\"$host:$port\"}) by (instance)",
|
"expr": "sum(haproxy_backend_current_sessions{backend=~\"$backend\",instance=~\"$host:$port\"}) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "Backend current sessions",
|
"legendFormat": "Backend current sessions",
|
||||||
|
@ -693,7 +693,7 @@
|
||||||
"step": 30
|
"step": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(haproxy_backend_current_session_rate{instance=~\"$host:$port\"}) by (instance)",
|
"expr": "sum(haproxy_backend_current_session_rate{backend=~\"$backend\",instance=~\"$host:$port\"}) by (instance)",
|
||||||
"interval": "$interval",
|
"interval": "$interval",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "Backend current session rate",
|
"legendFormat": "Backend current session rate",
|
||||||
|
@ -4478,5 +4478,5 @@
|
||||||
},
|
},
|
||||||
"timezone": "browser",
|
"timezone": "browser",
|
||||||
"title": "HAProxy",
|
"title": "HAProxy",
|
||||||
"version": 119
|
"version": 3
|
||||||
}
|
}
|
Loading…
Reference in a new issue