Grafana dashboard: OpsMind-机器列表
Description: OpsMind-机器列表


{
  "__inputs": [
    {
      "name": "DS_OPSMIND",
      "label": "OpsMind",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "4.2.0"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    }
  ],
  "annotations": {
    "list": []
  },
  "editable": false,
  "gnetId": 2562,
  "graphTooltip": 0,
  "hideControls": true,
  "id": null,
  "links": [],
  "refresh": false,
  "rows": [
    {
      "collapse": false,
      "height": 266,
      "panels": [
        {
          "content": "",
          "height": "10",
          "id": 1,
          "links": [
            {
              "dashUri": "db/opsmind-fu-wu-lie-biao",
              "dashboard": "OpsMind-服务列表",
              "includeVars": true,
              "keepTime": true,
              "params": "var-host=$host_ret",
              "targetBlank": true,
              "title": "部署服务列表",
              "type": "dashboard"
            },
            {
              "dashUri": "db/opsmind-ji-qi-xiang-qing",
              "dashboard": "OpsMind-机器详情",
              "includeVars": true,
              "keepTime": true,
              "params": "var-host=$host_ret",
              "targetBlank": true,
              "title": "查看机器详情",
              "type": "dashboard"
            }
          ],
          "minSpan": 1,
          "mode": "markdown",
          "repeat": "host_ret",
          "span": 3,
          "title": "$host_ret",
          "type": "text"
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Dashboard Row",
      "titleSize": "h6"
    }
  ],
  "schemaVersion": 14,
  "style": "dark",
  "tags": [
    "OpsMind"
  ],
  "templating": {
    "list": [
      {
        "allValue": "*",
        "current": {},
        "datasource": "${DS_OPSMIND}",
        "hide": 0,
        "includeAll": true,
        "label": "服务",
        "multi": true,
        "name": "service",
        "options": [],
        "query": "label_values(xhost{cluster=-\"*\",app=-\"*\",service=-\"*\",host=-\"*\",ret=\"name\"},service)",
        "refresh": 1,
        "regex": "",
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "*",
        "current": {},
        "datasource": "${DS_OPSMIND}",
        "hide": 0,
        "includeAll": true,
        "label": "集群",
        "multi": true,
        "name": "cluster",
        "options": [],
        "query": "label_values(xhost{cluster=-\"*\",app=-\"*\",service=-\"/$service/\",host=-\"*\",ret=\"name\"},cluster)",
        "refresh": 1,
        "regex": "",
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "*",
        "current": {},
        "datasource": "${DS_OPSMIND}",
        "hide": 0,
        "includeAll": true,
        "label": "业务",
        "multi": true,
        "name": "app",
        "options": [],
        "query": "label_values(xhost{cluster=-\"/$cluster/\",app=-\"*\",service=-\"/$service/\",host=-\"*\",ret=\"name\"},app)",
        "refresh": 1,
        "regex": "",
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "",
        "current": {},
        "datasource": "${DS_OPSMIND}",
        "hide": 2,
        "includeAll": true,
        "label": "",
        "multi": true,
        "name": "host_ret",
        "options": [],
        "query": "label_values(xhost{cluster=-\"/$cluster/\",app=-\"/$app/\",service=-\"/$service/\",host=-\"*\",ret=\"name\"},host)",
        "refresh": 1,
        "regex": "",
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "2017-07-03T19:42:44.137Z",
    "to": "2017-07-04T07:42:44.139Z"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "OpsMind-机器列表",
  "version": 72,
  "description": "OpsMind-机器列表"
}