diff --git a/dashboard/README.md b/dashboard/README.md new file mode 100644 index 0000000..ed8a73a --- /dev/null +++ b/dashboard/README.md @@ -0,0 +1 @@ +Grafana dashboard configuration compatible with this exporter diff --git a/dashboard/solar.json b/dashboard/solar.json new file mode 100644 index 0000000..9ff1f32 --- /dev/null +++ b/dashboard/solar.json @@ -0,0 +1,1645 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- 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": 13, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 11, + "panels": [], + "title": "Système", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Monitoring" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "red", + "index": 0, + "text": "Erreur" + }, + "1": { + "color": "green", + "index": 1, + "text": "OK" + } + }, + "type": "value" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Onduleur" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "1": { + "color": "text", + "index": 0, + "text": "Eteint" + }, + "2": { + "color": "blue", + "index": 1, + "text": "Veille" + }, + "3": { + "color": "yellow", + "index": 2, + "text": "Démarrage" + }, + "4": { + "color": "green", + "index": 3, + "text": "Actif" + }, + "5": { + "color": "yellow", + "index": 4, + "text": "Limité" + }, + "6": { + "color": "red", + "index": 5, + "text": "Arrêt" + }, + "7": { + "color": "red", + "index": 6, + "text": "Panne" + }, + "8": { + "color": "purple", + "index": 7, + "text": "Installation" + } + }, + "type": "value" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 1 + }, + "id": 18, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/.*/", + "values": false + }, + "textMode": "value_and_name" + }, + "pluginVersion": "9.4.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "builder", + "exemplar": false, + "expr": "inverter_status", + "format": "time_series", + "instant": true, + "legendFormat": "Onduleur", + "range": false, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "exemplar": false, + "expr": "up{job=\"solaredge\"}", + "format": "time_series", + "hide": false, + "instant": true, + "legendFormat": "Monitoring", + "range": false, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max(firmware_version) by (version)", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "version", + "range": false, + "refId": "C" + } + ], + "title": "Statut", + "transformations": [ + { + "id": "joinByField", + "options": { + "byField": "Time", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value #B": true, + "Value #C": true, + "Value 3": true + }, + "indexByName": { + "Monitoring": 1, + "Onduleur": 2, + "Time": 0, + "Value 3": 4, + "version": 3 + }, + "renameByName": { + "version": "Firmware" + } + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 30000, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "watt" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 4, + "y": 1 + }, + "id": 26, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.4.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "exemplar": false, + "expr": "ac_power_watts{meter=\"production\",power=\"active\"}", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Production Instant.", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "from": -10, + "result": { + "color": "blue", + "index": 0, + "text": "Off" + }, + "to": 10 + }, + "type": "range" + }, + { + "options": { + "from": 10, + "result": { + "color": "yellow", + "index": 1, + "text": "Low" + }, + "to": 95 + }, + "type": "range" + }, + { + "options": { + "from": 95, + "result": { + "color": "green", + "index": 2, + "text": "OK" + }, + "to": 105 + }, + "type": "range" + }, + { + "options": { + "from": 105, + "result": { + "color": "red", + "index": 3, + "text": "High" + }, + "to": 200 + }, + "type": "range" + } + ], + "max": 120, + "min": -2, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + }, + { + "color": "yellow", + "value": 10 + }, + { + "color": "green", + "value": 95 + }, + { + "color": "red", + "value": 105 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 7, + "y": 1 + }, + "id": 24, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.4.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "exemplar": false, + "expr": "99 * ln(dc_voltage_volts + 1) / 6.74523634948", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Tension DC", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "watth" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 14, + "x": 10, + "y": 1 + }, + "id": 22, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "value_and_name" + }, + "pluginVersion": "9.4.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "exemplar": false, + "expr": "increase(energy_watthours_total{meter=\"production\"}[24h]) ", + "instant": true, + "legendFormat": "Jour", + "range": false, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "exemplar": false, + "expr": "increase(energy_watthours_total{meter=\"production\"}[7d])", + "hide": false, + "instant": true, + "legendFormat": "Semaine", + "range": false, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "exemplar": false, + "expr": "increase(energy_watthours_total{meter=\"production\"}[30d]) ", + "hide": false, + "instant": true, + "legendFormat": "Mois", + "range": false, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "exemplar": false, + "expr": "increase(energy_watthours_total{meter=\"production\"}[1y]) ", + "hide": false, + "instant": true, + "legendFormat": "Année", + "range": false, + "refId": "D" + } + ], + "title": "Production Totale", + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 9, + "panels": [], + "title": "Mesures", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": true, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 20, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "watt" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Export" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Import" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Autoconsommation" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Production" + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + { + "id": "color", + "value": { + "fixedColor": "light-yellow", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Consommation" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "purple", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "Production|Consommation" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": false, + "viz": false + } + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.showPoints", + "value": "never" + }, + { + "id": "custom.fillOpacity", + "value": 0 + } + ] + } + ] + }, + "gridPos": { + "h": 11, + "w": 16, + "x": 0, + "y": 6 + }, + "id": 4, + "maxDataPoints": 100, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "exemplar": false, + "expr": "(rate(energy_watthours_total[$__rate_interval]) * 3600) < 50000", + "format": "time_series", + "instant": false, + "interval": "", + "legendFormat": "{{meter}}", + "range": true, + "refId": "A" + } + ], + "title": "Bilan Energie", + "transformations": [ + { + "id": "joinByField", + "options": {} + }, + { + "id": "calculateField", + "options": { + "alias": "self", + "binary": { + "left": "production", + "operator": "-", + "reducer": "sum", + "right": "export" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "zero", + "binary": { + "left": "import", + "operator": "-", + "reducer": "sum", + "right": "import" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "neg_import", + "binary": { + "left": "zero", + "operator": "-", + "reducer": "sum", + "right": "import" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "consumption", + "binary": { + "left": "import", + "reducer": "sum", + "right": "self" + }, + "mode": "binary", + "reduce": { + "reducer": "sum" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "import": true, + "production": false, + "zero": true + }, + "indexByName": { + "Time": 0, + "consumption": 2, + "export": 4, + "import": 5, + "neg_import": 7, + "production": 1, + "self": 3, + "zero": 6 + }, + "renameByName": { + "Time": "", + "consumption": "Consommation", + "export": "Export", + "import": "", + "neg_import": "Import", + "production": "Production", + "self": "Autoconsommation", + "zero": "" + } + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds", + "seriesBy": "last" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "series", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": 900000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "mappings": [ + { + "options": { + "10": { + "index": 0, + "text": "Off" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + }, + { + "color": "#EAB839", + "value": 10 + }, + { + "color": "green", + "value": 825 + }, + { + "color": "red", + "value": 875 + } + ] + }, + "unit": "volt" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 16, + "y": 6 + }, + "id": 12, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "builder", + "expr": "dc_voltage_volts", + "legendFormat": "DC", + "range": true, + "refId": "A" + } + ], + "title": "Tension DC", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "opacity", + "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 + } + ] + }, + "unit": "volt" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "a" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "displayName", + "value": "A" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "b" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "fixed" + } + }, + { + "id": "displayName", + "value": "B" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "c" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + }, + { + "id": "displayName", + "value": "C" + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 16, + "y": 12 + }, + "id": 6, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "expr": "ac_voltage_volts{phase=~\"a|b|c\"}", + "legendFormat": "{{phase}}", + "range": true, + "refId": "A" + } + ], + "title": "Tension AC", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "line" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "watt" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "active.*" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "fixed", + "seriesBy": "last" + } + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "normal" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "reactive.*" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "custom.stacking", + "value": { + "group": "B", + "mode": "normal" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "apparent.*" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + }, + { + "id": "custom.stacking", + "value": { + "group": "C", + "mode": "normal" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 0, + "y": 17 + }, + "id": 14, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.4.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "expr": "abs(ac_power_watts{meter=\"mains\", phase!=\"total\"})", + "legendFormat": "{{power}} - {{phase}}", + "range": true, + "refId": "A" + } + ], + "title": "Puissance AC", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "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 + } + ] + }, + "unit": "percent" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "average" + }, + "properties": [ + { + "id": "displayName", + "value": "Moyenne" + }, + { + "id": "color", + "value": { + "fixedColor": "text", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "a" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + }, + { + "id": "displayName", + "value": "A" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "b" + }, + "properties": [ + { + "id": "displayName", + "value": "B" + }, + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "c" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + }, + { + "id": "displayName", + "value": "C" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 8, + "y": 17 + }, + "id": 16, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "code", + "expr": "abs(ac_power_factor{meter=\"mains\"})", + "legendFormat": "{{phase}}", + "range": true, + "refId": "A" + } + ], + "title": "Efficacité", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "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 + } + ] + }, + "unit": "hertz" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "mains" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "fixed" + } + }, + { + "id": "displayName", + "value": "Réseau" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "production" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "fixed" + } + }, + { + "id": "displayName", + "value": "Onduleur" + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 16, + "y": 17 + }, + "id": 20, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "y5GyWyv4k" + }, + "editorMode": "builder", + "expr": "ac_frequency_hertz{meter=~\"mains|production\"}", + "legendFormat": "{{meter}}", + "range": true, + "refId": "A" + } + ], + "title": "Synchronisation", + "type": "timeseries" + } + ], + "refresh": "10s", + "revision": 1, + "schemaVersion": 38, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-2d", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Solaire", + "uid": "DEh8350Ik", + "version": 38, + "weekStart": "" +}