2025-05-26 17:44:56 +02:00
|
|
|
{
|
2026-01-13 14:29:43 +01:00
|
|
|
"annotations": {
|
|
|
|
|
"list": [
|
|
|
|
|
{
|
|
|
|
|
"builtIn": 1,
|
2026-05-26 17:59:37 +02:00
|
|
|
"datasource": {
|
|
|
|
|
"type": "grafana",
|
|
|
|
|
"uid": "-- Grafana --"
|
|
|
|
|
},
|
2026-01-13 14:29:43 +01:00
|
|
|
"enable": true,
|
|
|
|
|
"hide": true,
|
|
|
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
|
|
|
"name": "Annotations & Alerts",
|
|
|
|
|
"type": "dashboard"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"editable": true,
|
|
|
|
|
"graphTooltip": 0,
|
|
|
|
|
"id": null,
|
|
|
|
|
"links": [],
|
|
|
|
|
"panels": [
|
|
|
|
|
{
|
2026-05-26 17:59:37 +02:00
|
|
|
"gridPos": {
|
|
|
|
|
"h": 1,
|
|
|
|
|
"w": 24,
|
|
|
|
|
"x": 0,
|
|
|
|
|
"y": 0
|
|
|
|
|
},
|
|
|
|
|
"id": 1,
|
|
|
|
|
"title": "Status",
|
|
|
|
|
"type": "row"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"datasource": {
|
|
|
|
|
"type": "influxdb",
|
|
|
|
|
"uid": "cdzg44tv250jkd"
|
|
|
|
|
},
|
|
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"thresholds": {
|
|
|
|
|
"mode": "absolute",
|
|
|
|
|
"steps": [
|
|
|
|
|
{
|
|
|
|
|
"color": "purple",
|
|
|
|
|
"value": null
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"overrides": []
|
|
|
|
|
},
|
|
|
|
|
"gridPos": {
|
|
|
|
|
"h": 4,
|
|
|
|
|
"w": 6,
|
|
|
|
|
"x": 0,
|
|
|
|
|
"y": 1
|
|
|
|
|
},
|
2026-01-13 14:29:43 +01:00
|
|
|
"id": 2,
|
2026-05-26 17:59:37 +02:00
|
|
|
"options": {
|
|
|
|
|
"reduceOptions": {
|
|
|
|
|
"calcs": [
|
|
|
|
|
"lastNotNull"
|
fix(dashboardAPI): show string fields in stat panels (reduceOptions.fields)
Grafana Stat/Gauge panels default the Fields option to "Numeric Fields"
(reduceOptions.fields == ""), so string-valued fields (mode, state,
movementState, direction, flowSource, predictionQuality, running) are excluded
and the panel renders "No data" even though the Flux query (last()) returns the
string correctly.
Set reduceOptions.fields = "/.*/" ("All fields") on every stat panel bound to a
string field across machine, machineGroup, pumpingStation, valve,
valveGroupControl, and monster templates. lastNotNull calc was already correct.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 21:09:24 +02:00
|
|
|
],
|
|
|
|
|
"fields": "/.*/"
|
2026-05-26 17:59:37 +02:00
|
|
|
},
|
|
|
|
|
"colorMode": "value",
|
|
|
|
|
"graphMode": "none"
|
|
|
|
|
},
|
2026-01-13 14:29:43 +01:00
|
|
|
"targets": [
|
2026-05-26 17:59:37 +02:00
|
|
|
{
|
fix(dashboardAPI): clean stat panels — dedup stray-tag series, value-only text, meter units
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>
2026-05-27 21:42:47 +02:00
|
|
|
"query": "from(bucket: \"${bucket}\")\n |> range(start: -7d)\n |> filter(fn:(r) => r._measurement==\"${measurement}\" and r._field==\"mode\")\n |> group(columns:[\"_field\"])\n |> last()\n |> keep(columns:[\"_value\"])",
|
2026-05-26 17:59:37 +02:00
|
|
|
"refId": "A"
|
|
|
|
|
}
|
2026-01-13 14:29:43 +01:00
|
|
|
],
|
2026-03-11 11:13:44 +01:00
|
|
|
"title": "Mode",
|
2026-05-26 17:59:37 +02:00
|
|
|
"type": "stat",
|
|
|
|
|
"meta": {
|
2026-05-27 21:47:57 +02:00
|
|
|
"emittedFields": []
|
feat(dashboardapi): MGC template polish — group-level only + dashed bounds (#40)
- config/machineGroup.json: every non-row panel now annotated with
meta.emittedFields (mode, scaling, abs/relDistFromPeak, flow.total/group,
power.total/group). Per-pump fields (ctrl, state, runtime, pressure,
temperature) deliberately absent — those live on rotatingMachine children
per #39's no-data-duplication contract.
- Timeseries panels gain byRegexp dashed-bounds overrides for .min$/.max$
(same pattern as #38).
- test/basic/slice40-mgc-template.basic.test.js: 4 cases — no per-pump
fields leak in, every non-row annotated, dashed overrides present on TS,
composer dedup applies when a child claims an MGC-level field.
Closes #40
2026-05-26 18:03:28 +02:00
|
|
|
}
|
2025-05-26 17:44:56 +02:00
|
|
|
},
|
2026-01-13 14:29:43 +01:00
|
|
|
{
|
2026-05-26 17:59:37 +02:00
|
|
|
"datasource": {
|
|
|
|
|
"type": "influxdb",
|
|
|
|
|
"uid": "cdzg44tv250jkd"
|
|
|
|
|
},
|
|
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"thresholds": {
|
|
|
|
|
"mode": "absolute",
|
|
|
|
|
"steps": [
|
|
|
|
|
{
|
|
|
|
|
"color": "green",
|
|
|
|
|
"value": null
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"color": "yellow",
|
|
|
|
|
"value": 5
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"color": "red",
|
|
|
|
|
"value": 15
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"overrides": []
|
|
|
|
|
},
|
|
|
|
|
"gridPos": {
|
|
|
|
|
"h": 4,
|
|
|
|
|
"w": 6,
|
|
|
|
|
"x": 12,
|
|
|
|
|
"y": 1
|
|
|
|
|
},
|
2026-01-13 14:29:43 +01:00
|
|
|
"id": 4,
|
2026-05-26 17:59:37 +02:00
|
|
|
"options": {
|
|
|
|
|
"reduceOptions": {
|
|
|
|
|
"calcs": [
|
|
|
|
|
"lastNotNull"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"colorMode": "value",
|
|
|
|
|
"graphMode": "area"
|
|
|
|
|
},
|
2026-01-13 14:29:43 +01:00
|
|
|
"targets": [
|
2026-05-26 17:59:37 +02:00
|
|
|
{
|
fix(dashboardAPI): clean stat panels — dedup stray-tag series, value-only text, meter units
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>
2026-05-27 21:42:47 +02:00
|
|
|
"query": "from(bucket: \"${bucket}\")\n |> range(start: -7d)\n |> filter(fn:(r) => r._measurement==\"${measurement}\" and r._field==\"absDistFromPeak\")\n |> group(columns:[\"_field\"])\n |> last()",
|
2026-05-26 17:59:37 +02:00
|
|
|
"refId": "A"
|
|
|
|
|
}
|
2026-01-13 14:29:43 +01:00
|
|
|
],
|
2026-03-11 11:13:44 +01:00
|
|
|
"title": "Abs Dist Peak",
|
feat(dashboardapi): MGC template polish — group-level only + dashed bounds (#40)
- config/machineGroup.json: every non-row panel now annotated with
meta.emittedFields (mode, scaling, abs/relDistFromPeak, flow.total/group,
power.total/group). Per-pump fields (ctrl, state, runtime, pressure,
temperature) deliberately absent — those live on rotatingMachine children
per #39's no-data-duplication contract.
- Timeseries panels gain byRegexp dashed-bounds overrides for .min$/.max$
(same pattern as #38).
- test/basic/slice40-mgc-template.basic.test.js: 4 cases — no per-pump
fields leak in, every non-row annotated, dashed overrides present on TS,
composer dedup applies when a child claims an MGC-level field.
Closes #40
2026-05-26 18:03:28 +02:00
|
|
|
"type": "stat",
|
|
|
|
|
"meta": {
|
|
|
|
|
"emittedFields": [
|
|
|
|
|
"absDistFromPeak"
|
|
|
|
|
]
|
|
|
|
|
}
|
2026-03-11 11:13:44 +01:00
|
|
|
},
|
|
|
|
|
{
|
2026-05-26 17:59:37 +02:00
|
|
|
"datasource": {
|
|
|
|
|
"type": "influxdb",
|
|
|
|
|
"uid": "cdzg44tv250jkd"
|
|
|
|
|
},
|
|
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"unit": "percent",
|
|
|
|
|
"thresholds": {
|
|
|
|
|
"mode": "absolute",
|
|
|
|
|
"steps": [
|
|
|
|
|
{
|
|
|
|
|
"color": "green",
|
|
|
|
|
"value": null
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"color": "yellow",
|
|
|
|
|
"value": 10
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"color": "red",
|
|
|
|
|
"value": 25
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"overrides": []
|
|
|
|
|
},
|
|
|
|
|
"gridPos": {
|
|
|
|
|
"h": 4,
|
|
|
|
|
"w": 6,
|
|
|
|
|
"x": 18,
|
|
|
|
|
"y": 1
|
|
|
|
|
},
|
2026-03-11 11:13:44 +01:00
|
|
|
"id": 5,
|
2026-05-26 17:59:37 +02:00
|
|
|
"options": {
|
|
|
|
|
"reduceOptions": {
|
|
|
|
|
"calcs": [
|
|
|
|
|
"lastNotNull"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"colorMode": "value",
|
|
|
|
|
"graphMode": "area"
|
|
|
|
|
},
|
2026-03-11 11:13:44 +01:00
|
|
|
"targets": [
|
2026-05-26 17:59:37 +02:00
|
|
|
{
|
fix(dashboardAPI): clean stat panels — dedup stray-tag series, value-only text, meter units
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>
2026-05-27 21:42:47 +02:00
|
|
|
"query": "from(bucket: \"${bucket}\")\n |> range(start: -7d)\n |> filter(fn:(r) => r._measurement==\"${measurement}\" and r._field==\"relDistFromPeak\")\n |> group(columns:[\"_field\"])\n |> last()",
|
2026-05-26 17:59:37 +02:00
|
|
|
"refId": "A"
|
|
|
|
|
}
|
2026-03-11 11:13:44 +01:00
|
|
|
],
|
|
|
|
|
"title": "Rel Dist Peak",
|
feat(dashboardapi): MGC template polish — group-level only + dashed bounds (#40)
- config/machineGroup.json: every non-row panel now annotated with
meta.emittedFields (mode, scaling, abs/relDistFromPeak, flow.total/group,
power.total/group). Per-pump fields (ctrl, state, runtime, pressure,
temperature) deliberately absent — those live on rotatingMachine children
per #39's no-data-duplication contract.
- Timeseries panels gain byRegexp dashed-bounds overrides for .min$/.max$
(same pattern as #38).
- test/basic/slice40-mgc-template.basic.test.js: 4 cases — no per-pump
fields leak in, every non-row annotated, dashed overrides present on TS,
composer dedup applies when a child claims an MGC-level field.
Closes #40
2026-05-26 18:03:28 +02:00
|
|
|
"type": "stat",
|
|
|
|
|
"meta": {
|
2026-05-27 21:47:57 +02:00
|
|
|
"emittedFields": []
|
feat(dashboardapi): MGC template polish — group-level only + dashed bounds (#40)
- config/machineGroup.json: every non-row panel now annotated with
meta.emittedFields (mode, scaling, abs/relDistFromPeak, flow.total/group,
power.total/group). Per-pump fields (ctrl, state, runtime, pressure,
temperature) deliberately absent — those live on rotatingMachine children
per #39's no-data-duplication contract.
- Timeseries panels gain byRegexp dashed-bounds overrides for .min$/.max$
(same pattern as #38).
- test/basic/slice40-mgc-template.basic.test.js: 4 cases — no per-pump
fields leak in, every non-row annotated, dashed overrides present on TS,
composer dedup applies when a child claims an MGC-level field.
Closes #40
2026-05-26 18:03:28 +02:00
|
|
|
}
|
2026-03-11 11:13:44 +01:00
|
|
|
},
|
|
|
|
|
{
|
2026-05-26 17:59:37 +02:00
|
|
|
"gridPos": {
|
|
|
|
|
"h": 1,
|
|
|
|
|
"w": 24,
|
|
|
|
|
"x": 0,
|
|
|
|
|
"y": 5
|
|
|
|
|
},
|
|
|
|
|
"id": 6,
|
|
|
|
|
"title": "Totals",
|
|
|
|
|
"type": "row"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"datasource": {
|
|
|
|
|
"type": "influxdb",
|
|
|
|
|
"uid": "cdzg44tv250jkd"
|
|
|
|
|
},
|
|
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
|
|
|
|
"drawStyle": "line",
|
|
|
|
|
"lineWidth": 2,
|
|
|
|
|
"fillOpacity": 10
|
|
|
|
|
}
|
|
|
|
|
},
|
feat(dashboardapi): MGC template polish — group-level only + dashed bounds (#40)
- config/machineGroup.json: every non-row panel now annotated with
meta.emittedFields (mode, scaling, abs/relDistFromPeak, flow.total/group,
power.total/group). Per-pump fields (ctrl, state, runtime, pressure,
temperature) deliberately absent — those live on rotatingMachine children
per #39's no-data-duplication contract.
- Timeseries panels gain byRegexp dashed-bounds overrides for .min$/.max$
(same pattern as #38).
- test/basic/slice40-mgc-template.basic.test.js: 4 cases — no per-pump
fields leak in, every non-row annotated, dashed overrides present on TS,
composer dedup applies when a child claims an MGC-level field.
Closes #40
2026-05-26 18:03:28 +02:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
|
|
|
|
"id": "byRegexp",
|
|
|
|
|
"options": ".+\\.min$"
|
|
|
|
|
},
|
|
|
|
|
"properties": [
|
|
|
|
|
{
|
|
|
|
|
"id": "custom.lineStyle",
|
|
|
|
|
"value": {
|
|
|
|
|
"fill": "dash",
|
|
|
|
|
"dash": [
|
|
|
|
|
10,
|
|
|
|
|
10
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "color",
|
|
|
|
|
"value": {
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
"fixedColor": "orange"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
|
|
|
|
"id": "byRegexp",
|
|
|
|
|
"options": ".+\\.max$"
|
|
|
|
|
},
|
|
|
|
|
"properties": [
|
|
|
|
|
{
|
|
|
|
|
"id": "custom.lineStyle",
|
|
|
|
|
"value": {
|
|
|
|
|
"fill": "dash",
|
|
|
|
|
"dash": [
|
|
|
|
|
10,
|
|
|
|
|
10
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "color",
|
|
|
|
|
"value": {
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
"fixedColor": "red"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
2026-05-26 17:59:37 +02:00
|
|
|
},
|
|
|
|
|
"gridPos": {
|
|
|
|
|
"h": 8,
|
|
|
|
|
"w": 12,
|
|
|
|
|
"x": 0,
|
|
|
|
|
"y": 6
|
|
|
|
|
},
|
2026-03-11 11:13:44 +01:00
|
|
|
"id": 7,
|
2026-05-26 17:59:37 +02:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"displayMode": "list",
|
|
|
|
|
"placement": "bottom"
|
|
|
|
|
},
|
|
|
|
|
"tooltip": {
|
|
|
|
|
"mode": "multi"
|
|
|
|
|
}
|
|
|
|
|
},
|
2026-03-11 11:13:44 +01:00
|
|
|
"targets": [
|
2026-05-26 17:59:37 +02:00
|
|
|
{
|
fix(dashboardAPI): clean stat panels — dedup stray-tag series, value-only text, meter units
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>
2026-05-27 21:42:47 +02:00
|
|
|
"query": "from(bucket: \"${bucket}\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn:(r) => r._measurement==\"${measurement}\" and r._field =~ /predicted_flow|flow/)\n |> group(columns:[\"_field\"])\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
|
2026-05-26 17:59:37 +02:00
|
|
|
"refId": "A"
|
|
|
|
|
}
|
2026-03-11 11:13:44 +01:00
|
|
|
],
|
|
|
|
|
"title": "Total Flow",
|
feat(dashboardapi): MGC template polish — group-level only + dashed bounds (#40)
- config/machineGroup.json: every non-row panel now annotated with
meta.emittedFields (mode, scaling, abs/relDistFromPeak, flow.total/group,
power.total/group). Per-pump fields (ctrl, state, runtime, pressure,
temperature) deliberately absent — those live on rotatingMachine children
per #39's no-data-duplication contract.
- Timeseries panels gain byRegexp dashed-bounds overrides for .min$/.max$
(same pattern as #38).
- test/basic/slice40-mgc-template.basic.test.js: 4 cases — no per-pump
fields leak in, every non-row annotated, dashed overrides present on TS,
composer dedup applies when a child claims an MGC-level field.
Closes #40
2026-05-26 18:03:28 +02:00
|
|
|
"type": "timeseries",
|
|
|
|
|
"meta": {
|
|
|
|
|
"emittedFields": [
|
|
|
|
|
"flow.total",
|
|
|
|
|
"flow.group"
|
|
|
|
|
]
|
|
|
|
|
}
|
2026-03-11 11:13:44 +01:00
|
|
|
},
|
|
|
|
|
{
|
2026-05-26 17:59:37 +02:00
|
|
|
"datasource": {
|
|
|
|
|
"type": "influxdb",
|
|
|
|
|
"uid": "cdzg44tv250jkd"
|
|
|
|
|
},
|
|
|
|
|
"fieldConfig": {
|
|
|
|
|
"defaults": {
|
|
|
|
|
"custom": {
|
|
|
|
|
"drawStyle": "line",
|
|
|
|
|
"lineWidth": 2,
|
|
|
|
|
"fillOpacity": 10
|
|
|
|
|
}
|
|
|
|
|
},
|
feat(dashboardapi): MGC template polish — group-level only + dashed bounds (#40)
- config/machineGroup.json: every non-row panel now annotated with
meta.emittedFields (mode, scaling, abs/relDistFromPeak, flow.total/group,
power.total/group). Per-pump fields (ctrl, state, runtime, pressure,
temperature) deliberately absent — those live on rotatingMachine children
per #39's no-data-duplication contract.
- Timeseries panels gain byRegexp dashed-bounds overrides for .min$/.max$
(same pattern as #38).
- test/basic/slice40-mgc-template.basic.test.js: 4 cases — no per-pump
fields leak in, every non-row annotated, dashed overrides present on TS,
composer dedup applies when a child claims an MGC-level field.
Closes #40
2026-05-26 18:03:28 +02:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
|
|
|
|
"id": "byRegexp",
|
|
|
|
|
"options": ".+\\.min$"
|
|
|
|
|
},
|
|
|
|
|
"properties": [
|
|
|
|
|
{
|
|
|
|
|
"id": "custom.lineStyle",
|
|
|
|
|
"value": {
|
|
|
|
|
"fill": "dash",
|
|
|
|
|
"dash": [
|
|
|
|
|
10,
|
|
|
|
|
10
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "color",
|
|
|
|
|
"value": {
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
"fixedColor": "orange"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"matcher": {
|
|
|
|
|
"id": "byRegexp",
|
|
|
|
|
"options": ".+\\.max$"
|
|
|
|
|
},
|
|
|
|
|
"properties": [
|
|
|
|
|
{
|
|
|
|
|
"id": "custom.lineStyle",
|
|
|
|
|
"value": {
|
|
|
|
|
"fill": "dash",
|
|
|
|
|
"dash": [
|
|
|
|
|
10,
|
|
|
|
|
10
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "color",
|
|
|
|
|
"value": {
|
|
|
|
|
"mode": "fixed",
|
|
|
|
|
"fixedColor": "red"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
2026-05-26 17:59:37 +02:00
|
|
|
},
|
|
|
|
|
"gridPos": {
|
|
|
|
|
"h": 8,
|
|
|
|
|
"w": 12,
|
|
|
|
|
"x": 12,
|
|
|
|
|
"y": 6
|
|
|
|
|
},
|
2026-03-11 11:13:44 +01:00
|
|
|
"id": 8,
|
2026-05-26 17:59:37 +02:00
|
|
|
"options": {
|
|
|
|
|
"legend": {
|
|
|
|
|
"displayMode": "list",
|
|
|
|
|
"placement": "bottom"
|
|
|
|
|
},
|
|
|
|
|
"tooltip": {
|
|
|
|
|
"mode": "multi"
|
|
|
|
|
}
|
|
|
|
|
},
|
2026-03-11 11:13:44 +01:00
|
|
|
"targets": [
|
2026-05-26 17:59:37 +02:00
|
|
|
{
|
fix(dashboardAPI): clean stat panels — dedup stray-tag series, value-only text, meter units
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>
2026-05-27 21:42:47 +02:00
|
|
|
"query": "from(bucket: \"${bucket}\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn:(r) => r._measurement==\"${measurement}\" and r._field =~ /predicted_power|power/)\n |> group(columns:[\"_field\"])\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)",
|
2026-05-26 17:59:37 +02:00
|
|
|
"refId": "A"
|
|
|
|
|
}
|
2026-03-11 11:13:44 +01:00
|
|
|
],
|
|
|
|
|
"title": "Total Power",
|
feat(dashboardapi): MGC template polish — group-level only + dashed bounds (#40)
- config/machineGroup.json: every non-row panel now annotated with
meta.emittedFields (mode, scaling, abs/relDistFromPeak, flow.total/group,
power.total/group). Per-pump fields (ctrl, state, runtime, pressure,
temperature) deliberately absent — those live on rotatingMachine children
per #39's no-data-duplication contract.
- Timeseries panels gain byRegexp dashed-bounds overrides for .min$/.max$
(same pattern as #38).
- test/basic/slice40-mgc-template.basic.test.js: 4 cases — no per-pump
fields leak in, every non-row annotated, dashed overrides present on TS,
composer dedup applies when a child claims an MGC-level field.
Closes #40
2026-05-26 18:03:28 +02:00
|
|
|
"type": "timeseries",
|
|
|
|
|
"meta": {
|
|
|
|
|
"emittedFields": [
|
|
|
|
|
"power.total",
|
|
|
|
|
"power.group"
|
|
|
|
|
]
|
|
|
|
|
}
|
2026-01-13 14:29:43 +01:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"schemaVersion": 39,
|
2026-05-26 17:59:37 +02:00
|
|
|
"tags": [
|
|
|
|
|
"EVOLV",
|
|
|
|
|
"machineGroup",
|
|
|
|
|
"template"
|
|
|
|
|
],
|
2026-01-13 14:29:43 +01:00
|
|
|
"templating": {
|
|
|
|
|
"list": [
|
2026-05-26 17:59:37 +02:00
|
|
|
{
|
|
|
|
|
"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
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2026-01-13 14:29:43 +01:00
|
|
|
]
|
|
|
|
|
},
|
2026-05-26 17:59:37 +02:00
|
|
|
"time": {
|
|
|
|
|
"from": "now-6h",
|
|
|
|
|
"to": "now"
|
|
|
|
|
},
|
2026-01-13 14:29:43 +01:00
|
|
|
"timezone": "",
|
|
|
|
|
"title": "template",
|
|
|
|
|
"uid": null,
|
|
|
|
|
"version": 1
|
fix(dashboardAPI): show string fields in stat panels (reduceOptions.fields)
Grafana Stat/Gauge panels default the Fields option to "Numeric Fields"
(reduceOptions.fields == ""), so string-valued fields (mode, state,
movementState, direction, flowSource, predictionQuality, running) are excluded
and the panel renders "No data" even though the Flux query (last()) returns the
string correctly.
Set reduceOptions.fields = "/.*/" ("All fields") on every stat panel bound to a
string field across machine, machineGroup, pumpingStation, valve,
valveGroupControl, and monster templates. lastNotNull calc was already correct.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 21:09:24 +02:00
|
|
|
}
|