Three display defects surfaced when rendering the live PS/pump/MGC dashboards: 1. Doubled values everywhere. EVOLV telemetry historically carried stray tags (tagcode="undefined"/uuid="null") that newer writes dropped, so InfluxDB holds two series per field and last() returned two of everything (e.g. Time Left, Runtime, Heights). Add |> group(columns:["_field"]) before last()/aggregateWindow in every template query so each field collapses to one value/line regardless of tag-set history. 2. fields:"/.*/" also rendered the _time column as a stat value. For single-field string panels (Direction, Flow Source, Mode, State, Prediction Quality) append |> keep(columns:["_value"]); for mixed string+numeric panels (valve/vgc/monster) drop _time/_start/_stop instead. 3. Level/Heights showed "0.12 min" — Grafana unit id "m" means minutes, not meters. Change to lengthm; normalize m³->m3, m³/h->m3/h on pumpingStation. Verified live via headless screenshots: PS, pump, and measurement dashboards now show single clean values with correct units. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
171 lines
3.7 KiB
JSON
171 lines
3.7 KiB
JSON
{
|
|
"annotations": {
|
|
"list": [
|
|
{
|
|
"builtIn": 1,
|
|
"datasource": {
|
|
"type": "grafana",
|
|
"uid": "-- Grafana --"
|
|
},
|
|
"enable": true,
|
|
"hide": true,
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
"name": "Annotations & Alerts",
|
|
"type": "dashboard"
|
|
}
|
|
]
|
|
},
|
|
"editable": true,
|
|
"graphTooltip": 0,
|
|
"id": null,
|
|
"links": [],
|
|
"panels": [
|
|
{
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 1,
|
|
"title": "Realtime Sampling (Monster)",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "influxdb",
|
|
"uid": "cdzg44tv250jkd"
|
|
},
|
|
"gridPos": {
|
|
"h": 5,
|
|
"w": 8,
|
|
"x": 0,
|
|
"y": 1
|
|
},
|
|
"id": 2,
|
|
"options": {
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "/.*/"
|
|
},
|
|
"colorMode": "value",
|
|
"graphMode": "none"
|
|
},
|
|
"targets": [
|
|
{
|
|
"query": "from(bucket: \"${bucket}\")\n |> range(start: -30d)\n |> filter(fn:(r) => r._measurement==\"${measurement}\" and (r._field==\"running\" or r._field==\"pulse\"))\n |> group(columns:[\"_field\"])\n |> last()\n |> drop(columns:[\"_time\",\"_start\",\"_stop\"])",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Running / Pulse (last)",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "influxdb",
|
|
"uid": "cdzg44tv250jkd"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "none"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 9,
|
|
"w": 16,
|
|
"x": 8,
|
|
"y": 1
|
|
},
|
|
"id": 3,
|
|
"options": {
|
|
"legend": {
|
|
"displayMode": "list",
|
|
"placement": "bottom"
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"query": "from(bucket: \"${bucket}\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn:(r) => r._measurement==\"${measurement}\" and (r._field==\"bucketVol\" or r._field==\"sumPuls\" or r._field==\"q\"))\n |> group(columns:[\"_field\"])\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Bucket / Pulses / Flow (q)",
|
|
"type": "timeseries"
|
|
}
|
|
],
|
|
"schemaVersion": 39,
|
|
"tags": [
|
|
"EVOLV",
|
|
"monster",
|
|
"template"
|
|
],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"name": "dbase",
|
|
"type": "custom",
|
|
"label": "dbase",
|
|
"query": "cdzg44tv250jkd",
|
|
"current": {
|
|
"text": "cdzg44tv250jkd",
|
|
"value": "cdzg44tv250jkd",
|
|
"selected": false
|
|
},
|
|
"options": [
|
|
{
|
|
"text": "cdzg44tv250jkd",
|
|
"value": "cdzg44tv250jkd",
|
|
"selected": true
|
|
}
|
|
],
|
|
"hide": 2
|
|
},
|
|
{
|
|
"name": "measurement",
|
|
"type": "custom",
|
|
"query": "template",
|
|
"current": {
|
|
"text": "template",
|
|
"value": "template",
|
|
"selected": false
|
|
},
|
|
"options": [
|
|
{
|
|
"text": "template",
|
|
"value": "template",
|
|
"selected": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "bucket",
|
|
"type": "custom",
|
|
"query": "lvl2",
|
|
"current": {
|
|
"text": "lvl2",
|
|
"value": "lvl2",
|
|
"selected": false
|
|
},
|
|
"options": [
|
|
{
|
|
"text": "lvl2",
|
|
"value": "lvl2",
|
|
"selected": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"time": {
|
|
"from": "now-24h",
|
|
"to": "now"
|
|
},
|
|
"timezone": "",
|
|
"title": "template",
|
|
"uid": null,
|
|
"version": 1
|
|
}
|