Grafana: Fix dashboard provisioning (flatten nested dashboard objects)

This commit is contained in:
Eric FELIXINE
2026-05-05 00:39:43 -04:00
parent 5f9da72aa7
commit 83d567b557
2 changed files with 432 additions and 1 deletions

View File

@@ -0,0 +1,84 @@
{
"timezone": "Americas/Martinique",
"timepicker": {
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d"
]
},
"title": "TWIN Supply Chain - Overview",
"tags": [
"twin",
"supply-chain"
],
"panels": [
{
"id": 1,
"title": "Active Shipments",
"type": "stat",
"gridPos": {
"x": 0,
"y": 0,
"w": 6,
"h": 4
},
"targets": [
{
"query": "from(bucket: \"iot_data\") |> range(start: -1h) |> filter(fn: (r) => r[\"_measurement\"] == \"shipment\") |> count()"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
}
}
},
{
"id": 2,
"title": "Inventory Level",
"type": "stat",
"gridPos": {
"x": 6,
"y": 0,
"w": 6,
"h": 4
},
"targets": [
{
"query": "from(bucket: \"iot_data\") |> range(start: -1h) |> filter(fn: (r) => r[\"_measurement\"] == \"inventory\") |> mean()"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
}
}
},
{
"id": 3,
"title": "Pending Orders",
"type": "stat",
"gridPos": {
"x": 12,
"y": 0,
"w": 6,
"h": 4
},
"targets": [
{
"query": "from(bucket: \"iot_data\") |> range(start: -1h) |> filter(fn: (r) => r[\"_measurement\"] == \"order\") |> count()"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
}
}
}
]
}