mirror of
				https://github.com/rfmoz/grafana-dashboards.git
				synced 2025-03-05 20:51:45 -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 | ||||
|             }, | ||||
|             { | ||||
|               "expr": "count(haproxy_backend_up{instance=~\"$host:$port\"} == 0)", | ||||
|               "expr": "count(haproxy_backend_up{backend=~\"$backend\",instance=~\"$host:$port\"} == 0)", | ||||
|               "interval": "$interval", | ||||
|               "intervalFactor": 2, | ||||
|               "legendFormat": "Backends Down", | ||||
|  | @ -216,7 +216,7 @@ | |||
|           "steppedLine": false, | ||||
|           "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "Frontend {{ code }}", | ||||
|  | @ -225,7 +225,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "Backend {{ code }}", | ||||
|  | @ -314,7 +314,7 @@ | |||
|           "steppedLine": false, | ||||
|           "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "IN Front", | ||||
|  | @ -323,7 +323,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 2, | ||||
|               "legendFormat": "OUT Front", | ||||
|  | @ -331,14 +331,14 @@ | |||
|               "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, | ||||
|               "legendFormat": "IN Back", | ||||
|               "refId": "C", | ||||
|               "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, | ||||
|               "legendFormat": "OUT Back", | ||||
|               "refId": "D", | ||||
|  | @ -422,7 +422,7 @@ | |||
|           "steppedLine": false, | ||||
|           "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "Front", | ||||
|  | @ -431,7 +431,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "Back", | ||||
|  | @ -440,7 +440,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "Back errors", | ||||
|  | @ -530,7 +530,7 @@ | |||
|           "steppedLine": false, | ||||
|           "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "Requests", | ||||
|  | @ -539,7 +539,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 2, | ||||
|               "legendFormat": "Response errors", | ||||
|  | @ -547,7 +547,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "Requests errors", | ||||
|  | @ -556,7 +556,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 2, | ||||
|               "legendFormat": "Backend redispatch", | ||||
|  | @ -564,7 +564,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 2, | ||||
|               "legendFormat": "Backend retry", | ||||
|  | @ -572,7 +572,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 2, | ||||
|               "legendFormat": "Request denied", | ||||
|  | @ -580,7 +580,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 2, | ||||
|               "legendFormat": "Backend Queued", | ||||
|  | @ -666,7 +666,7 @@ | |||
|           "steppedLine": false, | ||||
|           "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "Frontend current sessions", | ||||
|  | @ -675,7 +675,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "Frontend current session rate", | ||||
|  | @ -684,7 +684,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "Backend current sessions", | ||||
|  | @ -693,7 +693,7 @@ | |||
|               "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", | ||||
|               "intervalFactor": 1, | ||||
|               "legendFormat": "Backend current session rate", | ||||
|  | @ -4478,5 +4478,5 @@ | |||
|   }, | ||||
|   "timezone": "browser", | ||||
|   "title": "HAProxy", | ||||
|   "version": 119 | ||||
| } | ||||
|   "version": 3 | ||||
| } | ||||
		Loading…
	
		Reference in a new issue