Grafana Wind Template
"annotations": [ { "kind": "AnnotationQuery", "spec": { "builtIn": true, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "query": { "datasource": { "name": "-- Grafana --" }, "group": "grafana", "kind": "DataQuery", "spec": {}, "version": "v0" } } } ], "cursorSync": "Tooltip", "editable": true, "elements": { "panel-4": { "kind": "Panel", "spec": { "data": { "kind": "QueryGroup", "spec": { "queries": [ { "kind": "PanelQuery", "spec": { "hidden": false, "query": { "datasource": { "name": "grafanacloud-logs" }, "group": "loki", "kind": "DataQuery", "spec": { "direction": "backward", "editorMode": "code", "expr": "{source=\"withthegrid-teleport\"} | assetIdentifier = `$assetIdentifier` | baseType = `windPower`", "queryType": "range" }, "version": "v0" }, "refId": "A" } } ], "queryOptions": {}, "transformations": [ { "group": "extractFields", "kind": "Transformation", "spec": { "options": { "delimiter": ",", "format": "json", "jsonPaths": [ { "alias": "measuredAt", "path": "measuredAt" }, { "alias": "confirmed setpoint", "path": "setpoints.confirmed.activePowerLimit" }, { "alias": "desired setpoint cloud", "path": "setpoints.desired.activePowerLimit.cloud" }, { "alias": "desired setpoint active control", "path": "setpoints.desired.activePowerLimit.activeControl" }, { "alias": "desired setpoint grid operator", "path": "setpoints.desired.activePowerLimit.gridOperator" }, { "alias": "desired setpoint modbus server", "path": "setpoints.desired.activePowerLimit.modbusServer" }, { "alias": "effective setpoint", "path": "setpoints.effective.activePowerLimit" }, { "alias": "confirmed setpoint (%)", "path": "setpoints.confirmed.activePowerLimitPercentage" }, { "alias": "recent setpoint max (%)", "path": "recentSetpointStatistics.max" }, { "alias": "recent setpoint min (%)", "path": "recentSetpointStatistics.min" }, { "alias": "active power", "path": "activePower" }, { "alias": "desired setpoint (%)", "path": "setpoints.confirmed.activePowerLimitPercentage" } ], "replace": true, "source": "Line" } } }, { "group": "convertFieldType", "kind": "Transformation", "spec": { "options": { "conversions": [ { "destinationType": "time", "targetField": "measuredAt" }, { "destinationType": "number", "targetField": "confirmed setpoint" }, { "destinationType": "number", "targetField": "desired setpoint cloud" }, { "destinationType": "number", "targetField": "desired setpoint active control" }, { "destinationType": "number", "targetField": "desired setpoint grid operator" }, { "destinationType": "number", "targetField": "desired setpoint modbus server" }, { "destinationType": "number", "targetField": "effective setpoint" }, { "destinationType": "number", "targetField": "confirmed setpoint (%)" }, { "destinationType": "number", "targetField": "recent setpoint max (%)" }, { "destinationType": "number", "targetField": "recent setpoint min (%)" }, { "destinationType": "number", "targetField": "active power" }, { "destinationType": "number", "targetField": "desired setpoint (%)" } ], "fields": {} } } }, { "group": "prepareTimeSeries", "kind": "Transformation", "spec": { "options": { "format": "multi" } } } ] } }, "description": "", "id": 4, "links": [], "title": "Power", "vizConfig": { "group": "timeseries", "kind": "VizConfig", "spec": { "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 } ] }, "unit": "watt" }, "overrides": [ { "matcher": { "id": "byName", "options": "recent setpoint max (%)" }, "properties": [ { "id": "unit", "value": "percent" } ] }, { "matcher": { "id": "byName", "options": "recent setpoint min (%)" }, "properties": [ { "id": "unit", "value": "percent" } ] }, { "matcher": { "id": "byName", "options": "confirmed setpoint (%)" }, "properties": [ { "id": "unit", "value": "percent" } ] }, { "matcher": { "id": "byName", "options": "recent setpoint max (%)" }, "properties": [ { "id": "custom.fillBelowTo", "value": "recent setpoint min (%)" }, { "id": "custom.fillOpacity", "value": 20 }, { "id": "custom.lineStyle", "value": { "dash": [0, 10], "fill": "dot" } }, { "id": "color", "value": { "fixedColor": "dark-blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "recent setpoint min (%)" }, "properties": [ { "id": "color", "value": { "fixedColor": "dark-blue", "mode": "fixed" } }, { "id": "custom.lineStyle", "value": { "dash": [0, 10], "fill": "dot" } } ] }, { "matcher": { "id": "byName", "options": "desired setpoint (%)" }, "properties": [ { "id": "unit", "value": "percent" } ] } ] }, "options": { "annotations": { "clustering": -1, "multiLane": false }, "legend": { "calcs": [], "displayMode": "list", "enableFacetedFilter": false, "overflow": "ellipsis", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } } }, "version": "13.2.0-28666480772" } } } }, "layout": { "kind": "GridLayout", "spec": { "items": [ { "kind": "GridLayoutItem", "spec": { "element": { "kind": "ElementReference", "name": "panel-4" }, "height": 15, "width": 24, "x": 0, "y": 0 } } ] } }, "links": [], "liveNow": false, "preload": false, "tags": [], "timeSettings": { "autoRefresh": "", "autoRefreshIntervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "fiscalYearStartMonth": 0, "from": "now-6h", "hideTimepicker": false, "timezone": "browser", "to": "now" }, "title": "Wind power", "variables": [ { "kind": "CustomVariable", "spec": { "allowCustomValue": false, "current": { "text": "vestas-ap-xxx", "value": "vestas-ap-xxx" }, "hide": "dontHide", "includeAll": false, "multi": false, "name": "assetIdentifier", "options": [], "query": "vestas-ap-xxx,vestas-ap-yyy", "skipUrlSync": false, "valuesFormat": "csv" } } ]}