{ "uid": "incus-haproxy-traffic", "title": "HAProxy Traffic", "description": "HAProxy load balancer monitoring: request rates, backend health, traffic volume, and sessions.", "tags": ["haproxy", "loadbalancer", "incus"], "timezone": "browser", "schemaVersion": 39, "version": 1, "refresh": "30s", "time": { "from": "now-1h", "to": "now" }, "fiscalYearStartMonth": 0, "liveNow": false, "editable": true, "graphTooltip": 1, "templating": { "list": [] }, "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "panels": [ { "type": "row", "title": "Overview", "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 1, "panels": [] }, { "type": "stat", "title": "Active Backend Servers", "description": "Total number of active servers across all HAProxy backends.", "gridPos": { "h": 4, "w": 8, "x": 0, "y": 1 }, "id": 2, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "targets": [ { "expr": "sum(haproxy_backend_active_servers)", "legendFormat": "Active Servers", "refId": "A" } ], "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "yellow", "value": 1 }, { "color": "green", "value": 2 } ] }, "unit": "none", "color": { "mode": "thresholds" } }, "overrides": [] }, "options": { "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "orientation": "auto", "textMode": "auto", "colorMode": "value", "graphMode": "none", "justifyMode": "auto" } }, { "type": "stat", "title": "Current Sessions", "description": "Total current sessions across all HAProxy backends.", "gridPos": { "h": 4, "w": 8, "x": 8, "y": 1 }, "id": 3, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "targets": [ { "expr": "sum(haproxy_backend_current_sessions)", "legendFormat": "Sessions", "refId": "A" } ], "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 100 }, { "color": "red", "value": 500 } ] }, "unit": "none", "color": { "mode": "thresholds" } }, "overrides": [] }, "options": { "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "orientation": "auto", "textMode": "auto", "colorMode": "value", "graphMode": "area", "justifyMode": "auto" } }, { "type": "stat", "title": "Total HTTP Requests", "description": "Total HTTP requests across all HAProxy frontends (counter).", "gridPos": { "h": 4, "w": 8, "x": 16, "y": 1 }, "id": 4, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "targets": [ { "expr": "sum(rate(haproxy_frontend_http_requests_total[$__rate_interval]))", "legendFormat": "Requests/s", "refId": "A" } ], "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "reqps", "color": { "mode": "thresholds" } }, "overrides": [] }, "options": { "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "orientation": "auto", "textMode": "auto", "colorMode": "value", "graphMode": "area", "justifyMode": "auto" } }, { "type": "row", "title": "HTTP Requests", "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 }, "id": 5, "panels": [] }, { "type": "timeseries", "title": "HTTP Request Rate by Frontend", "description": "Rate of HTTP requests per second, broken down by HAProxy frontend/proxy.", "gridPos": { "h": 8, "w": 24, "x": 0, "y": 6 }, "id": 6, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "targets": [ { "expr": "sum by (proxy) (rate(haproxy_frontend_http_requests_total[$__rate_interval]))", "legendFormat": "{{proxy}}", "refId": "A" } ], "fieldConfig": { "defaults": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 20, "gradientMode": "none", "spanNulls": false, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisPlacement": "auto", "axisLabel": "", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } }, "unit": "reqps", "color": { "mode": "palette-classic" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "options": { "tooltip": { "mode": "multi", "sort": "desc" }, "legend": { "displayMode": "table", "placement": "right", "calcs": ["mean", "max"] } } }, { "type": "row", "title": "Backend Health", "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 14 }, "id": 7, "panels": [] }, { "type": "table", "title": "Backend Status", "description": "Current status, active server count, and average response time for each HAProxy backend.", "gridPos": { "h": 8, "w": 24, "x": 0, "y": 15 }, "id": 8, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "targets": [ { "expr": "haproxy_backend_status", "legendFormat": "", "refId": "A", "format": "table", "instant": true }, { "expr": "haproxy_backend_active_servers", "legendFormat": "", "refId": "B", "format": "table", "instant": true }, { "expr": "haproxy_server_response_time_average_seconds", "legendFormat": "", "refId": "C", "format": "table", "instant": true } ], "fieldConfig": { "defaults": { "custom": { "align": "auto", "displayMode": "auto", "inspect": false, "filterable": true }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "color": { "mode": "thresholds" } }, "overrides": [ { "matcher": { "id": "byName", "options": "Value #A" }, "properties": [ { "id": "displayName", "value": "Status" } ] }, { "matcher": { "id": "byName", "options": "Value #B" }, "properties": [ { "id": "displayName", "value": "Active Servers" } ] }, { "matcher": { "id": "byName", "options": "Value #C" }, "properties": [ { "id": "displayName", "value": "Avg Response Time" }, { "id": "unit", "value": "s" } ] }, { "matcher": { "id": "byName", "options": "proxy" }, "properties": [ { "id": "displayName", "value": "Backend" } ] } ] }, "options": { "showHeader": true, "sortBy": [], "footer": { "show": false, "reducer": ["sum"], "fields": "" } }, "transformations": [ { "id": "merge", "options": {} }, { "id": "organize", "options": { "excludeByName": { "Time": true, "__name__": true, "instance": false, "job": true }, "indexByName": {}, "renameByName": {} } } ] }, { "type": "row", "title": "Traffic", "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 23 }, "id": 9, "panels": [] }, { "type": "timeseries", "title": "Frontend Bytes In", "description": "Inbound traffic rate per HAProxy frontend.", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }, "id": 10, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "targets": [ { "expr": "sum by (proxy) (rate(haproxy_frontend_bytes_in_total[$__rate_interval]))", "legendFormat": "{{proxy}} (in)", "refId": "A" } ], "fieldConfig": { "defaults": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 20, "gradientMode": "none", "spanNulls": false, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisPlacement": "auto", "axisLabel": "", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } }, "unit": "Bps", "color": { "mode": "palette-classic" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "options": { "tooltip": { "mode": "multi", "sort": "desc" }, "legend": { "displayMode": "table", "placement": "right", "calcs": ["mean", "max"] } } }, { "type": "timeseries", "title": "Frontend Bytes Out", "description": "Outbound traffic rate per HAProxy frontend.", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }, "id": 11, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "targets": [ { "expr": "sum by (proxy) (rate(haproxy_frontend_bytes_out_total[$__rate_interval]))", "legendFormat": "{{proxy}} (out)", "refId": "A" } ], "fieldConfig": { "defaults": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 20, "gradientMode": "none", "spanNulls": false, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisPlacement": "auto", "axisLabel": "", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } }, "unit": "Bps", "color": { "mode": "palette-classic" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "options": { "tooltip": { "mode": "multi", "sort": "desc" }, "legend": { "displayMode": "table", "placement": "right", "calcs": ["mean", "max"] } } }, { "type": "row", "title": "Sessions", "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 32 }, "id": 12, "panels": [] }, { "type": "timeseries", "title": "Current Sessions by Proxy", "description": "Current active sessions for each HAProxy backend/proxy over time.", "gridPos": { "h": 8, "w": 24, "x": 0, "y": 33 }, "id": 13, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, "targets": [ { "expr": "haproxy_backend_current_sessions", "legendFormat": "{{proxy}}", "refId": "A" } ], "fieldConfig": { "defaults": { "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 20, "gradientMode": "none", "spanNulls": false, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisPlacement": "auto", "axisLabel": "", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } }, "unit": "none", "color": { "mode": "palette-classic" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "options": { "tooltip": { "mode": "multi", "sort": "desc" }, "legend": { "displayMode": "table", "placement": "right", "calcs": ["mean", "max", "lastNotNull"] } } } ] }