From e4bd4cfdcfddbed67b32d86b81d2659dfae9c51a Mon Sep 17 00:00:00 2001 From: 5okin Date: Sun, 24 Jan 2021 17:35:14 +0000 Subject: [PATCH] Upload files to 'server/grafana-provisioning/dashboards' --- .../dashboards/dashboard.yml | 9 + .../dashboards/grafana_panel.json | 277 ++++++++++++++++++ 2 files changed, 286 insertions(+) create mode 100644 server/grafana-provisioning/dashboards/dashboard.yml create mode 100644 server/grafana-provisioning/dashboards/grafana_panel.json diff --git a/server/grafana-provisioning/dashboards/dashboard.yml b/server/grafana-provisioning/dashboards/dashboard.yml new file mode 100644 index 0000000..dbfcd6f --- /dev/null +++ b/server/grafana-provisioning/dashboards/dashboard.yml @@ -0,0 +1,9 @@ +apiVersion: 1 +providers: +- name: Rpi_EnvSensor_Data + folder: '' + type: file + disableDeletion: false + editable: true + options: + path: /etc/grafana/provisioning/dashboards diff --git a/server/grafana-provisioning/dashboards/grafana_panel.json b/server/grafana-provisioning/dashboards/grafana_panel.json new file mode 100644 index 0000000..1836868 --- /dev/null +++ b/server/grafana-provisioning/dashboards/grafana_panel.json @@ -0,0 +1,277 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 1, + "links": [], + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Rpi_EnvSensor_Data", + "decimals": 1, + "description": "", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 0 + }, + "hiddenSeries": false, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.3.7", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "Temperature", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "Rpi_data", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"temperature\" FROM \"Rpi_data\" ", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "temperature" + ], + "type": "field" + } + ] + ], + "tags": [] + }, + { + "alias": "Air Humidity", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"air-humidity\" FROM \"Rpi_data\" ", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "alias": "Ground Humidity", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"ground-humidity\" FROM \"Rpi_data\" ", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "alias": "Wind Speed", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"windspeed\" FROM \"Rpi_data\" ", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "RaspberryPi Environment Data", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "schemaVersion": 26, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Pi", + "uid": "E3SjqYBGz", + "version": 1 + } \ No newline at end of file