HAProxy (Proxy, ReverseProxy: Frontend, Backend, Servers)
Dynamic Dashboard for HAProxy @by Florian-Romel CHIORĂSCU
This dashboard displays the detailed metrics for Frontend/ Backend/ Server:
- HTTP codes (2xx, 3xx, 4xx, 5xx, other);
- Error 4xx, 5xx;
- Throughput;
- IN/OUT Bytes;
- Availability;
- Connections Utilization %;
- Etc...


For collecting the HAProxy metrics from server it requires to install/configure the haproxy_exporter from prometheus repository:
- https://github.com/prometheus/haproxy_exporter


Prometheus configuration: ` /opt/prometheus/prometheus.yml`

        - job_name: proxy01
          static_configs:
            - targets: ['192.168.1.10:9101']
              labels:
                env: prod
                alias: proxy01

 haproxy_exporter configuration: ` /usr/lib/systemd/system/haproxy_exporter.service`

        [Unit]
        Description=Prometheus HAProxy Exporter
        After=network.target
        
        [Service]
        Type=simple
        User=haproxy
        Group=haproxy
        
        ExecStart=/opt/haproxy_exporter/haproxy_exporter --haproxy.scrape-uri=unix:/var/lib/haproxy/stats --web.listen-address 0.0.0.0:9101 --log.level=info
        ExecReload=/bin/kill -HUP $MAINPID
        TimeoutStopSec=10s
        SendSIGKILL=no

        SyslogIdentifier=prometheus_haproxy_exporter
        Restart=always
        
        [Install]
        WantedBy=multi-user.target

You need to have the `stats` option configured in your global section of `/etc/haproxy/haproxy.cfg` file:

        global
          #--------------------#
          # logs configuration #
          #--------------------#
          log 127.0.0.1 local0 debug
          log 127.0.0.1 local1 notice
          #----------------------------#
          # turn on stats unix sockets #
          #----------------------------#
          stats socket /var/lib/haproxy/stats user haproxy group haproxy mode 660 level user
          stats timeout 30s
          #-----------------------------------------------------#
          # performance configuration                           #
          # maximum per-process number of concurrent connection #
          #-----------------------------------------------------#
          maxconn 40000
          tune.ssl.default-dh-param 2048

Selinux and permissions for HAProxy:

          $ ls -ltrha  /var/lib/haproxy/stats
             srw-rw----. 1 haproxy haproxy 0 Jan 17 15:37 /var/lib/haproxy/stats
          $ semanage permissive -a haproxy_t
          $ ps -eZ | grep haproxy_t

