{
  "annotations":{"list":[{"builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations & Alerts","target":{"limit":100,"matchAny":false,"tags":[],"type":"dashboard"},"type":"dashboard"}]},
  "author":"Ruohang Feng (rh@vonng.com)",
  "description":"HAProxy Instance",
  "editable":true,
  "fiscalYearStartMonth":0,
  "graphTooltip":0,
  "id":null,
  "license":"https://pigsty.io/docs/about/license/",
  "links":[{"asDropdown":true,"icon":"external link","includeVars":true,"keepTime":true,"tags":["Pigsty","NODE"],"targetBlank":false,"title":"NODE","tooltip":"","type":"dashboards","url":""}],
  "panels":[
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":0},"id":214,"panels":[],"title":"Overview","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"mappings":[],"max":2.5,"min":0,"thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0}]}},
        "overrides":[
          { "matcher":{"id":"byName","options":"Cluster"}   ,"properties":[{"id":"displayName","value":"${cls}"},{"id":"mappings","value":[{"options":{"1":{"index":0,"text":"Cluster"}},"type":"value"}]},{"id":"links","value":[{"title":"Node Cluster : ${cls}","url":"/d/node-cluster?var-cls=${cls}&${__url_time_range}"}]}]                        },
          { "matcher":{"id":"byName","options":"Instance"}  ,"properties":[{"id":"displayName","value":"${ins}"},{"id":"mappings","value":[{"options":{"1":{"index":0,"text":"Instance"}},"type":"value"}]},{"id":"links","value":[{"title":"PGSQL Proxy : ${ins}","url":"/d/pgsql-proxy?var-ins=$ins&${__url_time_range}"}]}]                           },
          { "matcher":{"id":"byName","options":"IP"}        ,"properties":[{"id":"mappings","value":[{"options":{"1":{"index":0,"text":"Node IP"}},"type":"value"}]},{"id":"displayName","value":"${ip}"},{"id":"links","value":[{"title":"Node Instance : ${ip}","url":"/d/node-instance?var-id=${ip}&${__url_time_range}"}]}]                          },
          { "matcher":{"id":"byName","options":"Name"}      ,"properties":[{"id":"displayName","value":"${node}"},{"id":"mappings","value":[{"options":{"1":{"index":0,"text":"Hostname"}},"type":"value"}]},{"id":"links","value":[{"title":"Node Instance : ${node}","url":"/d/node-instance?var-id=${node}&${__url_time_range}"}]}]                   },
          { "matcher":{"id":"byName","options":"Admin Page"},"properties":[{"id":"displayName","targetBlank":true,"value":"/haproxy/${ins}/"},{"id":"mappings","value":[{"options":{"1":{"index":0,"text":"Admin Page"}},"type":"value"}]},{"id":"links","value":[{"targetBlank":true,"title":"HAProxy Admin Page : ${ins}","url":"/haproxy/${ins}/"}]}] }
        ]
      },
      "gridPos":{"h":7,"w":6,"x":0,"y":1},
      "id":225,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"1","hide":false,"instant":true,"interval":"","legendFormat":"Instance"  ,"queryType":"measurements","refId":"B" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"1","hide":false,"instant":true,"interval":"","legendFormat":"Cluster"   ,"queryType":"measurements","refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"1","hide":false,"instant":true,"interval":"","legendFormat":"IP"        ,"queryType":"measurements","refId":"C" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"1","hide":false,"instant":true,"interval":"","legendFormat":"Name"      ,"queryType":"measurements","refId":"D" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"1","hide":false,"instant":true,"interval":"","legendFormat":"Admin Page","queryType":"measurements","refId":"E" }
      ],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"All haproxy instances in this cluster ${cls}",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"mappings":[],"max":1.2,"min":0,"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}},
        "overrides":[
          {"matcher":{"id":"byName","options":"Proxy"},"properties":[{"id":"links","value":[{"title":"PGSQL Proxy ${__data.fields.Proxy}","url":"/d/pgsql-proxy?var-ins=${__data.fields.Proxy}&${__url_time_range}"}]},{"id":"custom.width"}]},
          {
            "matcher":{"id":"byName","options":"Session"},
            "properties":[
              { "id":"mappings"          ,"value":[{"options":{"0":{"color":"#3e668f","index":0,"text":"0"}},"type":"value"},{"options":{"from":1,"result":{"color":"#346f36cc","index":1},"to":9999999},"type":"range"},{"options":{"match":"null+nan","result":{"color":"gray","index":2,"text":"N/A"}},"type":"special"}] },
              { "id":"custom.cellOptions","value":{"mode":"basic","type":"color-background"}                                                                                                                                                                                                                                 },
              { "id":"custom.width"      ,"value":70                                                                                                                                                                                                                                                                         }
            ]
          },{
            "matcher":{"id":"byName","options":"Route"},
            "properties":[
              { "id":"mappings"          ,"value":[{"options":{"0":{"color":"#3e668f","index":1,"text":"0"}},"type":"value"},{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"N/A"}},"type":"special"},{"options":{"from":1,"result":{"color":"#346f36cc","index":2},"to":9999999},"type":"range"}] },
              { "id":"custom.cellOptions","value":{"mode":"basic","type":"color-background"}                                                                                                                                                                                                                                 },
              { "id":"custom.width"      ,"value":60                                                                                                                                                                                                                                                                         }
            ]
          },
          {"matcher":{"id":"byName","options":"Admin"},"properties":[{"id":"custom.width","value":135},{"id":"links","value":[{"targetBlank":true,"title":"HAProxy Admin Page : ${__data.fields.Proxy}","url":"/haproxy/${__data.fields.Proxy}"}]}]},
          {
            "matcher":{"id":"byName","options":"Load"},
            "properties":[
              { "id":"unit"              ,"value":"percentunit"                                                                                                                                                                                                                                           },
              { "id":"custom.width"      ,"value":60                                                                                                                                                                                                                                                      },
              { "id":"thresholds"        ,"value":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":0.1},{"color":"#fcdb72","value":0.3},{"color":"#f79f64","value":0.5},{"color":"red","value":0.7},{"color":"#b783af","value":0.9},{"color":"text","value":0.99}]} },
              { "id":"custom.cellOptions","value":{"type":"color-text"}                                                                                                                                                                                                                                   }
            ]
          },
          {"matcher":{"id":"byName","options":"IP"},"properties":[{"id":"custom.width","value":110},{"id":"links","value":[{"title":"Node Instance : ${__data.fields.IP}","url":"/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}"}]}]},
          {"matcher":{"id":"byName","options":"Alive"},"properties":[{"id":"mappings","value":[{"options":{"0":{"color":"#cc4637d9","index":0,"text":"DOWN"},"1":{"color":"#346f36cc","index":1,"text":"UP"}},"type":"value"}]},{"id":"custom.cellOptions","value":{"type":"color-background"}},{"id":"custom.width","value":80}]}
        ]
      },
      "gridPos":{"h":7,"w":9,"x":6,"y":1},
      "id":226,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[{"desc":false,"displayName":"Proxy"}]},
      "pluginVersion":"12.3.0",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"min by (ins) (haproxy_up{cls=\"$cls\"})"                                      ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"D" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum without (proxy) (haproxy_backend_current_sessions{cls=\"$cls\"})"         ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum by (ins,ip) (haproxy_server_status{cls=\"$cls\", state=\"UP\"})"          ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"B" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"max by (ins) ((100 - haproxy_process_idle_time_percent{cls=\"$cls\"}))  / 100","format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"C" }
      ],
      "transformations":[
        {"id":"seriesToColumns","options":{"byField":"ins"}},
        {
          "id":"organize",
          "options":{
            "excludeByName":{"Time":true,"Time 1":true,"Time 2":true,"Time 3":true,"cls":true,"ip":false,"ip 2":true,"job":true},
            "indexByName":{"Time 1":6,"Time 2":7,"Time 3":11,"Value #A":5,"Value #B":4,"Value #D":0,"cls":8,"ins":1,"instance":3,"ip 1":2,"ip 2":10,"job":9},
            "renameByName":{"Value":"Session","Value #A":"Session","Value #B":"Route","Value #C":"Load","Value #D":"Alive","ins":"Proxy","instance":"Admin","ip":"IP","ip 1":"IP"}
          }
        }
      ],
      "type":"table"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "custom":{"axisPlacement":"auto","fillOpacity":60,"hideFrom":{"legend":false,"tooltip":false,"viz":false},"insertNulls":false,"lineWidth":0,"spanNulls":false},
          "links":[{"title":"PGSQL Service : ${__field.labels.proxy}","url":"/d/pgsql-service?var-svc=${__field.labels.proxy}&${__url_time_range}"}],
          "mappings":[{"options":{"match":"null+nan","result":{"color":"#808080","index":1}},"type":"special"}],
          "thresholds":{"mode":"absolute","steps":[{"color":"#cc4637d9","value":0},{"color":"#346f36cc","value":1}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":7,"w":9,"x":15,"y":1},
      "id":227,
      "options":{"alignValue":"left","legend":{"displayMode":"list","placement":"bottom","showLegend":false},"mergeValues":true,"rowHeight":0.9,"showValue":"never","tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","expr":"sum by (cls,proxy) (haproxy_server_status{cls=\"$cls\", state=\"UP\"}) # > bool 0","instant":false,"legendFormat":"{{ proxy }}","range":true,"refId":"A"}],
      "type":"state-timeline"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{"defaults":{"mappings":[{"id":0,"op":"=","text":"N/A","type":1,"value":"null"}],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},"unit":"s"},"overrides":[]},
      "gridPos":{"h":3,"w":3,"x":0,"y":8},
      "id":170,
      "maxDataPoints":100,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"exemplar":false,"expr":"time() - haproxy_process_start_time_seconds{ins=\"$ins\"}","interval":"","intervalFactor":2,"legendFormat":"Uptime","refId":"A","step":1800}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{"defaults":{"mappings":[{"id":0,"op":"=","text":"N/A","type":1,"value":"null"}],"max":100,"min":0,"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},"unit":"percent"},"overrides":[]},
      "gridPos":{"h":3,"w":3,"x":3,"y":8},
      "id":171,
      "maxDataPoints":100,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"exemplar":false,"expr":"100 - haproxy_process_idle_time_percent{ins=\"$ins\"}","interval":"","intervalFactor":2,"legendFormat":"Busy","refId":"A","step":1800}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{"defaults":{"mappings":[{"id":0,"op":"=","text":"N/A","type":1,"value":"null"}],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},"unit":"none"},"overrides":[]},
      "gridPos":{"h":3,"w":3,"x":6,"y":8},
      "id":215,
      "maxDataPoints":100,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"exemplar":false,"expr":"count(sum by (proxy) (haproxy_backend_current_sessions{ins=\"$ins\", proxy!=\"stats\"}))","instant":true,"interval":"","intervalFactor":2,"legendFormat":"Service","refId":"A","step":1800}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{"defaults":{"mappings":[{"id":0,"op":"=","text":"N/A","type":1,"value":"null"}],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},"unit":"none"},"overrides":[]},
      "gridPos":{"h":3,"w":3,"x":9,"y":8},
      "id":216,
      "maxDataPoints":100,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"exemplar":false,"expr":"count(sum by (server)(haproxy_server_status{ins=\"$ins\"}))","instant":true,"interval":"","intervalFactor":2,"legendFormat":"Server","refId":"A","step":1800}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{"defaults":{"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}},"overrides":[]},
      "gridPos":{"h":3,"w":3,"x":12,"y":8},
      "id":174,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"exemplar":false,"expr":"sum(haproxy_backend_current_sessions{ins=\"$ins\", proxy!=\"stats\"})","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Backends","metric":"","refId":"B","step":30}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{"defaults":{"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}},"overrides":[]},
      "gridPos":{"h":3,"w":3,"x":15,"y":8},
      "id":175,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum(haproxy_frontend_current_sessions{ins=\"$ins\"})","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Frontend","metric":"","range":true,"refId":"B","step":30}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{"defaults":{"mappings":[{"id":0,"op":"=","text":"N/A","type":1,"value":"null"}],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},"unit":"none"},"overrides":[]},
      "gridPos":{"h":3,"w":3,"x":18,"y":8},
      "id":172,
      "maxDataPoints":100,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"exemplar":false,"expr":"haproxy_process_nbproc{ins=\"$ins\"}","instant":true,"interval":"","intervalFactor":2,"legendFormat":"BG Proc","refId":"A","step":1800}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{"defaults":{"mappings":[{"id":0,"op":"=","text":"N/A","type":1,"value":"null"}],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},"unit":"none"},"overrides":[]},
      "gridPos":{"h":3,"w":3,"x":21,"y":8},
      "id":149,
      "maxDataPoints":100,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.0",
      "targets":[{"exemplar":false,"expr":"haproxy_process_current_tasks{ins=\"$ins\"}","interval":"","intervalFactor":2,"legendFormat":"Task","refId":"A","step":1800}],
      "type":"stat"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":11},"id":221,"panels":[],"title":"Status","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":50,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"never",
            "showValues":false,
            "spanNulls":true,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "max":2,
          "min":-2,
          "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]},
          "unit":"short"
        },
        "overrides":[]
      },
      "gridPos":{"h":5,"w":12,"x":0,"y":12},
      "id":85,
      "options":{"legend":{"calcs":["min"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"exemplar":false,"expr":"count(haproxy_frontend_status{ins=\"$ins\", proxy!=\"stats\"} == 1)","hide":false,"interval":"","intervalFactor":2,"legendFormat":"Frontends Up","refId":"A","step":60},{"exemplar":false,"expr":"- count(haproxy_backend_status{ins=\"$ins\", proxy!=\"stats\"} == 1)","interval":"","intervalFactor":2,"legendFormat":"Backends Up","refId":"B","step":60}],
      "title":"Service Status",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":40,
            "gradientMode":"opacity",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"never",
            "showValues":false,
            "spanNulls":true,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "decimals":0,
          "mappings":[],
          "max":1,
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0},{"color":"red","value":80}]},
          "unit":"short"
        },
        "overrides":[]
      },
      "gridPos":{"h":5,"w":12,"x":12,"y":12},
      "id":187,
      "options":{"legend":{"calcs":["min"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"max by (server) (haproxy_server_status{ins=\"$ins\", proxy!=\"stats\"})","hide":false,"interval":"","intervalFactor":2,"legendFormat":"{{ server }}","refId":"A","step":60}],
      "title":"Server Status",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"Service map tells whether a server can be used as a specific service/role/svc.\ne.g Offline marks this server can be used as offline server",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"mode":"gradient","type":"color-background"},"footer":{"reducers":[]},"inspect":false,"minWidth":60},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#e3e3e3e0","value":0},{"color":"#e3e3e3e0","value":0},{"color":"#e02f44bf","value":1}]}},
        "overrides":[{"matcher":{"id":"byName","options":"Server"},"properties":[{"id":"unit","value":"string"},{"id":"links","value":[{"title":"PGSQL Instance for ${__data.fields.Server}","url":"/d/pgsql-instance?var-ins=${__data.fields.Server}&${__url_time_range}"}]},{"id":"custom.minWidth","value":100}]}]
      },
      "gridPos":{"h":8,"w":24,"x":0,"y":17},
      "id":218,
      "options":{"cellHeight":"sm","showHeader":true,"sortBy":[{"desc":false,"displayName":"Server"}]},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"max by (proxy,server) (\n    haproxy_server_current_sessions{cls=\"$cls\"}\n)","format":"time_series","instant":true,"interval":"","legendFormat":"","refId":"A"}],
      "title":"Route Matrix",
      "transformations":[
        { "id":"labelsToFields","options":{"valueLabel":"proxy"}                                                                                                                                                                                                                                                                                           },
        { "id":"merge"         ,"options":{}                                                                                                                                                                                                                                                                                                               },
        { "id":"organize"      ,"options":{"excludeByName":{"Time":true,"cls":true,"ins":true,"instance":true,"ip":true,"job":true},"indexByName":{"Time":1,"cls":6,"job":7,"pg-moderation-tt-default":2,"pg-moderation-tt-offline":3,"pg-moderation-tt-primary":4,"pg-moderation-tt-replica":5,"server":0},"renameByName":{"proxy":"","server":"Server"}} }
      ],
      "type":"table"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"custom":{"axisPlacement":"auto","fillOpacity":70,"hideFrom":{"legend":false,"tooltip":false,"viz":false},"insertNulls":false,"lineWidth":0,"spanNulls":false},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"red","value":0},{"color":"#3e668f","value":1}]}},"overrides":[]},
      "gridPos":{"h":7,"w":24,"x":0,"y":25},
      "id":203,
      "options":{"alignValue":"left","legend":{"displayMode":"list","placement":"bottom","showLegend":false},"mergeValues":true,"rowHeight":0.9,"showValue":"never","tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"haproxy_server_status{ins=\"$ins\", state=\"UP\"}","interval":"","legendFormat":" {{ proxy }} \u3010service\u3011\u2192 {{ server }} \u3010server\u3011","range":true,"refId":"A"}],
      "title":"Proxy Routes",
      "type":"state-timeline"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":32},"id":152,"panels":[],"title":"General Info","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":10,"w":12,"x":0,"y":33},
      "id":75,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        {                  "expr":"sum(irate(haproxy_frontend_bytes_in_total{ins=\"$ins\", proxy!=\"stats\"}[5m])*8) by (instance)"               ,"interval":"","intervalFactor":1,"legendFormat":"IN Front" ,"metric":"","refId":"A","step": 30 },
        { "exemplar":false,"expr":"sum(irate(haproxy_frontend_bytes_out_total{ins=\"$ins\", proxy!=\"stats\"}[5m])*8) by (instance)"              ,"interval":"","intervalFactor":2,"legendFormat":"OUT Front",            "refId":"B","step": 60 },
        {                  "expr":"sum(irate(haproxy_backend_bytes_in_total{ins=\"$ins\", proxy!=\"stats\"}[5m])*8) by (instance)"                ,"interval":"","intervalFactor":2,"legendFormat":"IN Back"  ,            "refId":"C","step":240 },
        {                  "expr":"sum(irate(haproxy_backend_bytes_out_total{proxy=~\"$backend\",instance=~\"$host:$port\"}[5m])*8) by (instance)",              "intervalFactor":2,"legendFormat":"OUT Back" ,            "refId":"D","step":240 }
      ],
      "title":"Current total of incoming / outgoing bytes",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":10,"w":12,"x":12,"y":33},
      "id":79,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"sum(irate(haproxy_frontend_connections_total{ins=\"$ins\", proxy!=\"stats\"}[5m])) by (instance)"     ,             "interval":"","intervalFactor":1,"legendFormat":"FE"       ,"metric":"","refId":"A","step":30 },
        { "expr":"sum(irate(haproxy_backend_connection_errors_total{ins=\"$ins\", proxy!=\"stats\"}[5m])) by (instance)","hide":false,"interval":"","intervalFactor":1,"legendFormat":"BE Errors","metric":"","refId":"C","step":30 }
      ],
      "title":"Connections",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":10,"w":12,"x":0,"y":43},
      "id":81,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"sum(irate(haproxy_frontend_http_requests_total{ins=\"$ins\", proxy!=\"stats\"}[5m])) by (instance)"                    ,"interval":"","intervalFactor":1,"legendFormat":"Frontend requests"          ,"metric":"","refId":"A","step":30 },
        { "expr":"sum(irate(haproxy_frontend_request_errors_total{ins=\"$ins\", proxy!=\"stats\"}[5m])) by (instance)"                   ,"interval":"","intervalFactor":1,"legendFormat":"Frontend requests errors"   ,"metric":"","refId":"C","step":30 },
        { "expr":"sum(irate(haproxy_frontend_requests_denied_total{ins=\"$ins\", proxy!=\"stats\"}[5m])) by (instance)"                  ,"interval":"","intervalFactor":2,"legendFormat":"Frontend request denied"    ,            "refId":"F","step":60 },
        { "expr":"sum(irate(haproxy_backend_redispatch_warnings_total{proxy=~\"$backend\",instance=~\"$host:$port\"}[5m])) by (instance)","interval":"","intervalFactor":2,"legendFormat":"Backend redispatch warnings",            "refId":"D","step":60 },
        { "expr":"sum(irate(haproxy_backend_retry_warnings_total{proxy=~\"$backend\",instance=~\"$host:$port\"}[5m])) by (instance)"     ,"interval":"","intervalFactor":2,"legendFormat":"Backend retry warnings"     ,            "refId":"E","step":60 },
        { "expr":"sum(irate(haproxy_backend_response_errors_total{proxy=~\"$backend\",instance=~\"$host:$port\"}[5m])) by (instance)"    ,"interval":"","intervalFactor":1,"legendFormat":"Backend response errors"    ,"metric":"","refId":"I","step":30 },
        { "expr":"sum(haproxy_backend_current_queue{proxy=~\"$backend\",instance=~\"$host:$port\"}) by (instance)"                       ,"interval":"","intervalFactor":2,"legendFormat":"Backend queued requests"    ,            "refId":"G","step":60 },
        { "expr":"sum(irate(haproxy_backend_http_requests_total{proxy=~\"$backend\",instance=~\"$host:$port\"}[5m])) by (instance)"      ,"interval":"","intervalFactor":1,"legendFormat":"Backend requests"           ,"metric":"","refId":"H","step":30 }
      ],
      "title":"Total received requests / responses",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":10,"w":12,"x":12,"y":43},
      "id":84,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"sum(irate(haproxy_frontend_current_sessions{ins=\"$ins\", proxy!=\"stats\"}[5m])) by (instance)","interval":"","intervalFactor":1,"legendFormat":"Frontend current sessions","metric":"","refId":"B","step":30 },
        { "expr":"sum(irate(haproxy_backend_current_sessions{ins=\"$ins\", proxy!=\"stats\"}[5m])) by (instance)" ,"interval":"","intervalFactor":1,"legendFormat":"Backend current sessions" ,"metric":"","refId":"A","step":30 }
      ],
      "title":"Number of active sessions",
      "type":"timeseries"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":53},"id":153,"panels":[],"title":"Throughput","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":0,"y":54},
      "id":27,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"irate(haproxy_backend_connection_attempts_total{ins=\"$ins\", proxy!=\"stats\"}[5m])","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Attempts {{ proxy }}","metric":"","refId":"B","step":30},{"expr":"irate(haproxy_backend_connection_errors_total{ins=\"$ins\", proxy!=\"stats\"}[5m])","interval":"","intervalFactor":2,"legendFormat":"Error {{ proxy }}","refId":"A","step":60}],
      "title":"Back - Total number of connections",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":12,"y":54},
      "id":1,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"irate(haproxy_backend_bytes_in_total{ins=\"$ins\", proxy!=\"stats\"}[5m])*8","interval":"","intervalFactor":1,"legendFormat":"IN {{ proxy }}","metric":"haproxy_backend_","refId":"A","step":30},{"expr":"irate(haproxy_backend_bytes_out_total{ins=\"$ins\", proxy!=\"stats\"}[5m])*8","interval":"","intervalFactor":2,"legendFormat":"OUT {{ proxy }}","refId":"B","step":60}],
      "title":"Back - Current total of incoming / outgoing bytes",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":0,"y":69},
      "id":42,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"irate(haproxy_frontend_bytes_in_total{ins=\"$ins\", proxy!=\"stats\"}[5m])*8","interval":"","intervalFactor":1,"legendFormat":"IN {{ proxy }}","metric":"","refId":"A","step":30},{"expr":"irate(haproxy_frontend_bytes_out_total{ins=\"$ins\", proxy!=\"stats\"}[5m])*8","interval":"","intervalFactor":2,"legendFormat":"OUT {{ proxy }}","refId":"B","step":60}],
      "title":"Front - Current total of incoming / outgoing bytes",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":12,"y":69},
      "id":43,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"irate(haproxy_frontend_connections_total{ins=\"$ins\", proxy!=\"stats\"}[5m])"       ,"interval":"","intervalFactor":1,"legendFormat":"Total {{ proxy }}" ,"metric":"haproxy_backe","refId":"B","step":30 },
        { "expr":"irate(haproxy_frontend_denied_connections_total{ins=\"$ins\", proxy!=\"stats\"}[5m])","interval":"","intervalFactor":1,"legendFormat":"Denied {{ proxy }}","metric":"haproxy_backe","refId":"A","step":30 }
      ],
      "title":"Front - Total number of connections",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":0,"y":84},
      "id":131,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"irate(haproxy_backend_connection_reuses_total{ins=\"$ins\", proxy!=\"stats\"}[5m])","interval":"","intervalFactor":2,"legendFormat":"Reuses {{ proxy }}","refId":"C","step":60}],
      "title":"Back - Total number of connections reuses",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":12,"y":84},
      "id":114,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_frontend_connections_rate_max{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"{{ proxy }}","metric":"haproxy_backe","refId":"B","step":30}],
      "title":"Front - Maximum observed number of connections per second",
      "type":"timeseries"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":99},"id":157,"panels":[],"title":"Sessions","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":0,"y":100},
      "id":30,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"irate(haproxy_backend_sessions_total{ins=\"$ins\", proxy!=\"stats\"}[5m])","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Total {{ proxy }}"         ,"metric":"","refId":"A","step":30 },
        { "expr":"haproxy_backend_current_sessions{ins=\"$ins\", proxy!=\"stats\"}"         ,"hide":false,"interval":"","intervalFactor":1,"legendFormat":"Current active {{ proxy }}","metric":"","refId":"B","step":30 }
      ],
      "title":"Back - Total number of sessions",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":12,"y":100},
      "id":45,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"irate(haproxy_frontend_sessions_total{ins=\"$ins\", proxy!=\"stats\"}[5m])"       ,"hide":false,"interval":"","intervalFactor":1,"legendFormat":"Total {{ proxy }}"                                  ,"metric":"","refId":"A","step":30 },
        { "expr":"irate(haproxy_frontend_denied_sessions_total{ins=\"$ins\", proxy!=\"stats\"}[5m])","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Denied by \"tcp-request session\" rules {{ proxy }}","metric":"","refId":"B","step":30 },
        { "expr":"haproxy_frontend_current_sessions{ins=\"$ins\", proxy!=\"stats\"}"                ,"hide":false,"interval":"","intervalFactor":1,"legendFormat":"Current active {{ proxy }}"                         ,"metric":"","refId":"C","step":30 }
      ],
      "title":"Front - Total number of sessions",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":0,"y":113},
      "id":34,
      "maxPerRow":4,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"irate(haproxy_backend_max_sessions{ins=\"$ins\", proxy!=\"stats\"}[5m])","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Max {{ proxy }}","metric":"","refId":"A","step":30},{"expr":"haproxy_backend_limit_sessions{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":2,"legendFormat":"Limit {{ proxy }}","refId":"B","step":60}],
      "title":"Back - Maximum observed number of active sessions and limit",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":12,"y":113},
      "id":51,
      "maxPerRow":4,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"irate(haproxy_frontend_max_sessions{ins=\"$ins\", proxy!=\"stats\"}[5m])","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Max {{ proxy }}","metric":"","refId":"A","step":30},{"expr":"haproxy_frontend_limit_sessions{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":2,"legendFormat":"Limit {{ proxy }}","refId":"B","step":60}],
      "title":"Front - Maximum observed number of active sessions and limit",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":0,"y":126},
      "id":33,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_backend_max_session_rate{ins=\"$ins\", proxy!=\"stats\"}","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Max {{ proxy }}","metric":"","refId":"A","step":30}],
      "title":"Back - Maximum observed number of sessions per second",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":12,"y":126},
      "id":69,
      "maxPerRow":3,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_frontend_max_session_rate{ins=\"$ins\", proxy!=\"stats\"}","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Max {{ proxy }}","metric":"","refId":"A","step":30},{"expr":"haproxy_frontend_limit_session_rate{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":2,"legendFormat":"Limit {{ proxy }}","refId":"B","step":2}],
      "title":"Front - Maximum observed number of sessions per second and limit",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":0,"y":139},
      "id":124,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_backend_last_session_seconds{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"{{ proxy }}","metric":"","refId":"A","step":30}],
      "title":"Back - Last session assigned",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":12,"y":139},
      "id":128,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_backend_client_aborts_total{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"By client {{ proxy }}","metric":"","refId":"A","step":30},{"expr":"haproxy_backend_server_aborts_total{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"By server {{ proxy }}","metric":"","refId":"B","step":30}],
      "title":"Back - Data transfers aborted",
      "type":"timeseries"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":152},"id":158,"panels":[],"title":"Weight","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":14,"w":12,"x":0,"y":153},
      "id":38,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"irate(haproxy_backend_check_up_down_total{ins=\"$ins\", proxy!=\"stats\"}[5m])","interval":"","intervalFactor":1,"legendFormat":"{{ proxy }}","metric":"","refId":"A","step":30}],
      "title":"Back - Total number of UP->DOWN transitions",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":14,"w":12,"x":12,"y":153},
      "id":39,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_backend_weight{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"{{ proxy }}","metric":"","refId":"A","step":30}],
      "title":"Back - Total weight of the servers in the backend / Active servers backend",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":14,"w":12,"x":0,"y":167},
      "id":142,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"irate(haproxy_backend_last_session_seconds{ins=\"$ins\", proxy!=\"stats\"}[5m])","interval":"","intervalFactor":1,"legendFormat":"{{ proxy }}","metric":"","refId":"A","step":30}],
      "title":"Back - Number of seconds since last session assigned to server/backend",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":14,"w":12,"x":12,"y":167},
      "id":143,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_backend_loadbalanced_total{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"{{ proxy }}","metric":"","refId":"A","step":30}],
      "title":"Back - Total number of times a service was selected",
      "type":"timeseries"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":181},"id":161,"panels":[],"title":"Server Throughput","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":8,"x":0,"y":182},
      "id":129,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"irate(haproxy_server_bytes_in_total{ins=\"$ins\", proxy!=\"stats\"}[5m])*8" ,             "interval":"","intervalFactor":1,"legendFormat":"IN {{ proxy }} / {{ server }}" ,"metric":"","refId":"A","step":30 },
        { "expr":"irate(haproxy_server_bytes_out_total{ins=\"$ins\", proxy!=\"stats\"}[5m])*8","hide":false,"interval":"","intervalFactor":2,"legendFormat":"OUT {{ proxy }} / {{ server }}",            "refId":"B","step":60 }
      ],
      "title":"Server - Current total of incoming / outgoing bytes",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":8,"x":8,"y":182},
      "id":130,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"irate(haproxy_server_connection_attempts_total{ins=\"$ins\", proxy!=\"stats\"}[5m])","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Attempts {{ proxy }} / {{ server }}","refId":"B","metric":"","step":30 },
        { "expr":"irate(haproxy_server_connection_errors_total{ins=\"$ins\", proxy!=\"stats\"}[5m])"  ,             "interval":"","intervalFactor":2,"legendFormat":"Error {{ proxy }} / {{ server }}"   ,"refId":"A",            "step":60 },
        { "expr":"irate(haproxy_server_connection_reuses_total{ins=\"$ins\", proxy!=\"stats\"}[5m])"  ,             "interval":"","intervalFactor":2,"legendFormat":"Reuses {{ proxy }} / {{ server }}"  ,"refId":"C",            "step":60 }
      ],
      "title":"Server - Total number of connections",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":8,"x":16,"y":182},
      "id":59,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"irate(haproxy_server_current_queue{ins=\"$ins\", proxy!=\"stats\"}[5m])",            "interval":"","intervalFactor":1,"legendFormat":"Current {{ proxy }} / {{ server }}","metric":"","refId":"A","step":30 },
        { "expr":"haproxy_server_max_queue{ins=\"$ins\", proxy!=\"stats\"}"               ,"hide":true,"interval":"","intervalFactor":1,"legendFormat":"Max {{ proxy }} / {{ server }}"    ,"metric":"","refId":"B","step":30 },
        { "expr":"haproxy_server_queue_limit{ins=\"$ins\", proxy!=\"stats\"}"             ,            "interval":"","intervalFactor":1,"legendFormat":"Limit {{ proxy }} / {{ server }}"  ,"metric":"","refId":"C","step":30 }
      ],
      "title":"Server - Number of queued requests",
      "type":"timeseries"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":195},"id":164,"panels":[],"title":"Server Sessions","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":16,"w":8,"x":0,"y":196},
      "id":61,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"haproxy_server_current_sessions{ins=\"$ins\", proxy!=\"stats\"}"         ,"hide":true,"interval":"","intervalFactor":1,"legendFormat":"Current {{ proxy }} / {{ server }}","metric":"","refId":"A","step":30 },
        { "expr":"irate(haproxy_server_sessions_total{ins=\"$ins\", proxy!=\"stats\"}[5m])",            "interval":"","intervalFactor":1,"legendFormat":"Total {{ proxy }} / {{ server }}"  ,"metric":"","refId":"B","step":30 },
        { "expr":"irate(haproxy_server_max_sessions{ins=\"$ins\", proxy!=\"stats\"}[5m])"  ,"hide":true,"interval":"","intervalFactor":1,"legendFormat":"Max {{ proxy }} / {{ server }}"    ,"metric":"","refId":"C","step":30 },
        { "expr":"haproxy_server_limit_sessions{ins=\"$ins\", proxy!=\"stats\"}"           ,            "interval":"","intervalFactor":1,"legendFormat":"Limit {{ proxy }} / {{ server }}"  ,"metric":"","refId":"D","step":30 }
      ],
      "title":"Server - Number of active sessions",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":16,"w":8,"x":8,"y":196},
      "id":60,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_server_max_session_rate{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"Rate {{ proxy }} / {{ server }}","metric":"","refId":"A","step":30},{"expr":"haproxy_server_limit_session_rate{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"Limit {{ proxy }} / {{ server }}","metric":"","refId":"B","step":30}],
      "title":"Server - Number of sessions per second and limit",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":16,"w":8,"x":16,"y":196},
      "id":146,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_server_client_aborts_total{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"By client {{ proxy }} / {{ server }}","metric":"","refId":"A","step":30},{"expr":"haproxy_server_server_aborts_total{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"By server {{ proxy }} / {{ server }}","metric":"","refId":"B","step":30}],
      "title":"Server - Data transfers aborted",
      "type":"timeseries"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":212},"id":165,"panels":[],"title":"Server Health","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":0,"y":213},
      "id":62,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_server_downtime_seconds_total{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"{{ proxy }} / {{ server }}","metric":"haproxy_backend_current_queue","refId":"A","step":30}],
      "title":"Server - Total downtime in seconds",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":12,"y":213},
      "id":56,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"increase(haproxy_server_check_failures_total{ins=\"$ins\", proxy!=\"stats\"}[5m])","interval":"","intervalFactor":1,"legendFormat":"Total number of failed check {{ proxy }} / {{ server }}"        ,"metric":"","refId":"A","step":30 },
        { "expr":"increase(haproxy_server_check_up_down_total{ins=\"$ins\", proxy!=\"stats\"}[5m])" ,"interval":"","intervalFactor":1,"legendFormat":"Total number of UP->DOWN transitions {{ proxy }} / {{ server }}","metric":"","refId":"B","step":30 }
      ],
      "title":"Server - Checks history",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":0,"y":228},
      "id":57,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"irate(haproxy_server_connection_errors_total{ins=\"$ins\", proxy!=\"stats\"}[5m])","interval":"","intervalFactor":1,"legendFormat":"{{ proxy }} / {{ server }}","metric":"","refId":"A","step":30}],
      "title":"Server - Total of connection errors",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":12,"y":228},
      "id":90,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_server_current_throttle{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"Current throttle percentage for the server, when slowstart is active, or no value if not in slowstart {{ proxy }} / {{ server }}","metric":"","refId":"A","step":30}],
      "title":"Server - Throttle",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":0,"y":243},
      "id":91,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_server_loadbalanced_total{ins=\"$ins\", proxy!=\"stats\"}","interval":"","intervalFactor":1,"legendFormat":"Total number of times a service was selected {{ proxy }} / {{ server }}","metric":"","refId":"A","step":30}],
      "title":"Server - Loadbalanced",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":15,"w":12,"x":12,"y":243},
      "id":73,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_server_weight{proxy=~\"$backend\",server=~\"$server\",instance=~\"$host:$port\"}","interval":"","intervalFactor":1,"legendFormat":"{{ proxy }} / {{ server }}","metric":"","refId":"A","step":30}],
      "title":"Server - Service weight",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":9,"w":24,"x":0,"y":258},
      "id":144,
      "maxPerRow":2,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"irate(haproxy_server_last_session_seconds{ins=\"$ins\", proxy!=\"stats\"}[5m])","interval":"","intervalFactor":1,"legendFormat":"{{ proxy }} / {{ server }}","metric":"","refId":"A","step":30}],
      "title":"Server - Number of seconds since last session assigned to server/backend",
      "type":"timeseries"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":267},"id":169,"panels":[],"title":"HAProxy Process","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":0,"y":268},
      "id":87,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"haproxy_process_max_memory_bytes{ins=\"$ins\"}"               ,"interval":"","intervalFactor":1,"legendFormat":"Per-process memory limit (in bytes); 0=unset"        ,"metric":"","refId":"A","step":30 },
        { "expr":"irate(haproxy_process_pool_allocated_bytes{ins=\"$ins\"}[5m])","interval":"","intervalFactor":1,"legendFormat":"Total amount of memory allocated in pools (in bytes)","metric":"","refId":"B","step":30 },
        { "expr":"irate(haproxy_process_pool_used_bytes{ins=\"$ins\"}[5m])"     ,"interval":"","intervalFactor":1,"legendFormat":"Total amount of memory used in pools (in bytes)"     ,"metric":"","refId":"C","step":30 }
      ],
      "title":"Process - Memory",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":12,"y":268},
      "id":107,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"irate(haproxy_process_current_tasks{ins=\"$ins\"}[5m])","interval":"","intervalFactor":1,"legendFormat":"Current number of tasks"                 ,"metric":"","refId":"A","step":30 },{ "expr":"haproxy_process_current_run_queue{ins=\"$ins\"}"       ,"interval":"","intervalFactor":1,"legendFormat":"Current number of tasks in the run-queue","metric":"","refId":"B","step":30 },
        { "expr":"haproxy_process_stopping{ins=\"$ins\"}"                ,"interval":"","intervalFactor":1,"legendFormat":"Non zero means stopping in progress"     ,"metric":"","refId":"C","step":30 }
      ],
      "title":"Process - Tasks",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":0,"y":281},
      "id":89,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_process_max_fds{ins=\"$ins\"}","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Maximum number of open file descriptors; 0=unset","metric":"","refId":"A","step":30},{"expr":"haproxy_process_max_sockets{ins=\"$ins\"}","interval":"","intervalFactor":1,"legendFormat":"Maximum numer of open sockets","metric":"","refId":"B","step":30}],
      "title":"Process - Maximum open files / sockets",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":12,"y":281},
      "id":99,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"haproxy_process_max_pipes{ins=\"$ins\"}"                  ,"interval":"","intervalFactor":1,"legendFormat":"Configured maximum number of pipes","metric":"","refId":"A","step":30 },{ "expr":"irate(haproxy_process_pipes_used_total{ins=\"$ins\"}[5m])","interval":"","intervalFactor":1,"legendFormat":"Number of pipes in used"           ,"metric":"","refId":"B","step":30 },
        { "expr":"irate(haproxy_process_pipes_free_total{ins=\"$ins\"}[5m])","interval":"","intervalFactor":1,"legendFormat":"Number of pipes unused"            ,"metric":"","refId":"C","step":30 }
      ],
      "title":"Process - Pipes",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":0,"y":294},
      "id":86,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_process_nbthread{ins=\"$ins\"}","interval":"","intervalFactor":1,"legendFormat":"Threads","metric":"","refId":"A","step":30},{"expr":"haproxy_process_nbproc{ins=\"$ins\"}","interval":"","intervalFactor":1,"legendFormat":"Processes","metric":"","refId":"B","step":30}],
      "title":"Process - Configured threads / processes",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":12,"y":294},
      "id":88,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_process_pool_failures_total{ins=\"$ins\"}","interval":"","intervalFactor":1,"legendFormat":"Total number of failed pool allocations","metric":"","refId":"A","step":30}],
      "title":"Process - Pool allocations",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":0,"y":307},
      "id":108,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_process_idle_time_percent{ins=\"$ins\"}","interval":"","intervalFactor":1,"legendFormat":"Idle to total ratio over last sample (percent)","metric":"","refId":"A","step":30}],
      "title":"Process - Idle",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":12,"y":307},
      "id":109,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"irate(haproxy_process_jobs{ins=\"$ins\"}[5m])"            ,"interval":"","intervalFactor":1,"legendFormat":"Current number of active jobs (listeners, sessions, open devices)"     ,"metric":"","refId":"A","step":30 },
        { "expr":"irate(haproxy_process_unstoppable_jobs{ins=\"$ins\"}[5m])","interval":"","intervalFactor":1,"legendFormat":"Current number of active jobs that can't be stopped during a soft stop","metric":"","refId":"B","step":30 },
        { "expr":"irate(haproxy_process_listeners{ins=\"$ins\"}[5m])"       ,"interval":"","intervalFactor":1,"legendFormat":"Current number of active listeners"                                    ,"metric":"","refId":"C","step":30 }
      ],
      "title":"Process - Jobs",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":0,"y":320},
      "id":110,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_process_active_peers{ins=\"$ins\"}","interval":"","intervalFactor":1,"legendFormat":"Current number of active peers","metric":"","refId":"A","step":30},{"expr":"haproxy_process_connected_peers{ins=\"$ins\"}","interval":"","intervalFactor":1,"legendFormat":"Current number of connected peers","metric":"","refId":"B","step":30}],
      "title":"Process - Peers",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":13,"w":12,"x":12,"y":320},
      "id":111,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_process_dropped_logs_total{ins=\"$ins\"}","interval":"","intervalFactor":1,"legendFormat":"Total number of dropped logs","metric":"","refId":"A","step":30}],
      "title":"Process - Logs",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":14,"w":12,"x":0,"y":333},
      "id":101,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"haproxy_process_current_session_rate{ins=\"$ins\"}",            "interval":"","intervalFactor":1,"legendFormat":"Current number of sessions per second over last elapsed second","metric":"","refId":"A","step":30 },
        { "expr":"haproxy_process_limit_session_rate{ins=\"$ins\"}"  ,            "interval":"","intervalFactor":1,"legendFormat":"Configured maximum number of sessions per second"              ,"metric":"","refId":"B","step":30 },
        { "expr":"haproxy_process_max_session_rate{ins=\"$ins\"}"    ,"hide":true,"interval":"","intervalFactor":1,"legendFormat":"Maximum observed number of sessions per second"                ,"metric":"","refId":"C","step":30 }
      ],
      "title":"Process - Sessions over last second",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":14,"w":12,"x":12,"y":333},
      "id":96,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"haproxy_process_current_connections{ins=\"$ins\"}"         ,"hide":true ,"interval":"","intervalFactor":1,"legendFormat":"Number of active sessions"             ,"metric":"","refId":"A","step":30 },
        { "expr":"irate(haproxy_process_connections_total{ins=\"$ins\"}[5m])","hide":false,"interval":"","intervalFactor":1,"legendFormat":"Total number of created sessions"      ,"metric":"","refId":"B","step":30 },
        { "expr":"irate(haproxy_process_requests_total{ins=\"$ins\"}[5m])"   ,"hide":false,"interval":"","intervalFactor":1,"legendFormat":"Total number of requests (TCP or HTTP)","metric":"","refId":"C","step":30 }
      ],
      "title":"Process - Total sessions / requests",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":14,"w":12,"x":0,"y":347},
      "id":100,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "expr":"haproxy_process_current_connection_rate{ins=\"$ins\"}",            "interval":"","intervalFactor":1,"legendFormat":"Current number of connections per second over last elapsed second","metric":"","refId":"A","step":30 },
        { "expr":"haproxy_process_limit_connection_rate{ins=\"$ins\"}"  ,            "interval":"","intervalFactor":1,"legendFormat":"Configured maximum number of connections per second."             ,"metric":"","refId":"B","step":30 },
        { "expr":"haproxy_process_max_connection_rate{ins=\"$ins\"}"    ,"hide":true,"interval":"","intervalFactor":1,"legendFormat":"Maximum observed number of connections per second"                ,"metric":"","refId":"C","step":30 }
      ],
      "title":"Process - Connections over last second",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":0,
            "gradientMode":"none",
            "hideFrom":{"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"auto",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"none"},
            "thresholdsStyle":{"mode":"off"}
          },
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0},{"color":"red","value":80}]}
        },
        "overrides":[]
      },
      "gridPos":{"h":14,"w":12,"x":12,"y":347},
      "id":95,
      "maxPerRow":1,
      "options":{"alertThreshold":true,"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"expr":"haproxy_process_max_connections{ins=\"$ins\"}","interval":"","intervalFactor":1,"legendFormat":"Maximum number of concurrent connections","metric":"","refId":"A","step":30},{"expr":"haproxy_process_hard_max_connections{ins=\"$ins\"}","interval":"","intervalFactor":1,"legendFormat":"Initial Maximum number of concurrent connections","metric":"","refId":"B","step":30}],
      "title":"Process - Connections",
      "type":"timeseries"
    },
    {"collapsed":false,"gridPos":{"h":1,"w":24,"x":0,"y":361},"id":228,"panels":[],"title":"Logs","type":"row"},
    {
      "datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},
      "description":"HAProxy log of instasnce $ins @ $ip from syslog",
      "fieldConfig":{
        "defaults":{
          "color":{"fixedColor":"#346f36cc","mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"bars",
            "fillOpacity":100,
            "gradientMode":"none",
            "hideFrom":{"graph":false,"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"never",
            "showValues":false,
            "spanNulls":true,
            "stacking":{"group":"A","mode":"normal"},
            "thresholdsStyle":{"mode":"off"}
          },
          "decimals":0,
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},
          "unit":"none"
        },
        "overrides":[]
      },
      "gridPos":{"h":5,"w":24,"x":0,"y":362},
      "id":229,
      "interval":"1s",
      "options":{"legend":{"calcs":["sum"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[
        { "datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},"editorMode":"code","expr":"ip:$ip job:syslog (app:haproxy) | stats count() as count"                             ,             "legendFormat":"haproxy"  ,"queryType":"statsRange","refId":"A" },
        { "datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},"editorMode":"code","expr":"ip:$ip job:syslog _msg:~\"haproxy\" NOT app:haproxy | stats by (app) count() as count","hide":false,"legendFormat":"{{ app }}","queryType":"statsRange","refId":"B" }
      ],
      "title":"HAProxy Log",
      "type":"timeseries"
    },
    {
      "datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},
      "description":"",
      "gridPos":{"h":16,"w":11,"x":0,"y":367},
      "id":230,
      "options":{"dedupStrategy":"none","enableInfiniteScrolling":true,"enableLogDetails":true,"fontSize":"small","prettifyLogMessage":false,"showCommonLabels":false,"showControls":true,"showLabels":false,"showTime":true,"sortOrder":"Descending","syntaxHighlighting":true,"wrapLogMessage":false},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},"editorMode":"code","expr":"ip:$ip job:syslog app:haproxy","instant":false,"queryType":"instant","range":true,"refId":"A"}],
      "title":"HAProxy Logs",
      "type":"logs"
    },
    {
      "datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},
      "description":"Search syslog from $ins @ @ip ",
      "gridPos":{"h":16,"w":13,"x":11,"y":367},
      "id":231,
      "options":{"dedupStrategy":"none","enableInfiniteScrolling":false,"enableLogDetails":true,"fontSize":"small","prettifyLogMessage":false,"showCommonLabels":false,"showControls":true,"showLabels":true,"showTime":true,"sortOrder":"Descending","wrapLogMessage":false},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},"editorMode":"code","expr":"ip:$ip job:syslog _msg:~\"haproxy\" NOT app:haproxy | fields level,unit,_msg","instant":false,"legendFormat":"","queryType":"instant","range":true,"refId":"A"}],
      "title":"Search Haproxy in Syslog",
      "type":"logs"
    }
  ],
  "preload":false,
  "refresh":"",
  "schemaVersion":42,
  "tags":["Pigsty","NODE","HAProxy","Instance"],
  "templating":{
    "list":[
      {
        "current":{},
        "datasource":{"type":"prometheus","uid":"ds-prometheus"},
        "definition":"label_values(haproxy_process_idle_time_percent, ins)",
        "description":"Unique instance identifier (e.g pg-meta-1)",
        "includeAll":false,
        "label":"Instance",
        "name":"ins",
        "options":[],
        "query":{"query":"label_values(haproxy_process_idle_time_percent, ins)","refId":"StandardVariableQuery"},
        "refresh":2,
        "regex":"",
        "sort":1,
        "type":"query"
      },{
        "current":{},
        "datasource":{"type":"prometheus","uid":"ds-prometheus"},
        "definition":"label_values(haproxy_process_idle_time_percent{ins=\"$ins\"}, cls)",
        "description":"Cluster identifier for this postgres instance, cls should be unique among entire environment. such as pg-meta, pg-test",
        "hide":2,
        "includeAll":false,
        "label":"Cluster",
        "name":"cls",
        "options":[],
        "query":{"query":"label_values(haproxy_process_idle_time_percent{ins=\"$ins\"}, cls)","refId":"StandardVariableQuery"},
        "refresh":2,
        "regex":"",
        "sort":1,
        "type":"query"
      },{
        "current":{},
        "datasource":{"type":"prometheus","uid":"ds-prometheus"},
        "definition":"label_values(node_uname_info{ins=\"$ins\"}, nodename)",
        "description":"Node name of current postgres instance",
        "hide":2,
        "includeAll":false,
        "label":"Node",
        "name":"node",
        "options":[],
        "query":{"query":"label_values(node_uname_info{ins=\"$ins\"}, nodename)","refId":"StandardVariableQuery"},
        "refresh":2,
        "regex":"",
        "sort":1,
        "type":"query"
      },{
        "current":{},
        "datasource":{"type":"prometheus","uid":"ds-prometheus"},
        "definition":"label_values(haproxy_process_idle_time_percent{ins=\"$ins\"} , instance)",
        "description":"Unique instance identifier (e.g pg-meta-1)",
        "hide":2,
        "includeAll":false,
        "label":"IP",
        "name":"ip",
        "options":[],
        "query":{"query":"label_values(haproxy_process_idle_time_percent{ins=\"$ins\"} , instance)","refId":"StandardVariableQuery"},
        "refresh":2,
        "regex":"/([0-9\\.]+)\\:\\d+/",
        "sort":1,
        "type":"query"
      }
    ]
  },
  "time":{"from":"now-1h","to":"now"},
  "timepicker":{"refresh_intervals":["1s","2s","3s","5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]},
  "timezone":"browser",
  "title":"Node HAProxy",
  "uid":"node-haproxy",
  "version":1,
  "weekStart":""
}