{
  "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":"Node Home Dashboard",
  "editable":true,
  "fiscalYearStartMonth":0,
  "graphTooltip":0,
  "id":null,
  "license":"https://pigsty.io/docs/about/license/",
  "links":[{"asDropdown":true,"icon":"external link","includeVars":false,"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":124,"panels":[],"title":"Overview","type":"row"},
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"links":[{"title":"PGSQL Overview","url":"/d/pgsql-overview?${__url_time_range}"}],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0}]}},"overrides":[]},
      "gridPos":{"h":3,"w":8,"x":0,"y":1},
      "id":99,
      "options":{"colorMode":"background","graphMode":"none","justifyMode":"center","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"name","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"1","format":"table","instant":true,"interval":"","legendFormat":"","queryType":"measurements","refId":"A"}],
      "transformations":[{"id":"organize","options":{"excludeByName":{"Time":true},"indexByName":{},"renameByName":{"Time":"","Value":"${job}"}}}],
      "type":"stat"
    },
    {
      "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":"byRegexp","options":"/Mem|Disk|Data/"},"properties":[{"id":"unit","value":"bytes"}]},{"matcher":{"id":"byName","options":"Disk"},"properties":[{"id":"decimals","value":1}]}]},
      "gridPos":{"h":3,"w":8,"x":8,"y":1},
      "id":31,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"center","orientation":"vertical","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{"titleSize":16,"valueSize":14},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"count(count(node_load1{job=\"$job\"}) by (ip))",             "instant":true,"interval":"","legendFormat":"Node","queryType":"measurements","refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"node:env:cpu_count{job=\"$job\"}"              ,"hide":false,"instant":true,"interval":"","legendFormat":"Core","queryType":"measurements","refId":"B" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"node:env:mem_total{job=\"$job\"}"              ,"hide":false,"instant":true,"interval":"","legendFormat":"Mem" ,"queryType":"measurements","refId":"C" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"sum(node:env:size_bytes{job=\"$job\"})"        ,"hide":false,"instant":true,"interval":"","legendFormat":"Disk","queryType":"measurements","refId":"D" }
      ],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "decimals":1,
          "links":[{"title":"Node Overview: CPU Usage","url":"/d/node-overview?viewPanel=110&${__url_time_range}"}],
          "mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"}],
          "min":0,
          "thresholds":{"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":1}]},
          "unit":"percentunit"
        },
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":16,"y":1},
      "id":82,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{"titleSize":12,"valueSize":18},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"node:env:cpu_usage{job=\"$job\"}","interval":"","legendFormat":"CPU","refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "decimals":1,
          "links":[{"title":"Node Overview: Standard Load","url":"/d/node-overview?viewPanel=116&${__url_time_range}"}],
          "mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"}],
          "min":0,
          "thresholds":{"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":1}]},
          "unit":"percentunit"
        },
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":18,"y":1},
      "id":107,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{"titleSize":12,"valueSize":18},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"node:env:stdload1{job=\"$job\"}","interval":"","legendFormat":"Load","refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "links":[{"title":"Node Overview: Memory","url":"/d/node-overview?viewPanel=133&${__url_time_range}"}],
          "mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"}],
          "min":0,
          "thresholds":{"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":1}]},
          "unit":"percentunit"
        },
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":20,"y":1},
      "id":105,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{"titleSize":12,"valueSize":18},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"node:env:mem_usage{job=\"$job\"}","interval":"","legendFormat":"Memory","range":true,"refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "decimals":1,
          "links":[{"title":"Node Overview: Space Usage","url":"/d/node-overview?viewPanel=111&${__url_time_range}"}],
          "mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"}],
          "min":0,
          "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":0.1},{"color":"#fcdb72","value":0.8},{"color":"#f79f64","value":0.85},{"color":"red","value":0.9},{"color":"#b783af","value":0.95},{"color":"text","value":1}]},
          "unit":"percentunit"
        },
        "overrides":[]
      },
      "gridPos":{"h":3,"w":2,"x":22,"y":1},
      "id":106,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{"titleSize":12,"valueSize":18},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"node:env:space_usage{job=\"$job\"}","interval":"","legendFormat":"Space","refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "decimals":1,
          "links":[{"title":"Node Cluster : ${__field.labels.cls}","url":"/d/node-cluster?var-cls=${__field.labels.cls}&${__url_time_range}"}],
          "mappings":[{"options":{"-1":{"color":"gray","index":1,"text":"N/A"}},"type":"value"},{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"No Data"}},"type":"special"}],
          "thresholds":{"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":1}]},
          "unit":"percentunit"
        },
        "overrides":[]
      },
      "gridPos":{"h":17,"w":8,"x":0,"y":4},
      "id":40,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"value_and_name","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"node:cls:cpu_usage{}","instant":true,"interval":"","legendFormat":"{{ cls }}","refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"Yellow : Node\n\nGreen: HAProxy\n\nRed: Vector Logging Agent\n\nGreen: Docker\n\nPurple: Keepalived",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"links":[],"mappings":[{"options":{"match":"null+nan","result":{"index":0,"text":"No Instances"}},"type":"special"}],"max":1.1,"min":0,"thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#aaaaaa","value":1}]}},
        "overrides":[
          { "matcher":{"id":"byFrameRefID","options":"A"},"properties":[{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#68511e","value":0},{"color":"#e6b03ee6","value":1}]}},{"id":"links","value":[{"title":"Node Instance : ${__field.labels.ip}","url":"/d/node-instance?var-id=${__field.labels.ins}&${__url_time_range}"}]}]                    },
          { "matcher":{"id":"byFrameRefID","options":"B"},"properties":[{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#1e3346","value":0},{"color":"#5b9cd5","value":1}]}},{"id":"links","value":[{"title":"Node Proxy : ${__field.labels.ins} @ ${__field.labels.ip}","url":"/d/node-haproxy?var-ins=${__field.labels.ins}&${__url_time_range}"}]}] },
          { "matcher":{"id":"byFrameRefID","options":"C"},"properties":[{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#65231b","value":0},{"color":"#cc4637d9","value":1}]}},{"id":"links","value":[{"title":"Node Vector : ${__field.labels.ins}","url":"/d/node-vector?var-id=${__field.labels.ins}&${__url_time_range}"}]}]                       },
          { "matcher":{"id":"byFrameRefID","options":"J"},"properties":[{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#3d5839","value":0},{"color":"#8fad88","value":1}]}},{"id":"links","value":[{"title":"Node JuiceFS : ${__field.labels.ins}","url":"/d/node-juice?var-ins=${__field.labels.ins}&${__url_time_range}"}]}]                        },
          { "matcher":{"id":"byFrameRefID","options":"D"},"properties":[{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#152c16","value":0},{"color":"#346f36cc","value":1}]}}]                                                                                                                                                                        },
          { "matcher":{"id":"byFrameRefID","options":"K"},"properties":[{"id":"links","value":[{"title":"NODE VIP : ${__field.labels.vip}","url":"/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}"}]},{"id":"thresholds","value":{"mode":"absolute","steps":[{"color":"#1f171e","value":0},{"color":"#f79f64","value":1}]}}]                              }
        ]
      },
      "gridPos":{"h":17,"w":16,"x":8,"y":4},
      "id":136,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"name","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"node_up{job=\"node\"}"                                 ,"hide":false,"instant":true,"interval":"","legendFormat":"{{ ins }}"            ,"refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"haproxy_up{job=\"node\"}"                              ,"hide":false,"instant":true,"interval":"","legendFormat":"{{ ins }}"            ,"refId":"B" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"vector_up{job=\"node\"}"                               ,"hide":false,"instant":true,"interval":"","legendFormat":"{{ ins }}"            ,"refId":"C" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"up{job=\"juice\"}"                                     ,"hide":false,"instant":true,"interval":"","legendFormat":"{{ ins }}"            ,"refId":"J" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"docker_up{job=\"node\"}"                               ,"hide":false,"instant":true,"interval":"","legendFormat":"{{ ins }}"            ,"refId":"D" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"min by (job,cls,vip) (probe_success{job=\"node-vip\"})","hide":false,"instant":true,"interval":"","legendFormat":"{{ cls }} @ {{ vip }}","refId":"K" }
      ],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{"color":{"mode":"thresholds"},"decimals":0,"links":[],"mappings":[],"max":1,"min":0,"noValue":"OK","thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#fcdb72","value":1},{"color":"#f79f64","value":4},{"color":"#b783af","value":8},{"color":"text","value":16}]},"unit":"none"},
        "overrides":[{"matcher":{"id":"byFrameRefID","options":"A"},"properties":[{"id":"links","value":[{"targetBlank":true,"title":"Pigsty Alertmanager","url":"/alertmgr/"}]}]},{"matcher":{"id":"byFrameRefID","options":"B"},"properties":[{"id":"links","value":[{"title":"PGSQL Alert","url":"/d/pgsql-alert?${__url_time_range}"}]}]}]
      },
      "gridPos":{"h":5,"w":4,"x":0,"y":21},
      "id":138,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["last"],"fields":"","values":false},"showPercentChange":false,"text":{},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"count(ALERTS{alertstate=\"firing\", job=\"$job\"}) or on() vector(0)",            "interval":"","legendFormat":"Firing Alert" ,"range":true,"refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"count(ALERTS{alertstate=\"pending\", job=\"$job\"})"                 ,"hide":true,"interval":"","legendFormat":"Pending Alert","range":true,"refId":"B" }
      ],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"thresholds"},
          "decimals":0,
          "links":[{"targetBlank":true,"title":"AlertInfo ${__field.labels.alertname}","url":"/alertmgr/#/alerts?filter=%7Balertname%3D%22${__field.labels.alertname}%22%7D"}],
          "mappings":[],
          "max":1,
          "min":0,
          "noValue":"OK",
          "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#fcdb72","value":1},{"color":"#f79f64","value":2},{"color":"#b783af","value":4}]},
          "unit":"none"
        },
        "overrides":[]
      },
      "gridPos":{"h":5,"w":4,"x":4,"y":21},
      "id":139,
      "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"horizontal","percentChangeColorMode":"standard","reduceOptions":{"calcs":["last"],"fields":"","values":false},"showPercentChange":false,"text":{"titleSize":12},"textMode":"auto","wideLayout":true},
      "pluginVersion":"12.3.1",
      "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"count(ALERTS{alertstate=\"firing\", job=\"$job\"}) by (alertname, severity)","interval":"","legendFormat":"{{ alertname }}","range":true,"refId":"A"}],
      "type":"stat"
    },
    {
      "datasource":{"type":"prometheus","uid":"ds-prometheus"},
      "description":"",
      "fieldConfig":{
        "defaults":{
          "color":{"mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"hidden",
            "axisSoftMax":1.2,
            "axisSoftMin":0,
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"line",
            "fillOpacity":60,
            "gradientMode":"none",
            "hideFrom":{"graph":false,"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"stepBefore",
            "lineWidth":0,
            "pointSize":1,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"never",
            "showValues":false,
            "spanNulls":false,
            "stacking":{"group":"A","mode":"normal"},
            "thresholdsStyle":{"mode":"off"}
          },
          "decimals":0,
          "links":[
            { "targetBlank":true,"title":"AlertInfo ${__field.labels.alertname} on Node ${__field.labels.ins}","url":"/alertmgr/#/alerts?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D"       },
            { "targetBlank":true,"title":"Silence ${__field.labels.alertname} on Node ${__field.labels.ins}"  ,"url":"/alertmgr/#/silences/new?filter=%7Bins%3D%22${__field.labels.ins}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" },
            {                    "title":"Node Instance for ${__field.labels.ins} : Alerts"                   ,"url":"/d/node-instance?var-id=${__field.labels.ins}&viewPanel=227&${__url_time_range}"                                            }
          ],
          "mappings":[],
          "min":0,
          "noValue":"No Alert",
          "thresholds":{"mode":"absolute","steps":[{"color":"green","value":0}]},
          "unit":"none"
        },
        "overrides":[{"matcher":{"id":"byType","options":"time"},"properties":[{"id":"custom.axisPlacement","value":"auto"}]}]
      },
      "gridPos":{"h":5,"w":16,"x":8,"y":21},
      "id":90,
      "options":{"legend":{"calcs":["last"],"displayMode":"table","placement":"right","showLegend":true},"tooltip":{"hideZeros":false,"mode":"multi","sort":"none"}},
      "pluginVersion":"12.3.1",
      "targets":[
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"ALERTS{alertstate=\"firing\", job=\"$job\"}",            "interval":"","legendFormat":"[{{ severity }}] {{alertname}} @ {{ ins }} @ {{ instance }}","range":true,"refId":"A" },
        { "datasource":{"type":"prometheus","uid":"ds-prometheus"},                    "exemplar":false,"expr":"0"                                          ,"hide":true,"interval":"","legendFormat":"Alert"                                                      ,             "refId":"C" }
      ],
      "title":"Firing Alerts",
      "type":"timeseries"
    },
    {
      "collapsed":true,
      "gridPos":{"h":1,"w":24,"x":0,"y":26},
      "id":137,
      "panels":[
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"",
          "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":"#e3e3e3e0","value":0}]}},
            "overrides":[
              {"matcher":{"id":"byName","options":"Hostname"},"properties":[{"id":"links","value":[{"title":"Node Instance: ${__data.fields.Hostname}","url":"/d/node-instance?var-id=${__data.fields.Hostname}&${__url_time_range}"}]},{"id":"custom.minWidth","value":180}]},
              {"matcher":{"id":"byName","options":"IP"},"properties":[{"id":"custom.width","value":140},{"id":"links","value":[{"title":"Node Instance: ${__data.fields.IP}","url":"/d/node-instance?var-id=${__data.fields.IP}&${__url_time_range}"}]},{"id":"custom.align","value":"center"}]},
              {
                "matcher":{"id":"byName","options":"Core"},
                "properties":[
                  {"id":"custom.width","value":40},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}},
                  {
                    "id":"thresholds",
                    "value":{"mode":"absolute","steps":[{"color":"super-light-blue","value":0},{"color":"#3e668f","value":1},{"color":"dark-blue","value":2},{"color":"super-light-green","value":4},{"color":"#346f36cc","value":8},{"color":"dark-green","value":16},{"color":"super-light-orange","value":32},{"color":"semi-dark-orange","value":48},{"color":"super-light-red","value":56},{"color":"semi-dark-red","value":64}]}
                  },
                  {"id":"mappings","value":[{"options":{"match":"null+nan","result":{"color":"transparent","index":0}},"type":"special"}]}
                ]
              },{
                "matcher":{"id":"byName","options":"CPU%"},
                "properties":[
                  { "id":"custom.cellOptions","value":{"mode":"gradient","type":"gauge"}                                                                                                                                                                                                                   },
                  { "id":"color"             ,"value":{"mode":"thresholds"}                                                                                                                                                                                                                                },
                  { "id":"unit"              ,"value":"percentunit"                                                                                                                                                                                                                                        },
                  { "id":"custom.width"      ,"value":120                                                                                                                                                                                                                                                  },
                  { "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":1}]} },
                  { "id":"decimals"          ,"value":1                                                                                                                                                                                                                                                    },
                  { "id":"mappings"          ,"value":[{"options":{"match":"null+nan","result":{"color":"transparent","index":1}},"type":"special"}]                                                                                                                                                       }
                ]
              },{
                "matcher":{"id":"byName","options":"Mem"},
                "properties":[
                  {
                    "id":"thresholds",
                    "value":{
                      "mode":"absolute",
                      "steps":[{"color":"#b3b5b7","value":0},{"color":"super-light-blue","value":1},{"color":"#3275d9c4","value":2},{"color":"dark-blue","value":4},{"color":"#346f36cc","value":8},{"color":"#346f36cc","value":16},{"color":"dark-green","value":32},{"color":"#fcdb72","value":62},{"color":"super-light-orange","value":64},{"color":"#f79f64","value":128},{"color":"#e02f44bf","value":256},{"color":"red","value":512}]
                    }
                  },
                  {"id":"unit","value":"gbytes"},{"id":"custom.width","value":70},{"id":"decimals","value":0},{"id":"custom.cellOptions","value":{"type":"color-background"}},{"id":"mappings","value":[{"options":{"match":"null+nan","result":{"color":"transparent","index":0}},"type":"special"}]}
                ]
              },{
                "matcher":{"id":"byName","options":"Mem%"},
                "properties":[
                  { "id":"custom.width"      ,"value":120                                                                                                                                                                                                                                                  },
                  { "id":"unit"              ,"value":"percentunit"                                                                                                                                                                                                                                        },
                  { "id":"custom.cellOptions","value":{"mode":"gradient","type":"gauge"}                                                                                                                                                                                                                   },
                  { "id":"thresholds"        ,"value":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":0.1},{"color":"#f79f64","value":0.3},{"color":"#f79f64","value":0.5},{"color":"red","value":0.7},{"color":"#b783af","value":0.9},{"color":"text","value":1}]} },
                  { "id":"decimals"          ,"value":1                                                                                                                                                                                                                                                    }
                ]
              },{
                "matcher":{"id":"byName","options":"Space"},
                "properties":[
                  { "id":"custom.width"      ,"value":80                                                                                                                                                                                                                                                                                        },
                  { "id":"unit"              ,"value":"gbytes"                                                                                                                                                                                                                                                                                  },
                  { "id":"thresholds"        ,"value":{"mode":"absolute","steps":[{"color":"super-light-blue","value":0},{"color":"#3e668f","value":32},{"color":"super-light-green","value":256},{"color":"#346f36cc","value":512},{"color":"light-yellow","value":1024},{"color":"#f79f64","value":4096},{"color":"light-red","value":8192}]} },
                  { "id":"decimals"          ,"value":1                                                                                                                                                                                                                                                                                         },
                  { "id":"custom.cellOptions","value":{"type":"color-background"}                                                                                                                                                                                                                                                               },
                  { "id":"mappings"          ,"value":[{"options":{"match":"null+nan","result":{"color":"transparent","index":1}},"type":"special"}]                                                                                                                                                                                            }
                ]
              },{
                "matcher":{"id":"byName","options":"Space%"},
                "properties":[
                  { "id":"custom.width"      ,"value":120                                                                                                                                                                                                                                                        },
                  { "id":"unit"              ,"value":"percentunit"                                                                                                                                                                                                                                              },
                  { "id":"decimals"          ,"value":1                                                                                                                                                                                                                                                          },
                  { "id":"thresholds"        ,"value":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":0.05},{"color":"#EAB839","value":0.8},{"color":"#f79f64","value":0.85},{"color":"red","value":0.9},{"color":"#b783af","value":0.95},{"color":"text","value":0.99}]} },
                  { "id":"custom.cellOptions","value":{"mode":"gradient","type":"gauge"}                                                                                                                                                                                                                         }
                ]
              },
              {"matcher":{"id":"byName","options":"OS Release"},"properties":[{"id":"custom.minWidth","value":150}]},{"matcher":{"id":"byName","options":"Targets"},"properties":[{"id":"custom.width","value":66}]},
              {"matcher":{"id":"byName","options":"Cluster"},"properties":[{"id":"links","value":[{"title":"Node Cluster : ${__data.fields.Cluster}","url":"/d/node-cluster?var-cls=${__data.fields.Cluster}&${__url_time_range}"}]}]},
              {"matcher":{"id":"byName","options":"Instance"},"properties":[{"id":"links","value":[{"title":"Node Instance: ${__data.fields.Instance}","url":"/d/node-instance?var-ins=${__data.fields.Instance}&${__url_time_range}"}]}]},
              {
                "matcher":{"id":"byName","options":"Ping"},
                "properties":[
                  { "id":"unit"              ,"value":"s"                                                                                                                                                                                                                           },
                  { "id":"custom.width"      ,"value":80                                                                                                                                                                                                                            },
                  { "id":"thresholds"        ,"value":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":0.0002},{"color":"#fcdb72","value":0.0005},{"color":"#f79f64","value":0.001},{"color":"red","value":0.01},{"color":"text","value":1}]} },
                  { "id":"mappings"          ,"value":[{"options":{"from":7,"result":{"color":"text","index":0,"text":"\u221e"},"to":9999999},"type":"range"}]                                                                                                                      },
                  { "id":"custom.cellOptions","value":{"type":"color-background"}                                                                                                                                                                                                   }
                ]
              },
              {"matcher":{"id":"byName","options":"HAProxy"},"properties":[{"id":"custom.width","value":140},{"id":"links","value":[{"targetBlank":true,"title":"HAProxy Admin Page : ${__data.fields.Instance}","url":"/haproxy/${__data.fields.Instance}"}]}]},{"matcher":{"id":"byName","options":"Conn"},"properties":[{"id":"custom.width","value":60}]},
              {"matcher":{"id":"byName","options":"Alive"},"properties":[{"id":"custom.width","value":100},{"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":60}]},
              {"matcher":{"id":"byName","options":"TimeX"},"properties":[{"id":"custom.width","value":70},{"id":"mappings","value":[{"options":{"0":{"color":"#cc4637d9","index":1,"text":"Failed"},"1":{"color":"#346f36cc","index":0,"text":"Synced"}},"type":"value"}]},{"id":"custom.cellOptions","value":{"type":"color-background"}}]}
            ]
          },
          "gridPos":{"h":16,"w":24,"x":0,"y":27},
          "id":142,
          "options":{"cellHeight":"sm","showHeader":true,"sortBy":[]},
          "pluginVersion":"12.3.1",
          "targets":[
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"node_up{}"                                                             ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"L" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"group without(ins,cls,instance) (node_uname_info{})"                   ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"A" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"max by (ip) (node:ins:cpu_usage{})"                                    ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"B" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"max by (ip) (node:ins:mem_usage{})"                                    ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"C" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum by (ip,instance) (node:ins:space_usage_max{})"                     ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"D" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"max by (ip) (node:ins:cpu_count{}) "                                   ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"E" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"max by (ip) (node_memory_MemTotal_bytes{}) / 1073741824"               ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"F" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum(node:fs:size_bytes{fstype!~\"fuse.juicefs\"}) by (ip) / 1073741824","format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"G" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"count by (ip) (up{ip!=''})"                                            ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"H" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"max by (ip) (probe_duration_seconds{job=\"ping\"})"                    ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"I" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum by (ip) (haproxy_backend_current_sessions{})"                      ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"J" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"min by (ip) (node_up{})"                                               ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"K" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"min by (ip) (node_timex_sync_status{})"                                ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"M" }
          ],
          "title":"All Nodes",
          "transformations":[
            {"id":"seriesToColumns","options":{"byField":"ip"}},
            {
              "id":"organize",
              "options":{
                "excludeByName":{
                  "Time":true,
                  "Time 1":true,
                  "Time 10":true,
                  "Time 11":true,
                  "Time 13":true,
                  "Time 2":true,
                  "Time 3":true,
                  "Time 4":true,
                  "Time 5":true,
                  "Time 6":true,
                  "Time 7":true,
                  "Time 8":true,
                  "Time 9":true,
                  "Value #A":true,
                  "Value #B":false,
                  "Value #J":false,
                  "Value #L":true,
                  "__name__":true,
                  "__name__ 1":true,
                  "__name__ 2":true,
                  "__name__ 3":true,
                  "cls":false,
                  "cls 1":true,
                  "cls 2":false,
                  "cls 3":true,
                  "domainname":true,
                  "instance":false,
                  "instance 1":false,
                  "instance 2":true,
                  "instance 3":true,
                  "ip 2":true,
                  "ip 3":true,
                  "job":true,
                  "job 1":true,
                  "job 2":true,
                  "job 3":true,
                  "machine":true,
                  "maxmemory_policy":true,
                  "nodename":false,
                  "os":true,
                  "process_id":true,
                  "redis_build_id":true,
                  "release":false,
                  "run_id":true,
                  "sysname":true,
                  "tcp_port":true,
                  "version":true
                },
                "indexByName":{
                  "Time 1":18,
                  "Time 10":27,
                  "Time 11":28,
                  "Time 12":32,
                  "Time 13":39,
                  "Time 2":19,
                  "Time 3":20,
                  "Time 4":21,
                  "Time 5":22,
                  "Time 6":23,
                  "Time 7":24,
                  "Time 8":25,
                  "Time 9":26,
                  "Value #A":7,
                  "Value #B":9,
                  "Value #C":11,
                  "Value #D":13,
                  "Value #E":8,
                  "Value #F":10,
                  "Value #G":12,
                  "Value #H":6,
                  "Value #I":14,
                  "Value #J":15,
                  "Value #K":0,
                  "Value #L":30,
                  "Value #M":16,
                  "__name__":29,
                  "cls":2,
                  "domainname":34,
                  "ins":3,
                  "instance 1":4,
                  "instance 2":31,
                  "ip":1,
                  "job 1":33,
                  "job 2":35,
                  "machine":36,
                  "nodename":5,
                  "release":17,
                  "sysname":37,
                  "version":38
                },
                "renameByName":{
                  "Time 4":"",
                  "Value #A":"",
                  "Value #B":"CPU%",
                  "Value #C":"Mem%",
                  "Value #D":"Space%",
                  "Value #E":"Core",
                  "Value #F":"Mem",
                  "Value #G":"Space",
                  "Value #H":"Targets",
                  "Value #I":"Ping",
                  "Value #J":"Conn",
                  "Value #K":"Alive",
                  "Value #M":"TimeX",
                  "cls":"Cluster",
                  "cls 1":"Cluster",
                  "cls 2":"Cluster",
                  "ins":"Instance",
                  "ins 2":"Instance",
                  "instance":"HAProxy",
                  "instance 1":"HAProxy",
                  "instance 3":"",
                  "ip":"IP",
                  "ip 1":"IP",
                  "job 1":"",
                  "nodename":"Hostname",
                  "redis_mode":"Mode",
                  "redis_version":"Version",
                  "release":"OS Release",
                  "role":"Role"
                }
              }
            }
          ],
          "type":"table"
        }
      ],
      "title":"Members",
      "type":"row"
    },
    {
      "collapsed":true,
      "gridPos":{"h":1,"w":24,"x":0,"y":27},
      "id":109,
      "panels":[
        {
          "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":"area"}
              },
              "decimals":1,
              "links":[{"title":"Node CPU : ${__field.labels.ins} @ ${__field.labels.ip}","url":"/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=172&${__url_time_range}"}],
              "mappings":[{"options":{"-1":{"color":"gray","index":1,"text":"N/A"}},"type":"value"},{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"No Data"}},"type":"special"}],
              "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"green","value":0.1},{"color":"orange","value":0.3},{"color":"orange","value":0.5},{"color":"red","value":0.7},{"color":"purple","value":0.9},{"color":"text","value":1}]},
              "unit":"percentunit"
            },
            "overrides":[]
          },
          "gridPos":{"h":9,"w":12,"x":0,"y":28},
          "id":110,
          "options":{"legend":{"calcs":["max"],"displayMode":"table","placement":"right","showLegend":true,"sortBy":"Max","sortDesc":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
          "pluginVersion":"12.3.1",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"avg_over_time(node:ins:cpu_usage{job=\"$job\"}[1m])","interval":"","legendFormat":"{{ ins }}","range":true,"refId":"A"}],
          "title":"CPU Usage",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"Standard node load in last 15 minutes (divide by cpu core number)",
          "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":"smooth",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"auto",
                "showValues":false,
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"area"}
              },
              "decimals":1,
              "links":[{"title":"Node Load : ${__field.labels.ins} @ ${__field.labels.ip}","url":"/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=186&${__url_time_range}"}],
              "mappings":[{"options":{"-1":{"color":"gray","index":1,"text":"N/A"}},"type":"value"},{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"No Data"}},"type":"special"}],
              "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"green","value":0.1},{"color":"yellow","value":0.3},{"color":"orange","value":0.5},{"color":"#E02F44","value":0.7},{"color":"purple","value":0.9},{"color":"text","value":1}]},
              "unit":"percentunit"
            },
            "overrides":[]
          },
          "gridPos":{"h":9,"w":12,"x":12,"y":28},
          "id":116,
          "options":{"legend":{"calcs":["max"],"displayMode":"table","placement":"right","showLegend":true,"sortBy":"Max","sortDesc":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
          "pluginVersion":"12.3.1",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"avg_over_time(node:ins:stdload15{job=\"$job\"}[1m])","interval":"","legendFormat":"{{ ins }}","range":true,"refId":"A"}],
          "title":"Load 15",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"Memory usage ratio for each nodes:\n(total - avail) / total",
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisBorderShow":false,
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "axisSoftMax":1,
                "axisSoftMin":0,
                "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":"area"}
              },
              "links":[{"title":"Node Memory : ${__field.labels.ins} @ ${__field.labels.ip}","url":"/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=33&${__url_time_range}"}],
              "mappings":[{"options":{"-1":{"color":"gray","index":1,"text":"N/A"}},"type":"value"},{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"No Data"}},"type":"special"}],
              "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"green","value":0.1},{"color":"yellow","value":0.3},{"color":"orange","value":0.5},{"color":"red","value":0.7},{"color":"purple","value":0.9},{"color":"text","value":1}]},
              "unit":"percentunit"
            },
            "overrides":[]
          },
          "gridPos":{"h":9,"w":12,"x":0,"y":37},
          "id":133,
          "options":{"legend":{"calcs":["max"],"displayMode":"table","placement":"right","showLegend":true,"sortBy":"Max","sortDesc":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
          "pluginVersion":"12.3.1",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"node:ins:mem_usage{job=\"$job\"}","interval":"","legendFormat":"{{ ins }}","range":true,"refId":"A"}],
          "title":"Memory Usage",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"Disk Read/Write Time Total / Disk IOPS in last minute",
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisBorderShow":false,
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "barWidthFactor":0.6,
                "drawStyle":"points",
                "fillOpacity":10,
                "gradientMode":"opacity",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"linear",
                "lineWidth":1,
                "pointSize":2,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"auto",
                "showValues":false,
                "spanNulls":false,
                "stacking":{"group":"A","mode":"none"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[{"title":"Node Disk : ${__field.labels.ins}","url":"/d/node-instance?var-id=${__field.labels.ins}&viewPanel=29&${__url_time_range}"}],
              "mappings":[],
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},
              "unit":"s"
            },
            "overrides":[]
          },
          "gridPos":{"h":9,"w":12,"x":12,"y":37},
          "id":143,
          "options":{"legend":{"calcs":["mean"],"displayMode":"table","placement":"right","showLegend":true,"sortBy":"Mean","sortDesc":true},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
          "pluginVersion":"12.3.1",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":true,"expr":"node:dev:disk_io_rt_1m{}","interval":"","legendFormat":"{{ ins }}-{{ device }}","range":true,"refId":"A"}],
          "title":"Disk I/O RT (1m)",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"total disk bandwidth per node",
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisBorderShow":false,
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":47,
                "gradientMode":"opacity",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"stepBefore",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"normal"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[{"title":"Node Disk I/O : ${__field.labels.ins} @ ${__field.labels.ip}","url":"/d/node-instance?var-id=${__field.labels.ip}&var-ip=${__field.labels.ip}&viewPanel=45&${__url_time_range}"}],
              "mappings":[],
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"}]},
              "unit":"Bps",
              "unitScale":true
            },
            "overrides":[]
          },
          "gridPos":{"h":9,"w":12,"x":0,"y":46},
          "id":119,
          "options":{"legend":{"calcs":["mean"],"displayMode":"table","placement":"right","showLegend":true,"sortBy":"Mean","sortDesc":true},"tooltip":{"mode":"multi","sort":"none"}},
          "pluginVersion":"8.0.0",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"exemplar":false,"expr":"node:ins:disk_io_bytes_rate1m{job=\"$job\"}","interval":"","legendFormat":"{{ ins }}","refId":"A"}],
          "title":"Disk IO Bandwidth",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"total network bandwidth (tx+rx) per node in last 1 minute",
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"palette-classic"},
              "custom":{
                "axisBorderShow":false,
                "axisCenteredZero":false,
                "axisColorMode":"text",
                "axisLabel":"",
                "axisPlacement":"auto",
                "barAlignment":0,
                "drawStyle":"line",
                "fillOpacity":47,
                "gradientMode":"opacity",
                "hideFrom":{"legend":false,"tooltip":false,"viz":false},
                "insertNulls":false,
                "lineInterpolation":"stepBefore",
                "lineWidth":1,
                "pointSize":5,
                "scaleDistribution":{"type":"linear"},
                "showPoints":"never",
                "spanNulls":false,
                "stacking":{"group":"A","mode":"normal"},
                "thresholdsStyle":{"mode":"off"}
              },
              "links":[{"title":"Node Network I/O : ${__field.labels.ins} @ ${__field.labels.ip}","url":"/d/node-instance?var-ip=${__field.labels.ip}&var-id=${__field.labels.ip}&viewPanel=185&${__url_time_range}"}],
              "mappings":[],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc"}]},
              "unit":"Bps",
              "unitScale":true
            },
            "overrides":[]
          },
          "gridPos":{"h":9,"w":12,"x":12,"y":46},
          "id":134,
          "options":{"legend":{"calcs":["mean"],"displayMode":"table","placement":"right","showLegend":true,"sortBy":"Mean","sortDesc":true},"tooltip":{"mode":"multi","sort":"none"}},
          "pluginVersion":"8.0.0",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"node:ins:network_io_bytes_rate1m{job=\"$job\"}","interval":"","legendFormat":"{{ ins }}","range":true,"refId":"A"}],
          "title":"Network IO Rate1m",
          "type":"timeseries"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"thresholds"},
              "links":[{"title":"Node : ${__field.labels.ip} Disks","url":"/d/node-instance?var-ip=${__field.labels.ip}&viewPanel=199&${__url_time_range}"}],
              "mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"}],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f"},{"color":"#346f36cc","value":0.1},{"color":"#fcdb72","value":0.8},{"color":"#f79f64","value":0.85},{"color":"red","value":0.9},{"color":"#b783af","value":0.95},{"color":"text","value":1}]},
              "unit":"percentunit",
              "unitScale":true
            },
            "overrides":[]
          },
          "gridPos":{"h":10,"w":12,"x":0,"y":55},
          "id":111,
          "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"textMode":"auto","wideLayout":true},
          "pluginVersion":"10.3.3",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"node:fs:space_usage{job=\"$job\"}","instant":true,"interval":"","legendFormat":"{{ ins }}:{{ mountpoint }}","refId":"A"}],
          "title":"Space Usage",
          "type":"stat"
        },{
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"Network RT in \u00b5s",
          "fieldConfig":{
            "defaults":{
              "color":{"mode":"thresholds"},
              "links":[{"title":"Node : ${__field.labels.ip}","url":"/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}"}],
              "mappings":[{"options":{"match":"null+nan","result":{"color":"gray","index":0,"text":"\u2205"}},"type":"special"},{"options":{"from":7,"result":{"color":"text","index":1,"text":"\u221e"},"to":9999999},"type":"range"}],
              "min":0,
              "thresholds":{"mode":"absolute","steps":[{"color":"#3e668f"},{"color":"#346f36cc","value":0.0002},{"color":"#fcdb72","value":0.0005},{"color":"#f79f64","value":0.001},{"color":"red","value":0.01},{"color":"text","value":7}]},
              "unit":"s",
              "unitScale":true
            },
            "overrides":[
              { "matcher":{"id":"byFrameRefID","options":"A"},"properties":[{"id":"links","value":[{"title":"Node Instsance : ${__field.labels.ip}","url":"/d/node-instance?var-id=${__field.labels.ip}&${__url_time_range}"}]}] },
              { "matcher":{"id":"byFrameRefID","options":"B"},"properties":[{"id":"links","value":[{"title":"Node VIP : ${__field.labels.vip}","url":"/d/node-vip?var-vip=${__field.labels.vip}&${__url_time_range}"}]}]         }
            ]
          },
          "gridPos":{"h":10,"w":12,"x":12,"y":55},
          "id":135,
          "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"textMode":"auto","wideLayout":true},
          "pluginVersion":"10.3.3",
          "targets":[
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"probe_duration_seconds{job=\"ping\"}"                     ,"hide":false,"instant":true,"interval":"","legendFormat":"{{ ins }} @ {{ ip }}" ,"refId":"A" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"avg by (job,vip) (probe_duration_seconds{job=~\".*vip\"})","hide":false,"instant":true,"interval":"","legendFormat":"{{ job }} @ {{ vip }}","refId":"B" }
          ],
          "title":"Ping RT",
          "type":"stat"
        }
      ],
      "title":"Metrics",
      "type":"row"
    },
    {
      "collapsed":true,
      "gridPos":{"h":1,"w":24,"x":0,"y":28},
      "id":126,
      "panels":[
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"HAProxy instances in this deployment, click Admin URL to view more details in haproxy stat page.",
          "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}&var-cls=${cls}&${__url_time_range}"}]},{"id":"custom.width"}]},
              {
                "matcher":{"id":"byName","options":"Session"},
                "properties":[
                  { "id":"custom.width"      ,"value":120                                                                                                                                                                                                                                                                        },
                  { "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":"Busy"},
                "properties":[
                  { "id":"min"               ,"value":0                                                                                                                                                                                                                                                    },
                  { "id":"max"               ,"value":1                                                                                                                                                                                                                                                    },
                  { "id":"unit"              ,"value":"percentunit"                                                                                                                                                                                                                                        },
                  { "id":"custom.cellOptions","value":{"mode":"gradient","type":"gauge"}                                                                                                                                                                                                                   },
                  { "id":"custom.width"      ,"value":162                                                                                                                                                                                                                                                  },
                  { "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":1}]} }
                ]
              },
              {"matcher":{"id":"byName","options":"Admin"},"properties":[{"id":"links","value":[{"targetBlank":true,"title":"HAProxy Admin Page : ${__data.fields.Proxy}","url":"/haproxy/${__data.fields.Proxy}/"}]},{"id":"custom.align","value":"center"}]}
            ]
          },
          "gridPos":{"h":10,"w":8,"x":0,"y":29},
          "id":130,
          "options":{"cellHeight":"sm","showHeader":true,"sortBy":[{"desc":false,"displayName":"Proxy"}]},
          "pluginVersion":"12.3.1",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum by (ins,instance) (haproxy_server_current_sessions{})","format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"A"}],
          "transformations":[{"id":"organize","options":{"excludeByName":{"Time":true,"Time 1":true,"Time 2":true},"indexByName":{"Time 1":3,"Time 2":4,"Value #A":2,"Value #B":1,"ins":0},"renameByName":{"Value":"Session","Value #A":"Session","Value #B":"Route","ins":"Proxy","instance":"Admin"}}}],
          "type":"table"
        },
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"Services exposed in this deployment",
          "fieldConfig":{
            "defaults":{"color":{"mode":"thresholds"},"custom":{"align":"center","cellOptions":{"type":"auto"},"footer":{"reducers":[]},"inspect":false},"links":[],"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]}},
            "overrides":[
              {
                "matcher":{"id":"byName","options":"Session"},
                "properties":[{"id":"mappings","value":[{"options":{"0":{"color":"#3e668f","index":0,"text":"\u23fb"},"1":{"color":"#346f36cc","index":1,"text":"9999999"}},"type":"value"},{"options":{"match":"null+nan","result":{"color":"gray","index":2,"text":"N/A"}},"type":"special"}]},{"id":"custom.cellOptions","value":{"mode":"gradient","type":"color-background"}},{"id":"custom.width","value":70}]
              },
              {"matcher":{"id":"byName","options":"Service"},"properties":[{"id":"links","value":[{"title":"PGSQL Service: ${__data.fields.Service}","url":"/d/pgsql-service?var-svc=${__data.fields.Service}&${__url_time_range}"}]}]},
              {
                "matcher":{"id":"byName","options":"Route"},
                "properties":[
                  { "id":"custom.cellOptions","value":{"mode":"basic","type":"color-background"}                                                                                                                                                                                                                                 },
                  { "id":"custom.width"      ,"value":70                                                                                                                                                                                                                                                                         },
                  { "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"}] }
                ]
              }
            ]
          },
          "gridPos":{"h":10,"w":8,"x":8,"y":29},
          "id":128,
          "options":{"cellHeight":"sm","showHeader":true,"sortBy":[{"desc":true,"displayName":"Session"}]},
          "pluginVersion":"12.3.1",
          "targets":[
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum by (proxy) (haproxy_backend_current_sessions{proxy!=\"stats\"})","format":"table",             "instant":true,"interval":"","legendFormat":"","refId":"A" },
            { "datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum by (proxy) (haproxy_server_status{})"                           ,"format":"table","hide":false,"instant":true,"interval":"","legendFormat":"","refId":"B" }
          ],
          "transformations":[{"id":"seriesToColumns","options":{"byField":"proxy"}},{"id":"organize","options":{"excludeByName":{"Time":true,"Time 1":true,"Time 2":true,"Value":false},"indexByName":{"Time 1":3,"Time 2":4,"Value #A":2,"Value #B":1,"proxy":0},"renameByName":{"Time":"","Value":"Session","Value #A":"Session","Value #B":"Route","proxy":"Service"}}}],
          "type":"table"
        },
        {
          "datasource":{"type":"prometheus","uid":"ds-prometheus"},
          "description":"",
          "fieldConfig":{"defaults":{"color":{"mode":"thresholds"},"links":[{"title":"PGSQL Service: ${__field.labels.proxy}","url":"/d/pgsql-service?var-svc=${__field.labels.proxy}&${__url_time_range}"}],"mappings":[],"noValue":"No Active Services","thresholds":{"mode":"absolute","steps":[{"color":"#3e668f","value":0},{"color":"#346f36cc","value":1}]}},"overrides":[]},
          "gridPos":{"h":10,"w":8,"x":16,"y":29},
          "id":132,
          "options":{"colorMode":"background","graphMode":"area","justifyMode":"auto","orientation":"auto","percentChangeColorMode":"standard","reduceOptions":{"calcs":["lastNotNull"],"fields":"","values":false},"showPercentChange":false,"textMode":"auto","wideLayout":true},
          "pluginVersion":"12.3.1",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","exemplar":false,"expr":"sum by (proxy) (haproxy_backend_current_sessions{proxy!=\"stats\"})","instant":true,"legendFormat":"__auto","range":false,"refId":"A"}],
          "type":"stat"
        },
        {
          "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":17,"w":24,"x":0,"y":39},
          "id":141,
          "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.1",
          "targets":[{"datasource":{"type":"prometheus","uid":"ds-prometheus"},"editorMode":"code","expr":"sum by (cls,proxy) (haproxy_server_status{state=\"UP\"}) > bool 0","instant":false,"legendFormat":"{{ proxy }}","range":true,"refId":"A"}],
          "title":"Service Health",
          "type":"state-timeline"
        }
      ],
      "title":"Services",
      "type":"row"
    }
  ],
  "preload":false,
  "refresh":"",
  "schemaVersion":42,
  "tags":["Pigsty","NODE","Overview","HOME"],
  "templating":{"list":[{"current":{},"datasource":{"type":"prometheus","uid":"ds-prometheus"},"definition":"label_values(node_load1, job)","description":"Environment identifier (nodes by default)","hide":2,"includeAll":false,"label":"Environment","name":"job","options":[],"query":{"query":"label_values(node_load1, job)","refId":"StandardVariableQuery"},"refresh":1,"regex":"","type":"query"}]},
  "time":{"from":"now-1h","to":"now"},
  "timepicker":{},
  "timezone":"browser",
  "title":"Node Overview",
  "uid":"node-overview",
  "version":1,
  "weekStart":""
}