Grafana dashboard: HY
Description: Dashbaord


{
  "__inputs": [
    {
      "name": "DS_CSV",
      "label": "CSV",
      "description": "",
      "type": "datasource",
      "pluginId": "marcusolsson-csv-datasource",
      "pluginName": "CSV"
    },
    {
      "name": "DS_INFLUXDB",
      "label": "InfluxDB",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__elements": [],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.4.3"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "datasource",
      "id": "marcusolsson-csv-datasource",
      "name": "CSV",
      "version": "0.6.1"
    },
    {
      "type": "panel",
      "id": "netsage-sankey-panel",
      "name": "Sankey Panel",
      "version": "1.0.6"
    },
    {
      "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,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "marcusolsson-csv-datasource",
        "uid": "${DS_CSV}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 6,
      "options": {
        "color": "blue",
        "iteration": 7,
        "monochrome": false,
        "nodeColor": "grey",
        "nodePadding": 30,
        "nodeWidth": 30
      },
      "targets": [
        {
          "datasource": {
            "type": "marcusolsson-csv-datasource",
            "uid": "${DS_CSV}"
          },
          "decimalSeparator": ",",
          "delimiter": ";",
          "header": true,
          "ignoreUnknown": false,
          "refId": "A",
          "schema": [
            {
              "name": "",
              "type": "string"
            }
          ],
          "skipRows": 0
        }
      ],
      "title": "Panel Title",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "Amount"
              },
              {
                "destinationType": "number",
                "targetField": "Step from"
              },
              {
                "destinationType": "number",
                "targetField": "Step to"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "netsage-sankey-panel"
    },
    {
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 8
      },
      "id": 4,
      "options": {
        "color": "blue",
        "iteration": 7,
        "monochrome": false,
        "nodeColor": "grey",
        "nodePadding": 30,
        "nodeWidth": 30
      },
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "query": "from(bucket: \"BigTrucks\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"NewMeasurment\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"BatteryPower\" or r[\"_field\"] == \"Total_FC_Pwr\" or r[\"_field\"] == \"totalLiftingPumpPower\" or r[\"_field\"] == \"DrvMtr_Power\" or r[\"_field\"] == \"Pri_Power\" or r[\"_field\"] == \"Sec_Power\" or r[\"_field\"] == \"Tret_Power\" or r[\"_field\"] == \"DrvMtr_MotorRegenPower\" or r[\"_field\"] == \"Pri_MotorRegenPower\" or r[\"_field\"] == \"Sec_MotorRegenPower\" or r[\"_field\"] == \"Tret_MotorRegenPower\" or r[\"_field\"] == \"totalLiftingWasted\")\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n  |> yield(name: \"mean\")",
          "refId": "A"
        }
      ],
      "title": "Panel Title",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "reduce",
          "options": {
            "labelsToFields": false,
            "reducers": [
              "sum"
            ]
          }
        }
      ],
      "type": "netsage-sankey-panel"
    },
    {
      "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"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 16
      },
      "id": 2,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "hide": false,
          "query": "from(bucket: \"BigTrucks\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"_measurement\"] == \"NewMeasurment\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"DrvMtr_Power\" or r[\"_field\"] == \"Pri_Power\" or r[\"_field\"] == \"Sec_Power\" or r[\"_field\"] == \"Tret_Power\")\r\n  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n  |> yield(name: \"mean\")\r\n  ",
          "refId": "A"
        }
      ],
      "title": "Panel Title",
      "type": "timeseries"
    }
  ],
  "refresh": "",
  "schemaVersion": 35,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "2022-03-16T11:00:00.000Z",
    "to": "2022-03-16T14:00:00.000Z"
  },
  "timepicker": {},
  "timezone": "",
  "title": "HY",
  "uid": "W-8XWzunk",
  "version": 10,
  "weekStart": "",
  "gnetId": 16464,
  "description": "Dashbaord"
}