HAProxy Metrics @by Florian-Romel CHIORĂSCU
{
  "__inputs": [],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.0.0-beta1"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "jdbranham-diagram-panel",
      "name": "Diagram",
      "version": "1.4.5"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "5.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Dynamic Dashboard for HAProxy @by Florian-Romel CHIORĂSCU",
  "editable": true,
  "gnetId": 9773,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1549483501661,
  "links": [
    {
      "icon": "external link",
      "includeVars": true,
      "keepTime": true,
      "tags": [],
      "targetBlank": true,
      "title": "HAProxy Exporter",
      "tooltip": "",
      "type": "link",
      "url": "https://github.com/prometheus/haproxy_exporter"
    }
  ],
  "panels": [
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 8,
      "panels": [
        {
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "composites": [],
          "content": "graph LR\nfrontend[Frontend] --> proxy{Proxy}\nproxy{Proxy} --INTERNET:https--> backend(Backend)\n\nsubgraph Proxy\nproxy{Proxy}\nend\n\n\n\n\n",
          "datasource": "$datasource",
          "decimals": 0,
          "description": "0 = DOWN;\n1 = UP;\n\nFlowcharts - Basic Syntax Graph This statement declares a new graph and the direction of the graph layout. This declares a graph oriented from top to bottom. graph TD Start --> Stop This declares a graph oriented from left to right. Possible directions are: TB - top bottom BT - bottom top RL - right left LR - left right TD - same as TB graph LR Start --> Stop Nodes & shapes A node (default) graph LR id Note that the id is what is displayed in the box. A node with text It is al...",
          "format": "none",
          "graphId": "diagram_62",
          "gridPos": {
            "h": 10,
            "w": 24,
            "x": 0,
            "y": 1
          },
          "id": 62,
          "init": {
            "arrowMarkerAbsolute": true,
            "cloneCssStyles": false,
            "flowchart": {
              "htmlLabels": true,
              "useMaxWidth": true
            },
            "gantt": {
              "barGap": 4,
              "barHeight": 20,
              "fontFamily": "\"Open-Sans\", \"sans-serif\"",
              "fontSize": 11,
              "gridLineStartPadding": 35,
              "leftPadding": 75,
              "numberSectionStyles": 3,
              "titleTopMargin": 25,
              "topPadding": 50
            },
            "logLevel": 3,
            "sequenceDiagram": {
              "actorMargin": 50,
              "bottomMarginAdj": 1,
              "boxMargin": 10,
              "boxTextMargin": 5,
              "diagramMarginX": 50,
              "diagramMarginY": 10,
              "height": 65,
              "messageMargin": 35,
              "mirrorActors": true,
              "noteMargin": 10,
              "useMaxWidth": true,
              "width": 150
            },
            "startOnLoad": false
          },
          "legend": {
            "avg": true,
            "current": true,
            "gradient": {
              "enabled": false,
              "show": true
            },
            "max": true,
            "min": true,
            "show": true,
            "total": false
          },
          "links": [
            {
              "title": "Mermaid Syntax",
              "type": "absolute",
              "url": "https://mermaidjs.github.io/?q="
            },
            {
              "title": "Mermaid Live Editor",
              "type": "absolute",
              "url": "https://mermaidjs.github.io/mermaid-live-editor/#/edit/eyJjb2RlIjoiZ3JhcGggVERcbkFbQ2hyaXN0bWFzXSAtLT58R2V0IG1vbmV5fCBCKEdvIHNob3BwaW5nKVxuQiAtLT4gQ3tMZXQgbWUgdGhpbmt9XG5DIC0tPnxPbmV8IERbTGFwdG9wXVxuQyAtLT58VHdvfCBFW2lQaG9uZV1cbkMgLS0-fFRocmVlfCBGW2ZhOmZhLWNhciBDYXJdXG4iLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9fQ"
            },
            {
              "title": "DataDog",
              "type": "absolute",
              "url": "https://www.datadoghq.com/blog/monitoring-haproxy-performance-metrics/#health-metrics"
            }
          ],
          "mappingType": 1,
          "maxDataPoints": 100,
          "maxWidth": false,
          "mermaidServiceUrl": "",
          "metricCharacterReplacements": [
            {
              "replaceWithText": "_",
              "replacementPattern": ""
            }
          ],
          "moddedSeriesVal": 0,
          "mode": "content",
          "nullPointMode": "connected",
          "seriesOverrides": [
            {
              "alias": "proxy",
              "thresholds": "1,2",
              "valueName": "current"
            },
            {
              "alias": "frontend",
              "thresholds": "1,2",
              "valueName": "current"
            },
            {
              "alias": "backend",
              "thresholds": "1,2",
              "valueName": "current"
            }
          ],
          "targets": [
            {
              "expr": "sum(up{alias=~\"frontend.*\",instance=~\".*:9101\",env=~\"$env\"})",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{frontend}}",
              "refId": "D"
            },
            {
              "expr": "sum(up{alias=~\"proxy.*\",instance=~\".*:9101\",env=~\"$env\"})",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{proxy}}",
              "refId": "E"
            },
            {
              "expr": "sum(haproxy_backend_up{alias=~\"backend.*\",instance=~\".*:9101\",backend=\"backend\"})",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{backend}}",
              "refId": "L"
            }
          ],
          "thresholds": "1,2",
          "title": "Flow",
          "type": "jdbranham-diagram-panel",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current",
          "valueOptions": [
            "avg",
            "min",
            "max",
            "total",
            "current"
          ]
        }
      ],
      "title": "Overview",
      "type": "row"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "id": 81,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "0 = DOWN\n1 = UP",
          "fill": 1,
          "gridPos": {
            "h": 7,
            "w": 12,
            "x": 0,
            "y": 2
          },
          "id": 13,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "up{alias=~\"$node\",instance=~\".*9101\"}",
              "format": "time_series",
              "instant": false,
              "intervalFactor": 1,
              "legendFormat": "UP: {{alias}}",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": false,
              "line": true,
              "op": "lt",
              "value": 1,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Proxy Status",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": "1.25",
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "",
          "fill": 1,
          "gridPos": {
            "h": 7,
            "w": 12,
            "x": 12,
            "y": 2
          },
          "id": 76,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "round((sum(avg_over_time(haproxy_up{alias=~\"$node\",instance=~\".*9101\"}[$interval])) + 0.5) /2)",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Availability",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "warning",
              "fill": false,
              "line": true,
              "op": "lt",
              "value": 1,
              "yaxis": "left"
            },
            {
              "colorMode": "critical",
              "fill": false,
              "line": true,
              "op": "gt",
              "value": 0.99,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Proxy Availability",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 3,
              "format": "percentunit",
              "label": "Availability",
              "logBase": 1,
              "max": "1.25",
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "",
          "fill": 1,
          "gridPos": {
            "h": 6,
            "w": 24,
            "x": 0,
            "y": 9
          },
          "id": 82,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "(time() - process_start_time_seconds{alias=~\"$node\",instance=~\".*9101\"})",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Uptime: {{alias}}",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": false,
              "line": true,
              "op": "lt",
              "value": 1,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Exporter (uptime)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "s",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "Status",
      "type": "row"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 2
      },
      "id": 6,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_frontend_http_responses_total = Total of HTTP responses.",
          "fill": 1,
          "gridPos": {
            "h": 17,
            "w": 24,
            "x": 0,
            "y": 3
          },
          "id": 20,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(haproxy_frontend_http_responses_total{alias=~\"$node\"}[1m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Frontend: [ {{code}} ] ({{alias}}) {{frontend}} ",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "HTTP Response Codes (Total): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_frontend_http_responses_total = Total of HTTP responses.",
          "fill": 1,
          "gridPos": {
            "h": 12,
            "w": 24,
            "x": 0,
            "y": 20
          },
          "id": 88,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Error 5xx Ratio/",
              "color": "#bf1b00"
            },
            {
              "alias": "/Error 4xx Ratio/",
              "color": "#ef843c"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum by(code,alias,frontend)(irate(haproxy_frontend_http_responses_total{alias=~\"$node\",code=\"5xx\"}[1m])) / sum by(code,alias,frontend)(irate(haproxy_frontend_http_responses_total{alias=~\"$node\"}[1m]))",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Error 5xx Ratio: {{alias}} [ {{frontend}} ]",
              "refId": "A"
            },
            {
              "expr": "sum by(code,alias,frontend)(irate(haproxy_frontend_http_responses_total{alias=~\"$node\",code=\"4xx\"}[1m])) / sum by(code,alias,frontend)(irate(haproxy_frontend_http_responses_total{alias=~\"$node\"}[1m]))",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Error 4xx Ratio: {{alias}} [ {{frontend}} ] ",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Error - HTTP Response Codes Ratio (4xx, 5xx): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "percent",
              "label": "%",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_frontend_requests_denied_total = Total of requests denied for security.\n- haproxy_frontend_request_errors_total = Total of request errors.",
          "fill": 1,
          "gridPos": {
            "h": 16,
            "w": 24,
            "x": 0,
            "y": 32
          },
          "id": 24,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Requests Denied/",
              "color": "#ef843c"
            },
            {
              "alias": "/Requests Errors/",
              "color": "#bf1b00"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "changes(haproxy_frontend_requests_denied_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Requests Denied: {{alias}}   [ {{frontend}} ]",
              "refId": "A"
            },
            {
              "expr": "changes(haproxy_frontend_request_errors_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Requests Errors: {{alias}}  [ {{frontend}} ]",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Error - Request Errors/ Requests Denied: $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- haproxy_frontend_current_session_rate = Current number of sessions per second over last elapsed second.",
          "fill": 1,
          "gridPos": {
            "h": 10,
            "w": 24,
            "x": 0,
            "y": 48
          },
          "id": 85,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_frontend_current_session_rate{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Rate: {{alias}}   [ {{frontend}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Utilization - Current Sessions/s : $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "none",
              "label": "Sessions/s",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_frontend_bytes_in_total = Current total of incoming bytes.\n- haproxy_frontend_bytes_out_total Current total of outgoing bytes.",
          "fill": 1,
          "gridPos": {
            "h": 10,
            "w": 24,
            "x": 0,
            "y": 58
          },
          "id": 21,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/OUT/",
              "color": "#1f78c1",
              "transform": "negative-Y"
            },
            {
              "alias": "/IN/",
              "color": "#508642"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "irate(haproxy_frontend_bytes_in_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "IN: {{alias}} [ {{frontend}} ]",
              "refId": "A"
            },
            {
              "expr": "irate(haproxy_frontend_bytes_out_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "OUT: {{alias}} [ {{frontend}} ]",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Utilization - IN/ OUT (Bytes): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "decbytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- Connection Utilization (%):\n   - WARNING = 60%\n   - CRITICAL = 70%\n\n- slim [LFBS]: configured session limit (maxconn from haproxy.conf)\n- scur [LFBS]: current sessions\n- stot [LFBS]: cumulative number of sessions\n- smax [LFBS]: max sessions",
          "fill": 1,
          "gridPos": {
            "h": 8,
            "w": 24,
            "x": 0,
            "y": 68
          },
          "id": 73,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_frontend_current_sessions{alias=~\"$node\"} / haproxy_frontend_limit_sessions{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{alias}}: [ {{frontend}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": false,
              "line": true,
              "op": "gt",
              "value": 0.7,
              "yaxis": "left"
            },
            {
              "colorMode": "warning",
              "fill": false,
              "line": true,
              "op": "gt",
              "value": 0.6,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Utilization - Frontend (Connections %): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "percentunit",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 0,
          "description": "- slim [LFBS]: configured session limit (maxconn from haproxy.conf)\n- scur [LFBS]: current sessions\n- stot [LFBS]: cumulative number of sessions\n- smax [LFBS]: max sessions",
          "fill": 1,
          "gridPos": {
            "h": 8,
            "w": 24,
            "x": 0,
            "y": 76
          },
          "id": 77,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Current/",
              "color": "#508642"
            },
            {
              "alias": "/Limit/",
              "color": "#0a437c"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_frontend_current_sessions{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Current: {{alias}}: [ {{frontend}} ]",
              "refId": "A"
            },
            {
              "expr": "haproxy_frontend_limit_sessions{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Limit: {{alias}}: [ {{frontend}} ]",
              "refId": "B"
            },
            {
              "expr": "haproxy_frontend_max_sessions{alias=~\"$node\"}",
              "format": "time_series",
              "hide": true,
              "intervalFactor": 1,
              "legendFormat": "Max: {{alias}}: [ {{frontend}} ]",
              "refId": "C"
            },
            {
              "expr": "haproxy_frontend_sessions_total{alias=~\"$node\"}",
              "format": "time_series",
              "hide": true,
              "intervalFactor": 1,
              "legendFormat": "Total: {{alias}}: [ {{frontend}} ]",
              "refId": "D"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Frontend (Connections: Limit, Max, Current): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "Frontend",
      "type": "row"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 3
      },
      "id": 4,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- haproxy_backend_up = Current health status of the backend (1 = UP, 0 = DOWN).",
          "fill": 1,
          "gridPos": {
            "h": 17,
            "w": 8,
            "x": 0,
            "y": 4
          },
          "id": 26,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_backend_up{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "UP: {{alias}} [ {{backend}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": false,
              "line": true,
              "op": "lt",
              "value": 1,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Backend Status: $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": "1.25",
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- haproxy_backend_weight = Total weight of the servers in the backend.",
          "fill": 1,
          "gridPos": {
            "h": 17,
            "w": 8,
            "x": 8,
            "y": 4
          },
          "id": 43,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_backend_weight{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Weight: {{alias}} [ {{backend}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": false,
              "line": true,
              "op": "lt",
              "value": 1,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Backend Weight: $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- haproxy_backend_current_server = Current number of active servers",
          "fill": 1,
          "gridPos": {
            "h": 17,
            "w": 8,
            "x": 16,
            "y": 4
          },
          "id": 39,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_backend_current_server{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Active: {{alias}} [ {{backend}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": false,
              "line": true,
              "op": "lt",
              "value": 1,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Backend Active Servers: $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "haproxy_backend_http_responses_total = Total of HTTP responses.",
          "fill": 1,
          "gridPos": {
            "h": 20,
            "w": 24,
            "x": 0,
            "y": 21
          },
          "id": 37,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(haproxy_backend_http_responses_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "HTTP: {{alias}} [ {{code}} ] ( {{backend}} ) ",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "HTTP Response Codes (Total): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- haproxy_backend_connection_errors_total = Total of connection errors.\n-  haproxy_backend_response_errors_total Total of response errors.",
          "fill": 1,
          "gridPos": {
            "h": 9,
            "w": 24,
            "x": 0,
            "y": 41
          },
          "id": 49,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Connection Errors/",
              "color": "#bf1b00"
            },
            {
              "alias": "/Response Errors/",
              "color": "#ef843c"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "changes(haproxy_backend_connection_errors_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Connection Errors: {{alias}} [ {{backend}} ]",
              "refId": "C"
            },
            {
              "expr": "changes(haproxy_backend_response_errors_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Response Errors: {{alias}} [ {{backend}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": false,
              "line": true,
              "op": "gt",
              "value": 0,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Error - Response Errors/ Connection Errors: $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_backend_bytes_in_total = Current total of incoming bytes.\n- haproxy_backend_bytes_out_total Current total of outgoing bytes.",
          "fill": 1,
          "gridPos": {
            "h": 10,
            "w": 24,
            "x": 0,
            "y": 50
          },
          "id": 25,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/IN/",
              "color": "#508642"
            },
            {
              "alias": "/OUT/",
              "color": "#0a437c",
              "transform": "negative-Y"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "irate(haproxy_backend_bytes_in_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "IN: {{alias}} [ {{backend}} ]",
              "refId": "A"
            },
            {
              "expr": "irate(haproxy_backend_bytes_out_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "OUT: {{alias}} [ {{backend}} ]",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Utilization - IN/ OUT (Bytes): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "decbytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "decbytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_backend_retry_warnings_total = Total of retry warnings.\n- haproxy_backend_redispatch_warnings_total = Total of redispatch warnings.",
          "fill": 1,
          "gridPos": {
            "h": 16,
            "w": 24,
            "x": 0,
            "y": 60
          },
          "id": 29,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(haproxy_backend_redispatch_warnings_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Redispatch Warnings: {{alias}} [ {{backend}} ]",
              "refId": "B"
            },
            {
              "expr": "increase(haproxy_backend_retry_warnings_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Retry Warnings: {{alias}} [ {{backend}} ]",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Availability - Redispatch Warnings/ Retry Warnings: $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_backend_max_queue = Maximum observed number of queued requests not assigned to any server.\n- haproxy_backend_current_queue = Current number of queued requests not assigned to any server.",
          "fill": 1,
          "gridPos": {
            "h": 13,
            "w": 24,
            "x": 0,
            "y": 76
          },
          "id": 31,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Max Queue/",
              "color": "#0a437c"
            },
            {
              "alias": "/Current Queue/",
              "color": "#508642"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_backend_max_queue{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Max Queue: {{alias}}  [ {{backend}} ]",
              "refId": "A"
            },
            {
              "expr": "haproxy_backend_current_queue{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Current Queue: {{alias}}  [ {{backend}} ]",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Saturation - Number of queued requests not assigned to any server (Current/ Maximum): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_backend_http_connect_time_average_seconds Avg. HTTP connect time for last 1024 successful connections.\n- haproxy_backend_http_queue_time_average_seconds Avg. HTTP queue time for last 1024 successful connections.\n- haproxy_backend_http_response_time_average_seconds Avg. HTTP response time for last 1024 successful connections.\n- haproxy_backend_http_total_time_average_seconds Avg. HTTP total time for last 1024 successful connections.",
          "fill": 1,
          "gridPos": {
            "h": 18,
            "w": 24,
            "x": 0,
            "y": 89
          },
          "id": 40,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": null,
            "sortDesc": null,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Connect Time/",
              "color": "#614d93"
            },
            {
              "alias": "/Queue Time/",
              "color": "#0a437c"
            },
            {
              "alias": "/Response Time/",
              "color": "#508642"
            },
            {
              "alias": "/Total Time/",
              "color": "#6d1f62"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_backend_http_connect_time_average_seconds{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Connect Time: {{alias}} [ {{backend}} ]",
              "refId": "A"
            },
            {
              "expr": "haproxy_backend_http_queue_time_average_seconds{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Queue Time: {{alias}} [ {{backend}} ]",
              "refId": "B"
            },
            {
              "expr": "haproxy_backend_http_response_time_average_seconds{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Response Time: {{alias}} [ {{backend}} ]",
              "refId": "C"
            },
            {
              "expr": "haproxy_backend_http_total_time_average_seconds{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Total Time: {{alias}} [ {{backend}} ]",
              "refId": "D"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Throughput - HTTP Average Time (s) for (Connect/ Response/ Queue/ Total): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "s",
              "label": "Seconds",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- Connection Utilization (%):\n   - WARNING = 60%\n   - CRITICAL = 70%\n\n- slim [LFBS]: configured session limit (maxconn from haproxy.conf)\n- scur [LFBS]: current sessions\n- stot [LFBS]: cumulative number of sessions\n- smax [LFBS]: max sessions",
          "fill": 1,
          "gridPos": {
            "h": 8,
            "w": 24,
            "x": 0,
            "y": 107
          },
          "id": 74,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_backend_current_sessions{alias=~\"$node\"} / haproxy_backend_limit_sessions{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{alias}}: [ {{backend}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": false,
              "line": true,
              "op": "gt",
              "value": 0.7,
              "yaxis": "left"
            },
            {
              "colorMode": "warning",
              "fill": false,
              "line": true,
              "op": "gt",
              "value": 0.6,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Utilization - Backend (Connections %): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "percentunit",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- haproxy_backend_current_session_rate = Current number of sessions per second over last elapsed second.",
          "fill": 1,
          "gridPos": {
            "h": 12,
            "w": 24,
            "x": 0,
            "y": 115
          },
          "id": 86,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_backend_current_session_rate{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Rate: {{alias}}   [ {{backend}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Utilization - Current Sessions/s : $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "none",
              "label": "Sessions/s",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 0,
          "description": "- slim [LFBS]: configured session limit (maxconn from haproxy.conf)\n- scur [LFBS]: current sessions\n- stot [LFBS]: cumulative number of sessions\n- smax [LFBS]: max sessions",
          "fill": 1,
          "gridPos": {
            "h": 8,
            "w": 24,
            "x": 0,
            "y": 127
          },
          "id": 78,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Current/",
              "color": "#508642"
            },
            {
              "alias": "/Limit/",
              "color": "#0a437c"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_backend_current_sessions{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Current: {{alias}}: [ {{backend}} ]",
              "refId": "A"
            },
            {
              "expr": "haproxy_backend_limit_sessions{alias=~\"$node\"}",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "Limit: {{alias}}: [ {{backend}} ]",
              "refId": "B"
            },
            {
              "expr": "haproxy_backend_max_sessions{alias=~\"$node\"}",
              "format": "time_series",
              "hide": true,
              "intervalFactor": 1,
              "legendFormat": "Max: {{alias}}: [ {{backend}} ]",
              "refId": "C"
            },
            {
              "expr": "haproxy_backend_sessions_total{alias=~\"$node\"}",
              "format": "time_series",
              "hide": true,
              "intervalFactor": 1,
              "legendFormat": "Total: {{alias}}: [ {{backend}} ]",
              "refId": "D"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Backend (Connections: Limit, Max, Current): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_backend_http_responses_total = Total of HTTP responses.",
          "fill": 1,
          "gridPos": {
            "h": 12,
            "w": 24,
            "x": 0,
            "y": 135
          },
          "id": 89,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Error 5xx/",
              "color": "#bf1b00"
            },
            {
              "alias": "/Error 4xx/",
              "color": "#ef843c"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum by(code,alias,backend)(irate(haproxy_backend_http_responses_total{alias=~\"$node\",code=\"5xx\"}[1m])) / sum by(code,alias,backend)(irate(haproxy_backend_http_responses_total{alias=~\"$node\"}[1m]))",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Error 5xx Ratio: {{alias}} [ {{backend}}  ]",
              "refId": "A"
            },
            {
              "expr": "sum by(code,alias,backend)(irate(haproxy_backend_http_responses_total{alias=~\"$node\",code=\"4xx\"}[1m])) / sum by(code,alias,backend)(irate(haproxy_backend_http_responses_total{alias=~\"$node\"}[1m]))",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Error 4xx Ratio: {{alias}} [ {{backend}}  ]",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Error - HTTP Response Codes Ratio (4xx, 5xx): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "percent",
              "label": "%",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "Backend",
      "type": "row"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 4
      },
      "id": 15,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- haproxy_server_up = Current health status of the server (1 = UP, 0 = DOWN).",
          "fill": 1,
          "gridPos": {
            "h": 17,
            "w": 8,
            "x": 0,
            "y": 5
          },
          "id": 50,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_server_up{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "UP: {{alias}} [ {{server}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Server Status: $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- haproxy_server_weight = Current weight of the server.",
          "fill": 1,
          "gridPos": {
            "h": 17,
            "w": 8,
            "x": 8,
            "y": 5
          },
          "id": 38,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_server_weight{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Weight: {{alias}} [ {{server}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Server Weight: $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_server_downtime_seconds_total = Total downtime in seconds.",
          "fill": 1,
          "gridPos": {
            "h": 17,
            "w": 8,
            "x": 16,
            "y": 5
          },
          "id": 52,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_server_downtime_seconds_total{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Downtime: {{alias}}  [ {{server}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Server Downtime (s): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "s",
              "label": "Seconds",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_server_check_duration_milliseconds = Previously run health check duration, in milliseconds",
          "fill": 1,
          "gridPos": {
            "h": 15,
            "w": 12,
            "x": 0,
            "y": 22
          },
          "id": 53,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_server_check_duration_milliseconds{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Health Check: {{alias}} [ {{server}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Health Check Duration (ms): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "ms",
              "label": "ms",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_server_check_failures_total = Total number of failed health checks.",
          "fill": 1,
          "gridPos": {
            "h": 15,
            "w": 12,
            "x": 12,
            "y": 22
          },
          "id": 84,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(haproxy_server_check_failures_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Failures Check: {{alias}} [ {{server}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Failed Health Checks: $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- haproxy_server_current_session_rate = Current number of sessions per second over last elapsed second.",
          "fill": 1,
          "gridPos": {
            "h": 12,
            "w": 24,
            "x": 0,
            "y": 37
          },
          "id": 87,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_server_current_session_rate{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Rate: {{alias}}   [ {{server}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Utilization - Current Sessions/s : $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "none",
              "label": "Sessions/s",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_backend_http_responses_total = Total of HTTP responses.",
          "fill": 1,
          "gridPos": {
            "h": 12,
            "w": 24,
            "x": 0,
            "y": 49
          },
          "id": 90,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Error 5xx/",
              "color": "#bf1b00"
            },
            {
              "alias": "/Error 4xx/",
              "color": "#ef843c"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum by(code,alias,server)(irate(haproxy_server_http_responses_total{alias=~\"$node\",code=\"5xx\"}[1m])) / sum by(code,alias,server)(irate(haproxy_server_http_responses_total{alias=~\"$node\"}[1m]))",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Error 5xx Ratio: {{alias}} [ {{server}}  ]",
              "refId": "A"
            },
            {
              "expr": "sum by(code,alias,server)(irate(haproxy_server_http_responses_total{alias=~\"$node\",code=\"4xx\"}[1m])) / sum by(code,alias,server)(irate(haproxy_server_http_responses_total{alias=~\"$node\"}[1m]))",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Error 4xx Ratio: {{alias}} [ {{server}}  ]",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Error - HTTP Response Codes Ratio (4xx, 5xx): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "percent",
              "label": "%",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_server_http_responses_total = Total of HTTP responses.",
          "fill": 1,
          "gridPos": {
            "h": 14,
            "w": 24,
            "x": 0,
            "y": 61
          },
          "id": 44,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(haproxy_server_http_responses_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "HTTP: {{alias}} [ {{code}} ] ( {{server}} )",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "HTTP Response Codes (Total): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_server_bytes_out_total = Current total of outgoing bytes.\n- haproxy_server_bytes_in_total = Current total of incoming bytes.",
          "fill": 1,
          "gridPos": {
            "h": 8,
            "w": 24,
            "x": 0,
            "y": 75
          },
          "id": 41,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/IN/",
              "color": "#629e51"
            },
            {
              "alias": "/OUT/",
              "color": "#0a437c",
              "transform": "negative-Y"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "irate(haproxy_server_bytes_in_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "IN: {{alias}}  [ {{backend}} ]",
              "refId": "A"
            },
            {
              "expr": "irate(haproxy_server_bytes_out_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "OUT: {{alias}}  [ {{backend}} ]",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Throughput IN/ OUT (Bytes): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "decbytes",
              "label": "Bytes",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_server_retry_warnings_total = Total of retry warnings.\n-  haproxy_server_response_errors_total = Total of response errors.\n- haproxy_server_redispatch_warnings_total = Total of redispatch warnings.",
          "fill": 1,
          "gridPos": {
            "h": 14,
            "w": 24,
            "x": 0,
            "y": 83
          },
          "id": 47,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(haproxy_server_response_errors_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Response Errors: {{alias}} [ {{server}} ]",
              "refId": "A"
            },
            {
              "expr": "increase(haproxy_server_redispatch_warnings_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Redispatch Warnings: {{alias}} [ {{server}} ]",
              "refId": "B"
            },
            {
              "expr": "increase(haproxy_server_retry_warnings_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Retry Warnings: {{alias}} [ {{server}} ]",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Response Errors/ Redispatch Warnings/ Retry Warnings: $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- haproxy_server_connection_errors_total = Total of connection errors.",
          "fill": 1,
          "gridPos": {
            "h": 9,
            "w": 24,
            "x": 0,
            "y": 97
          },
          "id": 83,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Connection Errors/",
              "color": "#bf1b00"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "changes(haproxy_server_connection_errors_total{alias=~\"$node\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Connection Errors: {{alias}} [ {{server}} ]",
              "refId": "C"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": false,
              "line": true,
              "op": "gt",
              "value": 0,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Errors Connection: $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "description": "- haproxy_server_current_queue = Current number of queued requests assigned to this server.\n- haproxy_server_max_queue = Maximum observed number of queued requests assigned to this server.",
          "fill": 1,
          "gridPos": {
            "h": 8,
            "w": 24,
            "x": 0,
            "y": 106
          },
          "id": 48,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Max Queue/",
              "color": "#0a437c"
            },
            {
              "alias": "/Current Queue/",
              "color": "#508642"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "auto",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "expr": "haproxy_server_max_queue{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Max Queue: {{alias}} [ {{backend}} ]",
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "type": "count"
                }
              ],
              "refId": "A",
              "timeField": "@timestamp"
            },
            {
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "auto",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "expr": "haproxy_server_current_queue{alias=~\"$node\"}",
              "format": "time_series",
              "hide": false,
              "intervalFactor": 1,
              "legendFormat": "Current Queue: {{alias}} [ {{backend}} ]",
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "type": "count"
                }
              ],
              "refId": "B",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Number of queued requests assigned to this server (Current/ Maximum): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 1,
          "description": "- Connection Utilization (%):\n   - WARNING = 60%\n   - CRITICAL = 70%\n\n- slim [LFBS]: configured session limit (maxconn from haproxy.conf)\n- scur [LFBS]: current sessions\n- stot [LFBS]: cumulative number of sessions\n- smax [LFBS]: max sessions",
          "fill": 1,
          "gridPos": {
            "h": 6,
            "w": 24,
            "x": 0,
            "y": 114
          },
          "id": 75,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_server_current_sessions{alias=~\"$alias\"} / haproxy_server_limit_sessions{alias=~\"$alias\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{alias}}: [ {{backend}} ]",
              "refId": "A"
            }
          ],
          "thresholds": [
            {
              "colorMode": "critical",
              "fill": false,
              "line": true,
              "op": "gt",
              "value": 0.7,
              "yaxis": "left"
            },
            {
              "colorMode": "warning",
              "fill": false,
              "line": true,
              "op": "gt",
              "value": 0.6,
              "yaxis": "left"
            }
          ],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Server (Connections Utilization %): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "percentunit",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "decimals": 0,
          "description": "- slim [LFBS]: configured session limit (maxconn from haproxy.conf)\n- scur [LFBS]: current sessions\n- stot [LFBS]: cumulative number of sessions\n- smax [LFBS]: max sessions",
          "fill": 1,
          "gridPos": {
            "h": 8,
            "w": 24,
            "x": 0,
            "y": 120
          },
          "id": 79,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": "max",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null as zero",
          "paceLength": 10,
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "/Current/",
              "color": "#508642"
            },
            {
              "alias": "/Limit/",
              "color": "#0a437c"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "haproxy_server_current_sessions{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Current: {{alias}}: [ {{server}} ]",
              "refId": "A"
            },
            {
              "expr": "haproxy_server_limit_sessions{alias=~\"$node\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Limit: {{alias}}: [ {{server}} ]",
              "refId": "B"
            },
            {
              "expr": "haproxy_server_max_sessions{alias=~\"$node\"}",
              "format": "time_series",
              "hide": true,
              "intervalFactor": 1,
              "legendFormat": "Max: {{alias}}: [ {{server}} ]",
              "refId": "C"
            },
            {
              "expr": "haproxy_server_sessions_total{alias=~\"$node\"}",
              "format": "time_series",
              "hide": true,
              "intervalFactor": 1,
              "legendFormat": "Total: {{alias}}: [ {{server}} ]",
              "refId": "D"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Server (Connections: Limit, Max, Current): $node",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "Servers",
      "type": "row"
    }
  ],
  "refresh": false,
  "schemaVersion": 17,
  "style": "dark",
  "tags": [
    "fchiorascu@gmail.com",
    "haproxy",
    "proxy",
    "reverseproxy",
    "prometheus"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "text": "Prometheus",
          "value": "Prometheus"
        },
        "hide": 0,
        "label": "Datasource",
        "name": "datasource",
        "options": [],
        "query": "prometheus",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$datasource",
        "definition": "label_values(env)",
        "hide": 0,
        "includeAll": false,
        "label": "Env",
        "multi": false,
        "name": "env",
        "options": [],
        "query": "label_values(env)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "auto": true,
        "auto_count": 30,
        "auto_min": "10s",
        "current": {
          "text": "5m",
          "value": "5m"
        },
        "hide": 0,
        "label": "Interval",
        "name": "interval",
        "options": [
          {
            "selected": false,
            "text": "auto",
            "value": "$__auto_interval_interval"
          },
          {
            "selected": false,
            "text": "30s",
            "value": "30s"
          },
          {
            "selected": false,
            "text": "1m",
            "value": "1m"
          },
          {
            "selected": true,
            "text": "5m",
            "value": "5m"
          },
          {
            "selected": false,
            "text": "10m",
            "value": "10m"
          },
          {
            "selected": false,
            "text": "15m",
            "value": "15m"
          },
          {
            "selected": false,
            "text": "30m",
            "value": "30m"
          },
          {
            "selected": false,
            "text": "1h",
            "value": "1h"
          },
          {
            "selected": false,
            "text": "3h",
            "value": "3h"
          },
          {
            "selected": false,
            "text": "6h",
            "value": "6h"
          },
          {
            "selected": false,
            "text": "9h",
            "value": "9h"
          },
          {
            "selected": false,
            "text": "12h",
            "value": "12h"
          },
          {
            "selected": false,
            "text": "1d",
            "value": "1d"
          },
          {
            "selected": false,
            "text": "7d",
            "value": "7d"
          },
          {
            "selected": false,
            "text": "14d",
            "value": "14d"
          },
          {
            "selected": false,
            "text": "30d",
            "value": "30d"
          }
        ],
        "query": "30s,1m,5m,10m,15m,30m,1h,3h,6h,9h,12h,1d,7d,14d,30d   ",
        "refresh": 2,
        "skipUrlSync": false,
        "type": "interval"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$datasource",
        "definition": "label_values(haproxy_up{instance=~\".*:9101\",env=\"$env\"},alias)",
        "hide": 0,
        "includeAll": true,
        "label": "LoadBalancer",
        "multi": true,
        "name": "node",
        "options": [],
        "query": "label_values(haproxy_up{instance=~\".*:9101\",env=\"$env\"},alias)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$datasource",
        "definition": "label_values(haproxy_frontend_bytes_in_total{alias=~\"$node\"},frontend)",
        "hide": 0,
        "includeAll": false,
        "label": "Frontend",
        "multi": false,
        "name": "frontend",
        "options": [],
        "query": "label_values(haproxy_frontend_bytes_in_total{alias=~\"$node\"},frontend)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$datasource",
        "definition": "label_values(haproxy_backend_bytes_in_total{alias=~\"$node\"},backend)",
        "hide": 0,
        "includeAll": false,
        "label": "Backend",
        "multi": false,
        "name": "backend",
        "options": [],
        "query": "label_values(haproxy_backend_bytes_in_total{alias=~\"$node\"},backend)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$datasource",
        "definition": "label_values(haproxy_server_bytes_in_total{alias=~\"$node\"},server)",
        "hide": 0,
        "includeAll": false,
        "label": "Server",
        "multi": false,
        "name": "server",
        "options": [],
        "query": "label_values(haproxy_server_bytes_in_total{alias=~\"$node\"},server)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$datasource",
        "definition": "label_values(haproxy_exporter_build_info{env=\"$env\"},version)",
        "hide": 0,
        "includeAll": false,
        "label": "Exporter Version",
        "multi": false,
        "name": "version",
        "options": [],
        "query": "label_values(haproxy_exporter_build_info{env=\"$env\"},version)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-5m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "HAProxy (Proxy, ReverseProxy: Frontend, Backend, Servers)",
  "uid": "Vl0TjMumz",
  "version": 5
}