josefkyrian

grafana dashboard - PV Power Plant - Misc Stats

Feb 6th, 2024
1,255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 7.04 KB | None | 0 0
  1. {
  2.   "annotations": {
  3.     "list": [
  4.       {
  5.         "builtIn": 1,
  6.         "datasource": {
  7.           "type": "grafana",
  8.           "uid": "-- Grafana --"
  9.         },
  10.         "enable": true,
  11.         "hide": true,
  12.         "iconColor": "rgba(0, 211, 255, 1)",
  13.         "name": "Annotations & Alerts",
  14.         "type": "dashboard"
  15.       }
  16.     ]
  17.   },
  18.   "editable": true,
  19.   "fiscalYearStartMonth": 0,
  20.   "graphTooltip": 0,
  21.   "id": 16,
  22.   "links": [],
  23.   "liveNow": false,
  24.   "panels": [
  25.     {
  26.       "datasource": {
  27.         "type": "mysql",
  28.         "uid": "NmGUN4Q7z"
  29.       },
  30.       "fieldConfig": {
  31.         "defaults": {
  32.           "color": {
  33.             "mode": "palette-classic"
  34.           },
  35.           "custom": {
  36.             "axisBorderShow": false,
  37.             "axisCenteredZero": false,
  38.             "axisColorMode": "text",
  39.             "axisLabel": "",
  40.             "axisPlacement": "auto",
  41.             "fillOpacity": 80,
  42.             "gradientMode": "none",
  43.             "hideFrom": {
  44.               "legend": false,
  45.               "tooltip": false,
  46.               "viz": false
  47.             },
  48.             "lineWidth": 1,
  49.             "scaleDistribution": {
  50.               "type": "linear"
  51.             },
  52.             "thresholdsStyle": {
  53.               "mode": "line"
  54.             }
  55.           },
  56.           "mappings": [],
  57.           "thresholds": {
  58.             "mode": "absolute",
  59.             "steps": [
  60.               {
  61.                 "color": "green",
  62.                 "value": null
  63.               },
  64.               {
  65.                 "color": "red",
  66.                 "value": 800
  67.               }
  68.             ]
  69.           }
  70.         },
  71.         "overrides": []
  72.       },
  73.       "gridPos": {
  74.         "h": 8,
  75.         "w": 12,
  76.         "x": 0,
  77.         "y": 0
  78.       },
  79.       "id": 2,
  80.       "options": {
  81.         "barRadius": 0,
  82.         "barWidth": 0.97,
  83.         "fullHighlight": false,
  84.         "groupWidth": 0.7,
  85.         "legend": {
  86.           "calcs": [],
  87.           "displayMode": "list",
  88.           "placement": "bottom",
  89.           "showLegend": true
  90.         },
  91.         "orientation": "auto",
  92.         "showValue": "auto",
  93.         "stacking": "none",
  94.         "tooltip": {
  95.           "mode": "single",
  96.           "sort": "none"
  97.         },
  98.         "xTickLabelRotation": 0,
  99.         "xTickLabelSpacing": 0
  100.       },
  101.       "pluginVersion": "10.1.1",
  102.       "targets": [
  103.         {
  104.           "dataset": "mysql",
  105.           "datasource": {
  106.             "type": "mysql",
  107.             "uid": "NmGUN4Q7z"
  108.           },
  109.           "editorMode": "code",
  110.           "format": "table",
  111.           "rawQuery": true,
  112.           "rawSql": "SELECT\n  UNIX_TIMESTAMP(DATE(log_date)) AS \"time\",\n  MAX(pv_vpv1) as string1, MAX(pv_vpv2) as string2\nFROM pv_inverter_record\nWHERE\n  $__timeFilter(log_date)\nGROUP BY time\nORDER BY time",
  113.           "refId": "A",
  114.           "sql": {
  115.             "columns": [
  116.               {
  117.                 "parameters": [],
  118.                 "type": "function"
  119.               }
  120.             ],
  121.             "groupBy": [
  122.               {
  123.                 "property": {
  124.                   "type": "string"
  125.                 },
  126.                 "type": "groupBy"
  127.               }
  128.             ],
  129.             "limit": 50
  130.           }
  131.         }
  132.       ],
  133.       "title": "Max PV Strings Voltage",
  134.       "type": "barchart"
  135.     },
  136.     {
  137.       "datasource": {
  138.         "type": "mysql",
  139.         "uid": "NmGUN4Q7z"
  140.       },
  141.       "fieldConfig": {
  142.         "defaults": {
  143.           "color": {
  144.             "mode": "palette-classic"
  145.           },
  146.           "custom": {
  147.             "axisBorderShow": false,
  148.             "axisCenteredZero": false,
  149.             "axisColorMode": "text",
  150.             "axisLabel": "",
  151.             "axisPlacement": "auto",
  152.             "barAlignment": 0,
  153.             "drawStyle": "line",
  154.             "fillOpacity": 16,
  155.             "gradientMode": "none",
  156.             "hideFrom": {
  157.               "legend": false,
  158.               "tooltip": false,
  159.               "viz": false
  160.             },
  161.             "insertNulls": false,
  162.             "lineInterpolation": "linear",
  163.             "lineStyle": {
  164.               "fill": "solid"
  165.             },
  166.             "lineWidth": 1,
  167.             "pointSize": 5,
  168.             "scaleDistribution": {
  169.               "type": "linear"
  170.             },
  171.             "showPoints": "auto",
  172.             "spanNulls": false,
  173.             "stacking": {
  174.               "group": "A",
  175.               "mode": "normal"
  176.             },
  177.             "thresholdsStyle": {
  178.               "mode": "off"
  179.             }
  180.           },
  181.           "mappings": [],
  182.           "thresholds": {
  183.             "mode": "absolute",
  184.             "steps": [
  185.               {
  186.                 "color": "green",
  187.                 "value": null
  188.               },
  189.               {
  190.                 "color": "red",
  191.                 "value": 800
  192.               }
  193.             ]
  194.           },
  195.           "unit": "watt"
  196.         },
  197.         "overrides": []
  198.       },
  199.       "gridPos": {
  200.         "h": 8,
  201.         "w": 12,
  202.         "x": 12,
  203.         "y": 0
  204.       },
  205.       "id": 3,
  206.       "options": {
  207.         "legend": {
  208.           "calcs": [],
  209.           "displayMode": "list",
  210.           "placement": "bottom",
  211.           "showLegend": true
  212.         },
  213.         "tooltip": {
  214.           "mode": "single",
  215.           "sort": "none"
  216.         }
  217.       },
  218.       "pluginVersion": "10.1.1",
  219.       "targets": [
  220.         {
  221.           "dataset": "mysql",
  222.           "datasource": {
  223.             "type": "mysql",
  224.             "uid": "NmGUN4Q7z"
  225.           },
  226.           "editorMode": "code",
  227.           "format": "table",
  228.           "rawQuery": true,
  229.           "rawSql": "SELECT\n  UNIX_TIMESTAMP(FLOOR(log_date/60)*60) AS \"time\",\n  pv_inverter_id,\n  pv_ppv1 as string1, pv_ppv2 as string2\nFROM pv_inverter_record\nWHERE\n  $__timeFilter(log_date)\n",
  230.           "refId": "A",
  231.           "sql": {
  232.             "columns": [
  233.               {
  234.                 "parameters": [],
  235.                 "type": "function"
  236.               }
  237.             ],
  238.             "groupBy": [
  239.               {
  240.                 "property": {
  241.                   "type": "string"
  242.                 },
  243.                 "type": "groupBy"
  244.               }
  245.             ],
  246.             "limit": 50
  247.           }
  248.         }
  249.       ],
  250.       "title": "PV Power By String",
  251.       "transformations": [
  252.         {
  253.           "id": "partitionByValues",
  254.           "options": {
  255.             "fields": [
  256.               "pv_inverter_id"
  257.             ]
  258.           }
  259.         },
  260.         {
  261.           "id": "renameByRegex",
  262.           "options": {
  263.             "regex": "string(.*) (.*)",
  264.             "renamePattern": "Inverter $2 String $1"
  265.           }
  266.         }
  267.       ],
  268.       "type": "timeseries"
  269.     }
  270.   ],
  271.   "refresh": "10s",
  272.   "schemaVersion": 38,
  273.   "tags": [],
  274.   "templating": {
  275.     "list": []
  276.   },
  277.   "time": {
  278.     "from": "now-2d",
  279.     "to": "now"
  280.   },
  281.   "timepicker": {},
  282.   "timezone": "",
  283.   "title": "PV Power Plant - Misc Stats",
  284.   "uid": "bba1b7e0-fe36-4357-8120-4b350ad67ac5",
  285.   "version": 18,
  286.   "weekStart": ""
  287. }
Advertisement
Add Comment
Please, Sign In to add comment