Grafana dashboard: BT Downloader Metrics


{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__elements": [],
  "__requires": [
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.3.3"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph (old)",
      "version": ""
    },
    {
      "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",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1642264199522,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 2,
        "x": 0,
        "y": 0
      },
      "id": 4,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "8.3.3",
      "targets": [
        {
          "expr": "count(downloader_up{job=~\"$job\", name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\"}==1)",
          "instant": true,
          "interval": "",
          "legendFormat": "在线",
          "refId": "A"
        },
        {
          "expr": "count(downloader_up{job=~\"$job\", name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\"}==0)",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "离线",
          "refId": "B"
        }
      ],
      "type": "stat"
    },
    {
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 0
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 4,
        "x": 2,
        "y": 0
      },
      "id": 6,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "8.3.3",
      "targets": [
        {
          "expr": "sum(downloader_download_bytes_total{job=~\"$job\", name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\"})",
          "interval": "",
          "legendFormat": "全时下载",
          "refId": "A"
        },
        {
          "expr": "sum(downloader_upload_bytes_total{job=~\"$job\", name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\"})",
          "interval": "",
          "legendFormat": "全时上传",
          "refId": "B"
        },
        {
          "expr": "sum(increase(downloader_download_bytes_total{job=~\"$job\", name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\", name=~\".*\"}[$__range]))",
          "interval": "",
          "legendFormat": "时间段下载",
          "refId": "C"
        },
        {
          "expr": "sum(increase(downloader_upload_bytes_total{job=~\"$job\", name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\", name=~\".*\"}[$__range]))",
          "interval": "",
          "legendFormat": "时间段上传",
          "refId": "D"
        }
      ],
      "type": "stat"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 18,
        "x": 6,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 2,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "8.3.3",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": " sum(irate(downloader_download_bytes_total{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\"}[5m]))",
          "interval": "",
          "legendFormat": "下载",
          "refId": "A"
        },
        {
          "expr": "sum(irate(downloader_upload_bytes_total{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\"}[5m]))",
          "interval": "",
          "legendFormat": "上传",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "总体速度统计",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:171",
          "format": "binBps",
          "logBase": 1,
          "show": true
        },
        {
          "$$hashKey": "object:172",
          "format": "binBps",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "blue",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 2,
        "x": 0,
        "y": 4
      },
      "id": 8,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "8.3.3",
      "targets": [
        {
          "expr": "sum(downloader_torrents_count{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\"})",
          "interval": "",
          "legendFormat": "{{status}}",
          "refId": "A"
        }
      ],
      "title": "种子统计",
      "type": "stat"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 8
      },
      "id": 367,
      "panels": [],
      "title": "Tracker统计",
      "type": "row"
    },
    {
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "align": "auto",
            "displayMode": "color-text",
            "filterable": true
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "下载"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 80
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "上传"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 80
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "tracker"
            },
            "properties": [
              {
                "id": "custom.width"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "ratio"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 60
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 9
      },
      "id": 660,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "frameIndex": 1,
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "上传"
          }
        ]
      },
      "pluginVersion": "8.3.3",
      "targets": [
        {
          "expr": "sum by (tracker) (increase(downloader_tracker_torrent_download_bytes_total{client=~\"$client\", host=~\"$host\", instance=~\".*\", job=~\"$job\", version=~\"$version\",lt_version=~\"$lt_version\", name=~\"$name\"}[$__range]))",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "下载",
          "refId": "下载"
        },
        {
          "expr": "sum by (tracker) (increase(downloader_tracker_torrent_upload_bytes_total{client=~\"$client\", host=~\"$host\", instance=~\".*\", job=~\"$job\", version=~\"$version\",lt_version=~\"$lt_version\", name=~\"$name\"}[$__range]))",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "上传",
          "refId": "上传"
        }
      ],
      "title": "Tracker 时间段统计",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {}
        },
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true
            },
            "indexByName": {},
            "renameByName": {
              "Time": "",
              "Value #上传": "上传",
              "Value #下载": "下载"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "ratio",
            "binary": {
              "left": "上传",
              "operator": "/",
              "reducer": "sum",
              "right": "下载"
            },
            "mode": "binary",
            "reduce": {
              "reducer": "sum"
            },
            "replaceFields": false
          }
        }
      ],
      "type": "table"
    },
    {
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "displayName": "${__series.name}",
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "blue",
                "value": null
              }
            ]
          },
          "unit": "binBps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 12,
        "y": 9
      },
      "id": 364,
      "options": {
        "displayMode": "gradient",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true,
        "text": {}
      },
      "pluginVersion": "8.3.3",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "exemplar": false,
          "expr": "sort_desc(topk(10, (sum by (tracker) (irate(downloader_tracker_torrent_download_bytes_total{job=~\"$job\", name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\"}[1m])) != 0)))",
          "instant": true,
          "interval": "",
          "legendFormat": "{{tracker}}",
          "refId": "A"
        }
      ],
      "title": "Tracker实时下载速度榜",
      "transformations": [],
      "type": "bargauge"
    },
    {
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "displayName": "${__series.name}",
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "purple",
                "value": null
              }
            ]
          },
          "unit": "binBps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 18,
        "y": 9
      },
      "id": 365,
      "options": {
        "displayMode": "gradient",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true
      },
      "pluginVersion": "8.3.3",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "exemplar": false,
          "expr": "sort_desc(topk(10, (sum by (tracker) (irate(downloader_tracker_torrent_upload_bytes_total{job=~\"$job\", name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\"}[1m]) != 0))))",
          "instant": true,
          "interval": "",
          "legendFormat": "{{tracker}}",
          "refId": "A"
        }
      ],
      "title": "Tracker实时上传速度榜",
      "type": "bargauge"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 16
      },
      "hiddenSeries": false,
      "id": 505,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": true,
        "hideZero": true,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "8.3.3",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:798",
          "alias": "tracker.hdbits.org",
          "yaxis": 1
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "exemplar": true,
          "expr": "sum by (tracker) (irate(downloader_tracker_torrent_download_bytes_total{client=~\"$client\", host=~\"$host\", instance=~\".*\", job=~\"$job\", version=~\"$version\",lt_version=~\"$lt_version\", name=~\"$name\"}[1m]))",
          "hide": false,
          "interval": "",
          "legendFormat": "{{tracker}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "Tracker下载速度",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transformations": [],
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:135",
          "format": "binBps",
          "logBase": 1,
          "show": true
        },
        {
          "$$hashKey": "object:136",
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 16
      },
      "hiddenSeries": false,
      "id": 506,
      "legend": {
        "avg": false,
        "current": false,
        "hideEmpty": true,
        "hideZero": true,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "8.3.3",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "exemplar": true,
          "expr": "sum by (tracker) (irate(downloader_tracker_torrent_upload_bytes_total{client=~\"$client\", host=~\"$host\", instance=~\".*\", job=~\"$job\", version=~\"$version\",lt_version=~\"$lt_version\", name=~\"$name\"}[1m]))",
          "interval": "",
          "legendFormat": "{{tracker}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "Tracker上传速度",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:135",
          "format": "binBps",
          "logBase": 1,
          "show": true
        },
        {
          "$$hashKey": "object:136",
          "format": "short",
          "logBase": 1,
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 24
      },
      "id": 10,
      "panels": [
        {
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "continuous-BlPu"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "#EAB839",
                    "value": 0
                  }
                ]
              },
              "unit": "bytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 5,
            "w": 3,
            "x": 0,
            "y": 25
          },
          "id": 61,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value_and_name"
          },
          "pluginVersion": "8.3.3",
          "targets": [
            {
              "expr": "increase(downloader_download_bytes_total{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\", category=~\".*\", name=~\".*\"}[$__range])",
              "instant": true,
              "interval": "",
              "legendFormat": "下载",
              "refId": "A"
            },
            {
              "expr": "increase(downloader_upload_bytes_total{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\", category=~\".*\", name=~\".*\"}[$__range])",
              "instant": true,
              "interval": "",
              "legendFormat": "上传",
              "refId": "B"
            }
          ],
          "type": "stat"
        },
        {
          "fieldConfig": {
            "defaults": {
              "displayName": "${__series.name}",
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "bytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 5,
            "w": 8,
            "x": 3,
            "y": 25
          },
          "id": 231,
          "options": {
            "displayMode": "gradient",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showUnfilled": true
          },
          "pluginVersion": "8.3.3",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_PROMETHEUS}"
              },
              "exemplar": false,
              "expr": "sort_desc(sum by (tracker) (increase(downloader_tracker_torrent_upload_bytes_total{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\", torrent_name=~\".*\"}[$__range])))",
              "instant": true,
              "interval": "",
              "legendFormat": "{{tracker}}",
              "refId": "A"
            }
          ],
          "title": "tracker上传统计",
          "type": "bargauge"
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 10,
            "w": 13,
            "x": 11,
            "y": 25
          },
          "hiddenSeries": false,
          "id": 11,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "rightSide": false,
            "show": false,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "8.3.3",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": " sum(irate(downloader_download_bytes_total{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\"}[5m]))",
              "interval": "",
              "legendFormat": "下载",
              "refId": "A"
            },
            {
              "expr": "sum(irate(downloader_upload_bytes_total{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\"}[5m]))",
              "interval": "",
              "legendFormat": "上传",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "速度统计",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:171",
              "format": "binBps",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:172",
              "format": "binBps",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "continuous-YlRd"
              },
              "mappings": [],
              "max": 125000000,
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "blue",
                    "value": null
                  },
                  {
                    "color": "#EAB839",
                    "value": 0
                  },
                  {
                    "color": "#6ED0E0",
                    "value": 10
                  },
                  {
                    "color": "#EF843C",
                    "value": 20
                  },
                  {
                    "color": "#E24D42",
                    "value": 30
                  },
                  {
                    "color": "#1F78C1",
                    "value": 40
                  }
                ]
              },
              "unit": "binBps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 5,
            "w": 3,
            "x": 0,
            "y": 30
          },
          "id": 62,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "8.3.3",
          "targets": [
            {
              "expr": "downloader_download_speed_bytes{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\"}",
              "format": "time_series",
              "instant": true,
              "interval": "",
              "legendFormat": "下载",
              "refId": "A"
            },
            {
              "expr": "downloader_upload_speed_bytes{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\"}",
              "instant": true,
              "interval": "",
              "legendFormat": "上传",
              "refId": "B"
            }
          ],
          "type": "stat"
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 4,
            "x": 3,
            "y": 30
          },
          "hiddenSeries": false,
          "id": 12,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "8.3.3",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum by (status) (downloader_torrents_count{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\"})",
              "interval": "",
              "legendFormat": "{{status}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "种子状态",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:171",
              "format": "short",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:172",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 4,
            "x": 7,
            "y": 30
          },
          "hiddenSeries": false,
          "id": 138,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "rightSide": false,
            "show": false,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "8.3.3",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum by (tracker) (downloader_torrents_count{job=~\"$job\",name=~\"$name\", host=~\"$host\",client=~\"$client\",version=~\"$version\",lt_version=~\"$lt_version\", instance=~\".*\", status=~\".*\"})",
              "interval": "",
              "legendFormat": "{{tracker}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "tracker统计",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:171",
              "format": "short",
              "logBase": 1,
              "show": true
            },
            {
              "$$hashKey": "object:172",
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        }
      ],
      "repeat": "name",
      "title": "$name",
      "type": "row"
    }
  ],
  "refresh": "10s",
  "schemaVersion": 34,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "definition": "label_values(downloader_up, job)",
        "hide": 0,
        "includeAll": true,
        "label": "Job",
        "multi": true,
        "name": "job",
        "options": [],
        "query": {
          "query": "label_values(downloader_up, job)",
          "refId": "Prometheus-job-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "definition": "label_values(downloader_up, name)",
        "hide": 0,
        "includeAll": true,
        "label": "名称",
        "multi": true,
        "name": "name",
        "options": [],
        "query": {
          "query": "label_values(downloader_up, name)",
          "refId": "Prometheus-name-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "",
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "definition": "label_values(downloader_up, host)",
        "hide": 0,
        "includeAll": true,
        "label": "地址",
        "multi": true,
        "name": "host",
        "options": [],
        "query": {
          "query": "label_values(downloader_up, host)",
          "refId": "Prometheus-host-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "",
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "definition": "label_values(downloader_up, client)",
        "hide": 0,
        "includeAll": true,
        "label": "客户端",
        "multi": true,
        "name": "client",
        "options": [],
        "query": {
          "query": "label_values(downloader_up, client)",
          "refId": "Prometheus-client-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "",
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "definition": "label_values(downloader_up, version)",
        "hide": 0,
        "includeAll": true,
        "label": "版本",
        "multi": true,
        "name": "version",
        "options": [],
        "query": {
          "query": "label_values(downloader_up, version)",
          "refId": "Prometheus-version-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": ".*",
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "definition": "label_values(downloader_up, lt_version)",
        "hide": 0,
        "includeAll": true,
        "label": "lt版本",
        "multi": true,
        "name": "lt_version",
        "options": [],
        "query": {
          "query": "label_values(downloader_up, lt_version)",
          "refId": "Prometheus-lt_version-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-24h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "BT Downloader Metrics",
  "uid": "PJOYG-Snz",
  "version": 48,
  "weekStart": "",
  "gnetId": 15006
}