OpsMind-服务列表
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": 2565,
  "graphTooltip": 0,
  "hideControls": true,
  "id": null,
  "links": [],
  "rows": [
    {
      "collapse": false,
      "height": 250,
      "panels": [
        {
          "content": "",
          "height": "30",
          "id": 1,
          "links": [
            {
              "dashUri": "db/opsmind-fu-wu-xiang-qing",
              "dashboard": "OpsMind-服务详情",
              "includeVars": true,
              "keepTime": true,
              "params": "var-service=$service_ret",
              "targetBlank": true,
              "title": "查看服务详情",
              "type": "dashboard"
            },
            {
              "dashUri": "db/opsmind-ji-qi-lie-biao",
              "dashboard": "OpsMind-机器列表",
              "includeVars": true,
              "keepTime": true,
              "params": "var-service=$service_ret",
              "targetBlank": true,
              "title": "部署机器列表",
              "type": "dashboard"
            },
            {
              "dashUri": "db/opsmind-ji-qi-xiang-qing",
              "dashboard": "OpsMind-机器详情",
              "includeVars": true,
              "keepTime": true,
              "params": "var-service=$service_ret",
              "targetBlank": true,
              "title": "服务所在机器详情",
              "type": "dashboard"
            }
          ],
          "minSpan": 3,
          "mode": "markdown",
          "repeat": "service_ret",
          "span": 3,
          "title": "$service_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": "cluster",
        "options": [],
        "query": "label_values(xhost{cluster=-\"*\",app=-\"*\",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": "host",
        "options": [],
        "query": "label_values(xhost{cluster=-\"/$cluster/\",app=-\"*\",service=-\"*\",host=-\"*\",ret=\"name\"},host)",
        "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=-\"*\",host=-\"/$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": "service_ret",
        "options": [],
        "query": "label_values(xhost{cluster=-\"/$cluster/\",app=-\"/$app/\",service=-\"*\",host=-\"/$host/\",ret=\"name\"},service)",
        "refresh": 1,
        "regex": "",
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "OpsMind-服务列表",
  "version": 38,
  "description": "OpsMind-服务列表"
}