{ "__inputs": [ { "name": "DS_INFLUXDB", "label": "InfluxDB", "description": "", "type": "datasource", "pluginId": "influxdb", "pluginName": "InfluxDB" } ], "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "8.2.1" }, { "type": "datasource", "id": "influxdb", "name": "InfluxDB", "version": "1.0.0" }, { "type": "panel", "id": "timeseries", "name": "Time series", "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, "gnetId": null, "graphTooltip": 0, "id": null, "iteration": 1634411419709, "links": [], "liveNow": false, "panels": [ { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 16, "panels": [], "repeat": "District", "title": "District: ${District}", "type": "row" }, { "datasource": null, "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" } }, "displayName": "${__field.name}", "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 11, "w": 14, "x": 0, "y": 1 }, "id": 4, "options": { "legend": { "calcs": [ "last" ], "displayMode": "list", "placement": "right" }, "tooltip": { "mode": "multi" } }, "repeat": null, "targets": [ { "query": "from(bucket: \"vevantzedata\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"stocks\")\n |> filter(fn: (r) => r[\"district\"] =~ /${District:pipe}/)\n |> filter(fn: (r) => r[\"playthrough_id\"] =~ /${Playthrough:pipe}/)\n |> filter(fn: (r) => r[\"faction\"] =~ /${Faction:pipe}/)\n |> aggregateWindow(every: v.windowPeriod, fn: max, createEmpty: false)\n \n\n", "refId": "A" } ], "title": "Stocks", "type": "timeseries" }, { "datasource": null, "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": 3, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "displayName": "${__field.name}", "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 11, "w": 10, "x": 14, "y": 1 }, "id": 2, "options": { "legend": { "calcs": [ "last" ], "displayMode": "list", "placement": "right" }, "tooltip": { "mode": "multi" } }, "repeat": null, "targets": [ { "query": "from(bucket: \"vevantzedata\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"pops\")\n |> filter(fn: (r) => r[\"_field\"] =~ /^(adults|kits)/)\n |> filter(fn: (r) => r[\"district\"] =~ /${District:pipe}/)\n |> filter(fn: (r) => r[\"playthrough_id\"] =~ /${Playthrough:pipe}/)\n |> filter(fn: (r) => r[\"faction\"] =~ /${Faction:pipe}/)\n |> aggregateWindow(every: v.windowPeriod, fn: max, createEmpty: false)\n \n\n", "refId": "A" } ], "title": "Population", "type": "timeseries" } ], "refresh": false, "schemaVersion": 31, "style": "dark", "tags": [], "templating": { "list": [ { "allValue": null, "current": {}, "datasource": "${DS_INFLUXDB}", "definition": "from(bucket: \"vevantzedata\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> group(columns: [\"playthrough_id\"])\n |> distinct(column: \"playthrough_id\")\n |> keep(columns: [\"_value\"])", "description": null, "error": null, "hide": 0, "includeAll": true, "label": null, "multi": true, "name": "Playthrough", "options": [], "query": "from(bucket: \"vevantzedata\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> group(columns: [\"playthrough_id\"])\n |> distinct(column: \"playthrough_id\")\n |> keep(columns: [\"_value\"])", "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 1, "type": "query" }, { "allValue": null, "current": {}, "datasource": "${DS_INFLUXDB}", "definition": "from(bucket: \"vevantzedata\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> group(columns: [\"faction\"])\n |> distinct(column: \"faction\")\n |> keep(columns: [\"_value\"])", "description": null, "error": null, "hide": 0, "includeAll": true, "label": null, "multi": true, "name": "Faction", "options": [], "query": "from(bucket: \"vevantzedata\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> group(columns: [\"faction\"])\n |> distinct(column: \"faction\")\n |> keep(columns: [\"_value\"])", "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 1, "type": "query" }, { "allValue": null, "current": {}, "datasource": "${DS_INFLUXDB}", "definition": "from(bucket: \"vevantzedata\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> group(columns: [\"map\"])\n |> distinct(column: \"map\")\n |> keep(columns: [\"_value\"])", "description": null, "error": null, "hide": 0, "includeAll": true, "label": null, "multi": true, "name": "Map", "options": [], "query": "from(bucket: \"vevantzedata\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> group(columns: [\"map\"])\n |> distinct(column: \"map\")\n |> keep(columns: [\"_value\"])", "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 1, "type": "query" }, { "allValue": null, "current": {}, "datasource": "${DS_INFLUXDB}", "definition": "from(bucket: \"vevantzedata\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> group(columns: [\"district\"])\n |> distinct(column: \"district\")\n |> keep(columns: [\"_value\"])", "description": null, "error": null, "hide": 0, "includeAll": true, "label": null, "multi": true, "name": "District", "options": [], "query": "from(bucket: \"vevantzedata\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> group(columns: [\"district\"])\n |> distinct(column: \"district\")\n |> keep(columns: [\"_value\"])", "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 1, "type": "query" } ] }, "time": { "from": "2100-01-01T00:00:00.000Z", "to": "2100-01-03T23:59:59.000Z" }, "timepicker": {}, "timezone": "", "title": "Beaver Pops", "uid": "ufjMolD7z", "version": 29 }