Grafana dashboard: Dashboard
Description: General Global System State

Display ALL probes, linux nodes, windows, tenants

{
  "__inputs": [
    {
      "name": "DS_PROMXY",
      "label": "Promxy",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "dashlist",
      "name": "Dashboard list",
      "version": ""
    },
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.5.15"
    },
    {
      "type": "panel",
      "id": "grafana-polystat-panel",
      "name": "Polystat",
      "version": "1.2.8"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "General Global System State",
  "editable": true,
  "gnetId": 15885,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1647078136716,
  "links": [
    {
      "asDropdown": true,
      "icon": "external link",
      "tags": [],
      "title": "监控面板",
      "type": "dashboards"
    }
  ],
  "panels": [
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 21,
      "panels": [],
      "title": "General",
      "type": "row"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "green",
                "value": 100
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 7,
        "x": 0,
        "y": 1
      },
      "id": 9,
      "options": {
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": false,
        "text": {}
      },
      "pluginVersion": "7.5.15",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum({__name__=~\"probe_success|up\",_tenant=~\"$tenant\"})/count({__name__=~\"probe_success|up\",_tenant=~\"$tenant\"})*100",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "transparent": true,
      "type": "gauge"
    },
    {
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a",
        "#4040a0"
      ],
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "gridPos": {
        "h": 20,
        "w": 17,
        "x": 7,
        "y": 1
      },
      "id": 11,
      "mappingType": 1,
      "mappingTypes": [
        {
          "$$hashKey": "object:125",
          "name": "value to text",
          "value": 1
        },
        {
          "$$hashKey": "object:126",
          "name": "range to text",
          "value": 2
        }
      ],
      "nullPointMode": "connected",
      "pluginVersion": "7.1.5",
      "polystat": {
        "animationSpeed": 2500,
        "columnAutoSize": false,
        "columns": 16,
        "defaultClickThrough": "",
        "defaultClickThroughNewTab": false,
        "defaultClickThroughSanitize": false,
        "displayLimit": "",
        "ellipseCharacters": 18,
        "ellipseEnabled": false,
        "fontAutoColor": true,
        "fontAutoScale": true,
        "fontColor": "",
        "fontSize": 18,
        "fontType": "Roboto",
        "globalDecimals": 2,
        "globalDisplayMode": "all",
        "globalDisplayTextTriggeredEmpty": "OK",
        "globalOperatorName": "current",
        "globalThresholds": [
          {
            "$$hashKey": "object:134",
            "color": "#F2495C",
            "state": 0,
            "value": 0
          },
          {
            "$$hashKey": "object:135",
            "color": "#299c46",
            "state": 0,
            "value": 1
          }
        ],
        "globalUnitFormat": "short",
        "gradientEnabled": true,
        "hexagonSortByDirection": 1,
        "hexagonSortByField": "name",
        "maxMetrics": 0,
        "polygonBorderColor": "black",
        "polygonBorderSize": 2,
        "polygonGlobalFillColor": "#0a50a1",
        "radius": "",
        "radiusAutoSize": true,
        "regexPattern": "",
        "rowAutoSize": false,
        "rows": 12,
        "shape": "hexagon_pointed_top",
        "tooltipDisplayMode": "all",
        "tooltipDisplayTextTriggeredEmpty": "OK",
        "tooltipEnabled": true,
        "tooltipFontSize": 12,
        "tooltipFontType": "Roboto",
        "tooltipPrimarySortDirection": 2,
        "tooltipPrimarySortField": "thresholdLevel",
        "tooltipSecondarySortDirection": 2,
        "tooltipSecondarySortField": "value",
        "tooltipTimestampEnabled": false,
        "valueEnabled": true
      },
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "repeat": null,
      "repeatDirection": "h",
      "savedComposites": [
        {
          "$$hashKey": "object:120",
          "animateMode": "all",
          "clickThrough": "",
          "compositeName": "",
          "enabled": true,
          "hideMembers": true,
          "label": "COMPOSITE 1",
          "members": [
            {}
          ],
          "newTabEnabled": true,
          "sanitizeURLEnabled": true,
          "sanitizedURL": "",
          "showName": true,
          "showValue": true,
          "thresholdLevel": 0
        }
      ],
      "savedOverrides": [],
      "targets": [
        {
          "exemplar": true,
          "expr": "label_replace(up{job!=\"ping-probe\",_tenant=~\"$tenant\"}, \"instance_ip\", \"$2\", \"instance\", \"(192[.]168[.]|https?://)?([0-9.+]+|.*).*\")",
          "format": "time_series",
          "instant": true,
          "interval": "",
          "legendFormat": "{{_tenant}}/{{instance_ip}}/{{job}}",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "label_replace(probe_success{_tenant=~\"$tenant\"}, \"instance_ip\", \"$2\", \"instance\", \"(192[.]168[.]|https?://)?([0-9.+]+|.*).*\")",
          "format": "time_series",
          "instant": true,
          "interval": "",
          "legendFormat": "{{_tenant}}/{{instance_ip}}/{{job}}",
          "refId": "B"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "transparent": true,
      "type": "grafana-polystat-panel",
      "valueMaps": [
        {
          "$$hashKey": "object:128",
          "op": "=",
          "text": "OK",
          "value": "1"
        },
        {
          "$$hashKey": "object:129",
          "op": "=",
          "text": "异常",
          "value": "0"
        }
      ]
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 7,
        "x": 0,
        "y": 8
      },
      "id": 7,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.15",
      "targets": [
        {
          "exemplar": true,
          "expr": "count({__name__=~\"probe_success|up\",_tenant=~\"$tenant\"})",
          "format": "time_series",
          "instant": true,
          "interval": "",
          "legendFormat": "监控目标",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_PROMXY}",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Tenant"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 100
              },
              {
                "id": "displayName",
                "value": "组织"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Live"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 60
              },
              {
                "id": "unit",
                "value": "percentunit"
              },
              {
                "id": "custom.displayMode",
                "value": "color-text"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red",
                      "value": null
                    },
                    {
                      "color": "green",
                      "value": 1
                    }
                  ]
                }
              },
              {
                "id": "displayName",
                "value": "可用率"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "UP"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 60
              },
              {
                "id": "displayName",
                "value": "正常数"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Total"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 80
              },
              {
                "id": "displayName",
                "value": "总数"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "总数"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 67
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "正常数"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 61
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "可用率"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 73
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "组织"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 89
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Linux"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 52
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Win"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 66
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 7,
        "x": 0,
        "y": 14
      },
      "id": 17,
      "options": {
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "总数"
          }
        ]
      },
      "pluginVersion": "7.5.15",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum({__name__=~\"probe_success|up\",_tenant=~\"$tenant\"}) by (_tenant)/count({__name__=~\"probe_success|up\",_tenant=~\"$tenant\"}) by (_tenant)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "sum({__name__=~\"probe_success|up\",_tenant=~\"$tenant\"}) by (_tenant)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "count({__name__=~\"probe_success|up\",_tenant=~\"$tenant\"}) by (_tenant)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "sum(node_uname_info{_tenant=~\"$tenant\"}) by (_tenant)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "D"
        },
        {
          "exemplar": true,
          "expr": "sum(windows_os_info{_tenant=~\"$tenant\"}) by (_tenant)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "E"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "_tenant"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true,
              "Time 1": true,
              "Time 2": true,
              "Time 3": true,
              "Time 4": true,
              "Time 5": true
            },
            "indexByName": {},
            "renameByName": {
              "Value": "UP",
              "Value #A": "UP",
              "Value #B": "Live",
              "Value #C": "Total",
              "Value #D": "Linux",
              "Value #E": "Win",
              "_tenant": "Tenant"
            }
          }
        }
      ],
      "transparent": true,
      "type": "table"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 22
      },
      "id": 3,
      "links": [],
      "options": {
        "folderId": 0,
        "maxItems": 30,
        "query": "",
        "showHeadings": true,
        "showRecentlyViewed": true,
        "showSearch": false,
        "showStarred": true,
        "tags": []
      },
      "pluginVersion": "7.5.15",
      "tags": [],
      "title": "Dashboards",
      "type": "dashlist"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 29
      },
      "id": 23,
      "panels": [],
      "title": "Linux",
      "type": "row"
    },
    {
      "datasource": "${DS_PROMXY}",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "运行时间"
            },
            "properties": [
              {
                "id": "unit",
                "value": "s"
              },
              {
                "id": "custom.width",
                "value": 82
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "内存"
            },
            "properties": [
              {
                "id": "unit",
                "value": "bytes"
              },
              {
                "id": "custom.width",
                "value": 68
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "CPU%"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "#EAB839",
                      "value": 70
                    },
                    {
                      "color": "red",
                      "value": 85
                    }
                  ]
                }
              },
              {
                "id": "custom.width",
                "value": 60
              },
              {
                "id": "unit",
                "value": "percent"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "内存%"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "#EAB839",
                      "value": 70
                    },
                    {
                      "color": "red",
                      "value": 85
                    }
                  ]
                }
              },
              {
                "id": "custom.width",
                "value": 60
              },
              {
                "id": "unit",
                "value": "percent"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "分区%"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "#EAB839",
                      "value": 70
                    },
                    {
                      "color": "red",
                      "value": 85
                    }
                  ]
                }
              },
              {
                "id": "custom.width",
                "value": 60
              },
              {
                "id": "unit",
                "value": "percent"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "5m负载"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 87
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "CPU"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 63
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "release"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 182
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "nodename"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 162
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "磁盘读取"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "#EAB839",
                      "value": 20000000
                    },
                    {
                      "color": "red",
                      "value": 50000000
                    }
                  ]
                }
              },
              {
                "id": "unit",
                "value": "Bps"
              },
              {
                "id": "custom.width",
                "value": 100
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "磁盘写入"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "#EAB839",
                      "value": 10000010
                    },
                    {
                      "color": "red",
                      "value": 50000000
                    }
                  ]
                }
              },
              {
                "id": "unit",
                "value": "Bps"
              },
              {
                "id": "custom.width",
                "value": 90
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "连接数"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "#EAB839",
                      "value": 1000
                    },
                    {
                      "color": "red",
                      "value": 2000
                    }
                  ]
                }
              },
              {
                "id": "custom.width",
                "value": 60
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "TCP_tw"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "#EAB839",
                      "value": 500
                    },
                    {
                      "color": "red",
                      "value": 800
                    }
                  ]
                }
              },
              {
                "id": "custom.width",
                "value": 60
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "下载"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "#EAB839",
                      "value": 20000000
                    },
                    {
                      "color": "red",
                      "value": 50000000
                    }
                  ]
                }
              },
              {
                "id": "unit",
                "value": "Bps"
              },
              {
                "id": "custom.width",
                "value": 113
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "上传"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "#EAB839",
                      "value": 20000000
                    },
                    {
                      "color": "red",
                      "value": 50000000
                    }
                  ]
                }
              },
              {
                "id": "unit",
                "value": "Bps"
              },
              {
                "id": "custom.width",
                "value": 112
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "instance"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 147
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 20,
        "w": 24,
        "x": 0,
        "y": 30
      },
      "id": 19,
      "options": {
        "frameIndex": 0,
        "showHeader": true,
        "sortBy": [
          {
            "desc": false,
            "displayName": "nodename"
          }
        ]
      },
      "pluginVersion": "7.5.15",
      "targets": [
        {
          "exemplar": true,
          "expr": "node_uname_info{_tenant=~\"$tenant\"} - 0",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "sum(time() - node_boot_time_seconds{_tenant=~\"$tenant\"})by(instance)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "node_memory_MemTotal_bytes{_tenant=~\"$tenant\"} - 0",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "count(node_cpu_seconds_total{mode=\"system\",_tenant=~\"$tenant\"}) by (instance)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "D"
        },
        {
          "exemplar": true,
          "expr": "node_load5{_tenant=~\"$tenant\"}",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "E"
        },
        {
          "exemplar": true,
          "expr": "(1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",_tenant=~\"$tenant\"}[$__rate_interval])) by (instance)) * 100",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "F"
        },
        {
          "exemplar": true,
          "expr": "(1 - (node_memory_MemAvailable_bytes{_tenant=~\"$tenant\"} / (node_memory_MemTotal_bytes{_tenant=~\"$tenant\"})))* 100",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "G"
        },
        {
          "exemplar": true,
          "expr": "max((node_filesystem_size_bytes{fstype=~\"ext.?|xfs|zfs\",_tenant=~\"$tenant\"}-node_filesystem_free_bytes{fstype=~\"ext.?|xfs|zfs\",_tenant=~\"$tenant\"}) *100/(node_filesystem_avail_bytes {fstype=~\"ext.?|xfs|zfs\",_tenant=\"$tenant\"}+(node_filesystem_size_bytes{fstype=~\"ext.?|xfs|zfs\",_tenant=~\"$tenant\"}-node_filesystem_free_bytes{fstype=~\"ext.?|xfs|zfs\",_tenant=~\"$tenant\"})))by(instance)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "H"
        },
        {
          "exemplar": true,
          "expr": "max(rate(node_disk_read_bytes_total{_tenant=~\"$tenant\"}[$__rate_interval])) by (instance)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "最大读取",
          "refId": "I"
        },
        {
          "exemplar": true,
          "expr": "max(rate(node_disk_written_bytes_total{_tenant=~\"$tenant\"}[$__rate_interval])) by (instance)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "最大写入",
          "refId": "J"
        },
        {
          "exemplar": true,
          "expr": "node_netstat_Tcp_CurrEstab{_tenant=~\"$tenant\"} - 0",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "连接数",
          "refId": "K"
        },
        {
          "exemplar": true,
          "expr": "node_sockstat_TCP_tw{_tenant=~\"$tenant\"} - 0",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "TCP Time Wait",
          "refId": "L"
        },
        {
          "exemplar": true,
          "expr": "max(rate(node_network_receive_bytes_total{_tenant=~\"$tenant\"}[$__rate_interval])*8) by (instance)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "下载带宽",
          "refId": "M"
        },
        {
          "exemplar": true,
          "expr": "max(rate(node_network_transmit_bytes_total{_tenant=~\"$tenant\"}[$__rate_interval])*8) by (instance)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "上传带宽",
          "refId": "N"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Linux Nodes",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "instance"
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "pattern": "_tenant$|instance$|nodename|Value.*|release"
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time 1": true,
              "Time 2": true,
              "Value #A": true,
              "Value #B": false,
              "cluster": true,
              "container": true,
              "domainname": true,
              "endpoint": true,
              "job": true,
              "kubernetes_node": true,
              "machine": true,
              "namespace": true,
              "nodename": false,
              "pod": true,
              "prometheus": true,
              "release": false,
              "service": true,
              "sysname": true,
              "tenant": true,
              "version": true
            },
            "indexByName": {
              "Value #A": 4,
              "Value #C": 5,
              "Value #E": 6,
              "Value #G": 7,
              "Value #K": 8,
              "Value #L": 9,
              "_tenant": 0,
              "instance 1": 1,
              "nodename": 2,
              "release": 3
            },
            "renameByName": {
              "Value #B": "运行时间",
              "Value #C": "内存",
              "Value #D": "CPU",
              "Value #E": "5m负载",
              "Value #F": "CPU%",
              "Value #G": "内存%",
              "Value #H": "分区%",
              "Value #I": "磁盘读取",
              "Value #J": "磁盘写入",
              "Value #K": "连接数",
              "Value #L": "TCP_tw",
              "Value #M": "下载",
              "Value #N": "上传",
              "instance 1": "instance"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 50
      },
      "id": 25,
      "panels": [],
      "title": "Windows",
      "type": "row"
    },
    {
      "datasource": "${DS_PROMXY}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "right",
            "filterable": false
          },
          "decimals": 2,
          "displayName": "",
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "product"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "操作系统"
              },
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "custom.align",
                "value": null
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "hostname"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "主机名"
              },
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "custom.align",
                "value": null
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "instance"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "instance(连接到明细)"
              },
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "custom.align",
                "value": null
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "CPU核数"
              },
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "decimals",
                "value": 0
              },
              {
                "id": "custom.align",
                "value": null
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #C"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "总内存"
              },
              {
                "id": "unit",
                "value": "bytes"
              },
              {
                "id": "custom.align",
                "value": null
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #D"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "运行时间"
              },
              {
                "id": "unit",
                "value": "s"
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "custom.align",
                "value": null
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(245, 54, 54, 0.9)",
                      "value": null
                    },
                    {
                      "color": "rgba(237, 129, 40, 0.89)",
                      "value": 2592
                    },
                    {
                      "color": "rgba(50, 172, 45, 0.97)",
                      "value": 4320
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #E"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "C盘使用率"
              },
              {
                "id": "unit",
                "value": "percentunit"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "custom.align",
                "value": null
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(50, 172, 45, 0.97)",
                      "value": null
                    },
                    {
                      "color": "rgba(237, 129, 40, 0.89)",
                      "value": 60
                    },
                    {
                      "color": "rgba(245, 54, 54, 0.9)",
                      "value": 80
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #F"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "使用最多分区%"
              },
              {
                "id": "unit",
                "value": "percentunit"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "custom.align",
                "value": null
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(50, 172, 45, 0.97)",
                      "value": null
                    },
                    {
                      "color": "rgba(237, 129, 40, 0.89)",
                      "value": 60
                    },
                    {
                      "color": "rgba(245, 54, 54, 0.9)",
                      "value": 80
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #G"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "进程数"
              },
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "decimals",
                "value": 0
              },
              {
                "id": "custom.align",
                "value": null
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #H"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "运行服务"
              },
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "decimals",
                "value": 0
              },
              {
                "id": "custom.align",
                "value": null
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #I"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "CPU使用率"
              },
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "custom.align",
                "value": null
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(50, 172, 45, 0.97)",
                      "value": null
                    },
                    {
                      "color": "rgba(237, 129, 40, 0.89)",
                      "value": 50
                    },
                    {
                      "color": "rgba(245, 54, 54, 0.9)",
                      "value": 70
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #J"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "内存使用率"
              },
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "custom.align",
                "value": null
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(50, 172, 45, 0.97)",
                      "value": null
                    },
                    {
                      "color": "rgba(237, 129, 40, 0.89)",
                      "value": 60
                    },
                    {
                      "color": "rgba(245, 54, 54, 0.9)",
                      "value": 80
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value #K"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "CPU频率"
              },
              {
                "id": "unit",
                "value": "rothz"
              },
              {
                "id": "decimals",
                "value": 2
              },
              {
                "id": "custom.align",
                "value": null
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "CPU核数"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 106
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "CPU频率"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 112
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "总内存"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 118
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "C盘使用率"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 121
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "内存使用率"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 132
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "进程数"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 104
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "运行服务"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 112
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 51
      },
      "id": 15,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.15",
      "targets": [
        {
          "exemplar": true,
          "expr": "windows_cs_hostname{_tenant=~\"$tenant\"}-0",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "time() - windows_system_system_up_time{_tenant=~\"$tenant\"}",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "D"
        },
        {
          "exemplar": true,
          "expr": "windows_cs_logical_processors{_tenant=~\"$tenant\"} - 0",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "avg by (instance) (windows_cpu_core_frequency_mhz{_tenant=~\"$tenant\"}) * 1000 * 1000",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "K"
        },
        {
          "exemplar": true,
          "expr": "100 - (avg by (instance) (irate(windows_cpu_time_total{_tenant=~\"$tenant\",mode=\"idle\"}[2m])) * 100)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "CPU使用率",
          "refId": "I"
        },
        {
          "exemplar": true,
          "expr": "windows_cs_physical_memory_bytes{_tenant=~\"$tenant\"} - 0",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "100 - 100 * windows_os_physical_memory_free_bytes{_tenant=~\"$tenant\"} / windows_cs_physical_memory_bytes{_tenant=~\"$tenant\"}",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "内存使用率",
          "refId": "J"
        },
        {
          "exemplar": true,
          "expr": "1 - (windows_logical_disk_free_bytes{_tenant=~\"$tenant\",volume=~\"C:\"}/windows_logical_disk_size_bytes{_tenant=~\"$tenant\",volume=~\"C:\"})",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "E"
        },
        {
          "exemplar": true,
          "expr": "max by (instance) (1-windows_logical_disk_free_bytes{_tenant=~\"$tenant\"}/windows_logical_disk_size_bytes{_tenant=~\"$tenant\"})",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "F"
        },
        {
          "exemplar": true,
          "expr": "windows_os_processes{_tenant=~\"$tenant\"}",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "G"
        },
        {
          "exemplar": true,
          "expr": "sum by (instance) (windows_service_state{_tenant=~\"$tenant\",state=~\"running\"})",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "H"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Windows节点",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "instance"
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "pattern": "_tenant$|hostname|product|Value #|product"
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Value #A": true
            },
            "indexByName": {},
            "renameByName": {}
          }
        }
      ],
      "type": "table"
    }
  ],
  "refresh": "30s",
  "schemaVersion": 27,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "Promxy",
          "value": "Promxy"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Datasource",
        "multi": false,
        "name": "ds",
        "options": [],
        "query": "prometheus",
        "queryValue": "",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": ".+",
        "current": {},
        "datasource": "${DS_PROMXY}",
        "definition": "label_values(up,_tenant)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Tenant",
        "multi": true,
        "name": "tenant",
        "options": [],
        "query": {
          "query": "label_values(up,_tenant)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timepicker": {
    "hidden": false,
    "refresh_intervals": [
      "15s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ],
    "type": "timepicker"
  },
  "timezone": "browser",
  "title": "Dashboard",
  "uid": "general",
  "version": 3
}