{ "__inputs": [ { "name": "DS_SEEDBOX", "label": "Seedbox", "description": "", "type": "datasource", "pluginId": "influxdb", "pluginName": "InfluxDB" } ], "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "4.1.1" }, { "type": "datasource", "id": "influxdb", "name": "InfluxDB", "version": "1.0.0" }, { "type": "panel", "id": "table", "name": "Table", "version": "" } ], "annotations": { "list": [] }, "editable": true, "gnetId": null, "graphTooltip": 0, "hideControls": false, "id": null, "links": [], "refresh": "5s", "rows": [ { "collapse": false, "height": 409, "panels": [ { "columns": [], "datasource": "${DS_SEEDBOX}", "fontSize": "100%", "id": 1, "interval": "5s", "links": [], "pageSize": null, "scroll": true, "showHeader": true, "sort": { "col": 2, "desc": true }, "span": 12, "styles": [ { "dateFormat": "MM/DD/YY h:mm:ss a", "pattern": "Time", "type": "hidden" }, { "colorMode": null, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "pattern": "/^Progress/g", "thresholds": [], "type": "number", "unit": "percent" }, { "colorMode": "cell", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "pattern": "/^Ratio/g", "thresholds": [ ".7", "1" ], "type": "number", "unit": "short" }, { "colorMode": null, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "pattern": "/^hash/g", "thresholds": [], "type": "hidden", "unit": "short" } ], "targets": [ { "dsType": "influxdb", "groupBy": [ { "params": [ "$interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "policy": "default", "query": "SELECT last(\"name\") as \"Name\", \"tracker\" as \"Tracker\", \"state\" AS \"State\", \"ratio\" AS \"Ratio\", \"progress\" AS \"Progress\" FROM \"torrents\" WHERE \"host\" =~ /^$Host$/ AND \"tracker\" =~ /^$Tracker$/ AND time > now() - 10s GROUP BY \"hash\"", "rawQuery": true, "refId": "B", "resultFormat": "table", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [] } ], "title": "Torrents", "transform": "table", "type": "table" } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Dashboard Row", "titleSize": "h6" }, { "collapse": false, "height": 227, "panels": [ { "columns": [], "datasource": "${DS_SEEDBOX}", "fontSize": "100%", "id": 3, "interval": "10", "links": [], "pageSize": null, "scroll": true, "showHeader": true, "sort": { "col": 0, "desc": true }, "span": 12, "styles": [ { "dateFormat": "YYYY-MM-DD HH:mm:ss", "pattern": "Time", "type": "hidden" }, { "colorMode": null, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "decimals": 2, "pattern": "/^Ratio/g", "thresholds": [], "type": "number", "unit": "short" }, { "colorMode": null, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "pattern": "/^Total Download/g", "thresholds": [], "type": "number", "unit": "bytes" }, { "colorMode": null, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "pattern": "/^Total Upload/g", "thresholds": [], "type": "number", "unit": "bytes" } ], "targets": [ { "dsType": "influxdb", "groupBy": [ { "params": [ "$interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "policy": "default", "query": "SELECT last(\"total_torrents\") as \"Total Torrents\" , \"total_ratio\" as \"Total Ratio\", \"total_download\" AS \"Total Download\", \"total_upload\" AS \"Total Upload\" FROM \"trackers\" WHERE \"host\" =~ /^$Host$/ AND time > now() - 10s GROUP BY \"tracker\"", "rawQuery": true, "refId": "A", "resultFormat": "table", "select": [ [ { "params": [ "value" ], "type": "field" }, { "params": [], "type": "mean" } ] ], "tags": [] } ], "title": "Status Per Tracker", "transform": "table", "type": "table" } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Dashboard Row", "titleSize": "h6" } ], "schemaVersion": 14, "style": "dark", "tags": [], "templating": { "list": [ { "allValue": null, "current": {}, "datasource": "${DS_SEEDBOX}", "hide": 0, "includeAll": false, "label": "Host", "multi": false, "name": "Host", "options": [], "query": "SHOW TAG VALUES FROM trackers WITH KEY = \"host\"", "refresh": 1, "regex": "", "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": {}, "datasource": "${DS_SEEDBOX}", "hide": 0, "includeAll": true, "label": null, "multi": true, "name": "Tracker", "options": [], "query": "SHOW TAG VALUES FROM trackers WITH KEY = \"tracker\"", "refresh": 1, "regex": "", "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-30m", "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": "Seedbox Example", "version": 3 }