{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": 10,
  "iteration": 1648571045273,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": "clinic-log-analysis",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 22,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 6,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "ename.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "20"
              },
              "type": "terms"
            },
            {
              "field": "timestamp",
              "id": "2",
              "settings": {
                "interval": "1m"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": "clinic-log-analysis",
          "metrics": [
            {
              "field": "count",
              "hide": false,
              "id": "1",
              "type": "sum"
            }
          ],
          "query": "cluster_id:${tidb_cluster} AND component:${component} AND level:${level}",
          "refId": "A",
          "timeField": "timestamp"
        }
      ],
      "title": "按「事件」分类",
      "type": "timeseries"
    },
    {
      "datasource": "clinic-log-analysis",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 22,
        "w": 10,
        "x": 12,
        "y": 0
      },
      "id": 2,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "host.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "20"
              },
              "type": "terms"
            },
            {
              "field": "timestamp",
              "id": "2",
              "settings": {
                "interval": "1m"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": "clinic-log-analysis",
          "metrics": [
            {
              "field": "count",
              "id": "1",
              "type": "sum"
            }
          ],
          "query": "cluster_id:${tidb_cluster} AND component:${component} AND level:${level}",
          "refId": "A",
          "timeField": "timestamp"
        }
      ],
      "title": "按「组件实例」分类",
      "type": "timeseries"
    }
  ],
  "refresh": false,
  "schemaVersion": 35,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "datasource": "Prometheus-fake",
        "definition": "",
        "hide": 0,
        "includeAll": false,
        "label": "tidb_cluster",
        "multi": false,
        "name": "tidb_cluster",
        "options": [],
        "query": {
          "query": "label_values({job=\"pd\"}, tidb_cluster)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {
          "selected": true,
          "text": [
            "TiDB",
            "TiKV",
            "PD"
          ],
          "value": [
            "TiDB",
            "TiKV",
            "PD"
          ]
        },
        "hide": 0,
        "includeAll": false,
        "label": "component",
        "multi": true,
        "name": "component",
        "options": [
          {
            "selected": true,
            "text": "TiDB",
            "value": "TiDB"
          },
          {
            "selected": true,
            "text": "TiKV",
            "value": "TiKV"
          },
          {
            "selected": true,
            "text": "PD",
            "value": "PD"
          }
        ],
        "query": "TiDB,TiKV,PD",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "current": {
          "selected": true,
          "text": [
            "INFO",
            "WARN",
            "ERROR"
          ],
          "value": [
            "INFO",
            "WARN",
            "ERROR"
          ]
        },
        "hide": 0,
        "includeAll": false,
        "label": "level",
        "multi": true,
        "name": "level",
        "options": [
          {
            "selected": true,
            "text": "INFO",
            "value": "INFO"
          },
          {
            "selected": true,
            "text": "WARN",
            "value": "WARN"
          },
          {
            "selected": true,
            "text": "ERROR",
            "value": "ERROR"
          }
        ],
        "query": "INFO,WARN,ERROR",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      }
    ]
  },
  "time": {
    "from": "2021-12-29T07:48:40.709Z",
    "to": "2021-12-29T07:51:11.200Z"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Log Analysis",
  "uid": "QXz1jcynz",
  "version": 8,
  "weekStart": ""
}
