Grafana dashboard: dataset_result_cmp
Description: 查看「多个选定算法」在「选定数据集」下的整体检测指标的对比


{
  "__inputs": [
    {
      "name": "DS_TSAD_EVALUATOR",
      "label": "TSAD_Evaluator",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__elements": [],
  "__requires": [
    {
      "type": "panel",
      "id": "barchart",
      "name": "Bar chart",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.4.5"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    }
  ],
  "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": null,
  "iteration": 1655101220383,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TSAD_EVALUATOR}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "hidden",
            "axisSoftMin": 0,
            "fillOpacity": 80,
            "gradientMode": "hue",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineWidth": 1,
            "scaleDistribution": {
              "type": "linear"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 15,
        "w": 6,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "maxPerRow": 4,
      "options": {
        "barRadius": 0,
        "barWidth": 0.97,
        "groupWidth": 0.7,
        "legend": {
          "calcs": [],
          "displayMode": "hidden",
          "placement": "bottom"
        },
        "orientation": "vertical",
        "showValue": "auto",
        "stacking": "none",
        "text": {},
        "tooltip": {
          "mode": "single",
          "sort": "none"
        },
        "xTickLabelRotation": 0,
        "xTickLabelSpacing": 0
      },
      "pluginVersion": "8.0.6",
      "repeat": "metric",
      "repeatDirection": "h",
      "targets": [
        {
          "query": "select last(detector_name), mean($metric) from result_ts_meta where \"ds_name\" = '$dataset' and \"detector_name\" =~ /$detector/ group by detector_name",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "table"
        }
      ],
      "title": "$metric",
      "transparent": true,
      "type": "barchart"
    }
  ],
  "schemaVersion": 35,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_TSAD_EVALUATOR}"
        },
        "definition": "select  ds_name from (select *  from result_ts_meta)",
        "hide": 0,
        "includeAll": false,
        "multi": false,
        "name": "dataset",
        "options": [],
        "query": "select  ds_name from (select *  from result_ts_meta)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_TSAD_EVALUATOR}"
        },
        "definition": "select  detector_name from (select * from result_ts_meta where \"ds_name\" = '$dataset')",
        "hide": 0,
        "includeAll": false,
        "multi": true,
        "name": "detector",
        "options": [],
        "query": "select  detector_name from (select * from result_ts_meta where \"ds_name\" = '$dataset')",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_TSAD_EVALUATOR}"
        },
        "definition": "show field keys from \"result_ts_meta\"",
        "hide": 0,
        "includeAll": false,
        "multi": true,
        "name": "metric",
        "options": [],
        "query": "show field keys from \"result_ts_meta\"",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "dataset_result_cmp",
  "uid": "zdiHqhE7k",
  "version": 1,
  "weekStart": "",
  "gnetId": 16438,
  "description": "查看「多个选定算法」在「选定数据集」下的整体检测指标的对比"
}