Advertisement
longoon12000

Grafana Dashboard JSON Model

Jun 2nd, 2021
1,272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 14.88 KB | None | 0 0
  1. {
  2.   "annotations": {
  3.     "list": [
  4.       {
  5.         "builtIn": 1,
  6.         "datasource": "-- Grafana --",
  7.         "enable": true,
  8.         "hide": true,
  9.         "iconColor": "rgba(0, 211, 255, 1)",
  10.         "name": "Annotations & Alerts",
  11.         "type": "dashboard"
  12.       }
  13.     ]
  14.   },
  15.   "editable": true,
  16.   "gnetId": null,
  17.   "graphTooltip": 0,
  18.   "id": 1,
  19.   "links": [],
  20.   "panels": [
  21.     {
  22.       "datasource": null,
  23.       "description": "",
  24.       "fieldConfig": {
  25.         "defaults": {},
  26.         "overrides": []
  27.       },
  28.       "gridPos": {
  29.         "h": 8,
  30.         "w": 24,
  31.         "x": 0,
  32.         "y": 0
  33.       },
  34.       "id": 4,
  35.       "options": {
  36.         "bgColor": "rgb(46, 0, 66)",
  37.         "clockType": "24 hour",
  38.         "countdownSettings": {
  39.           "endCountdownTime": "2021-05-19T18:19:27+02:00",
  40.           "endText": "00:00:00"
  41.         },
  42.         "dateSettings": {
  43.           "dateFormat": "dddd, DD. MMMM YYYY",
  44.           "fontSize": "48px",
  45.           "fontWeight": "normal",
  46.           "showDate": true
  47.         },
  48.         "mode": "time",
  49.         "timeSettings": {
  50.           "fontSize": "112px",
  51.           "fontWeight": "bold"
  52.         },
  53.         "timezone": "",
  54.         "timezoneSettings": {
  55.           "fontSize": "12px",
  56.           "fontWeight": "normal",
  57.           "showTimezone": false,
  58.           "zoneFormat": "offsetAbbv"
  59.         }
  60.       },
  61.       "pluginVersion": "7.5.6",
  62.       "targets": [
  63.         {
  64.           "format": "time_series",
  65.           "group": [],
  66.           "metricColumn": "none",
  67.           "rawQuery": false,
  68.           "rawSql": "SELECT\n  RecordTime AS \"time\",\n  RecordValue\nFROM TimeElements\nWHERE\n  $__timeFilter(RecordTime)\nORDER BY RecordTime",
  69.           "refId": "A",
  70.           "select": [
  71.             [
  72.               {
  73.                 "params": [
  74.                   "RecordValue"
  75.                 ],
  76.                 "type": "column"
  77.               }
  78.             ]
  79.           ],
  80.           "table": "TimeElements",
  81.           "timeColumn": "RecordTime",
  82.           "timeColumnType": "timestamp",
  83.           "where": [
  84.             {
  85.               "name": "$__timeFilter",
  86.               "params": [],
  87.               "type": "macro"
  88.             }
  89.           ]
  90.         }
  91.       ],
  92.       "title": "Time",
  93.       "type": "grafana-clock-panel"
  94.     },
  95.     {
  96.       "aliasColors": {},
  97.       "bars": false,
  98.       "dashLength": 10,
  99.       "dashes": false,
  100.       "datasource": null,
  101.       "fieldConfig": {
  102.         "defaults": {},
  103.         "overrides": []
  104.       },
  105.       "fill": 4,
  106.       "fillGradient": 9,
  107.       "gridPos": {
  108.         "h": 8,
  109.         "w": 24,
  110.         "x": 0,
  111.         "y": 8
  112.       },
  113.       "hiddenSeries": false,
  114.       "id": 2,
  115.       "interval": "1s",
  116.       "legend": {
  117.         "avg": true,
  118.         "current": true,
  119.         "max": true,
  120.         "min": true,
  121.         "show": true,
  122.         "total": false,
  123.         "values": true
  124.       },
  125.       "lines": true,
  126.       "linewidth": 1,
  127.       "maxDataPoints": null,
  128.       "nullPointMode": "connected",
  129.       "options": {
  130.         "alertThreshold": true
  131.       },
  132.       "percentage": false,
  133.       "pluginVersion": "7.5.7",
  134.       "pointradius": 1,
  135.       "points": false,
  136.       "renderer": "flot",
  137.       "seriesOverrides": [],
  138.       "spaceLength": 10,
  139.       "stack": false,
  140.       "steppedLine": false,
  141.       "targets": [
  142.         {
  143.           "format": "time_series",
  144.           "group": [
  145.             {
  146.               "params": [
  147.                 "$__interval",
  148.                 "none"
  149.               ],
  150.               "type": "time"
  151.             }
  152.           ],
  153.           "metricColumn": "none",
  154.           "rawQuery": false,
  155.           "rawSql": "SELECT\n  $__timeGroupAlias(RecordTime,$__interval),\n  avg(RecordValue) AS \"Light Level\"\nFROM TimeElements\nWHERE\n  $__timeFilter(RecordTime)\nGROUP BY 1\nORDER BY $__timeGroup(RecordTime,$__interval)",
  156.           "refId": "A",
  157.           "select": [
  158.             [
  159.               {
  160.                 "params": [
  161.                   "RecordValue"
  162.                 ],
  163.                 "type": "column"
  164.               },
  165.               {
  166.                 "params": [
  167.                   "avg"
  168.                 ],
  169.                 "type": "aggregate"
  170.               },
  171.               {
  172.                 "params": [
  173.                   "Light Level"
  174.                 ],
  175.                 "type": "alias"
  176.               }
  177.             ]
  178.           ],
  179.           "table": "TimeElements",
  180.           "timeColumn": "RecordTime",
  181.           "timeColumnType": "timestamp",
  182.           "where": [
  183.             {
  184.               "name": "$__timeFilter",
  185.               "params": [],
  186.               "type": "macro"
  187.             }
  188.           ]
  189.         }
  190.       ],
  191.       "thresholds": [
  192.         {
  193.           "$$hashKey": "object:503",
  194.           "colorMode": "custom",
  195.           "fill": true,
  196.           "fillColor": "rgba(50, 116, 217, 0.12)",
  197.           "line": false,
  198.           "lineColor": "rgba(31, 96, 196, 0.6)",
  199.           "op": "gt",
  200.           "value": 900,
  201.           "yaxis": "left"
  202.         },
  203.         {
  204.           "$$hashKey": "object:509",
  205.           "colorMode": "custom",
  206.           "fill": true,
  207.           "fillColor": "rgba(196, 22, 42, 0.3)",
  208.           "line": false,
  209.           "lineColor": "rgba(31, 96, 196, 0.6)",
  210.           "op": "lt",
  211.           "value": 500,
  212.           "yaxis": "left"
  213.         }
  214.       ],
  215.       "timeFrom": null,
  216.       "timeRegions": [
  217.         {
  218.           "$$hashKey": "object:472",
  219.           "colorMode": "background6",
  220.           "fill": true,
  221.           "fillColor": "rgba(234, 112, 112, 0.12)",
  222.           "line": false,
  223.           "lineColor": "rgba(237, 46, 24, 0.60)",
  224.           "op": "time"
  225.         }
  226.       ],
  227.       "timeShift": null,
  228.       "title": "Light Level",
  229.       "tooltip": {
  230.         "shared": true,
  231.         "sort": 0,
  232.         "value_type": "individual"
  233.       },
  234.       "type": "graph",
  235.       "xaxis": {
  236.         "buckets": null,
  237.         "mode": "time",
  238.         "name": null,
  239.         "show": true,
  240.         "values": []
  241.       },
  242.       "yaxes": [
  243.         {
  244.           "$$hashKey": "object:293",
  245.           "format": "short",
  246.           "label": null,
  247.           "logBase": 2,
  248.           "max": "8001",
  249.           "min": "64",
  250.           "show": true
  251.         },
  252.         {
  253.           "$$hashKey": "object:294",
  254.           "format": "short",
  255.           "label": null,
  256.           "logBase": 1,
  257.           "max": null,
  258.           "min": null,
  259.           "show": true
  260.         }
  261.       ],
  262.       "yaxis": {
  263.         "align": false,
  264.         "alignLevel": null
  265.       }
  266.     },
  267.     {
  268.       "datasource": "TempAndHum",
  269.       "fieldConfig": {
  270.         "defaults": {
  271.           "color": {
  272.             "mode": "continuous-BlYlRd"
  273.           },
  274.           "decimals": 1,
  275.           "mappings": [],
  276.           "max": 38,
  277.           "min": 12,
  278.           "thresholds": {
  279.             "mode": "absolute",
  280.             "steps": [
  281.               {
  282.                 "color": "green",
  283.                 "value": null
  284.               },
  285.               {
  286.                 "color": "red",
  287.                 "value": 80
  288.               }
  289.             ]
  290.           },
  291.           "unit": "celsius"
  292.         },
  293.         "overrides": []
  294.       },
  295.       "gridPos": {
  296.         "h": 7,
  297.         "w": 3,
  298.         "x": 0,
  299.         "y": 16
  300.       },
  301.       "id": 8,
  302.       "options": {
  303.         "reduceOptions": {
  304.           "calcs": [
  305.             "lastNotNull"
  306.           ],
  307.           "fields": "/^Temperature$/",
  308.           "values": false
  309.         },
  310.         "showThresholdLabels": false,
  311.         "showThresholdMarkers": true,
  312.         "text": {}
  313.       },
  314.       "pluginVersion": "7.5.7",
  315.       "targets": [
  316.         {
  317.           "format": "time_series",
  318.           "group": [],
  319.           "metricColumn": "none",
  320.           "rawQuery": false,
  321.           "rawSql": "SELECT\n  RecordTime AS \"time\",\n  Temperature\nFROM TempAndHumElements\nWHERE\n  $__timeFilter(RecordTime)\nORDER BY RecordTime",
  322.           "refId": "A",
  323.           "select": [
  324.             [
  325.               {
  326.                 "params": [
  327.                   "Temperature"
  328.                 ],
  329.                 "type": "column"
  330.               }
  331.             ]
  332.           ],
  333.           "table": "TempAndHumElements",
  334.           "timeColumn": "RecordTime",
  335.           "timeColumnType": "datetime",
  336.           "where": [
  337.             {
  338.               "name": "$__timeFilter",
  339.               "params": [],
  340.               "type": "macro"
  341.             }
  342.           ]
  343.         }
  344.       ],
  345.       "type": "gauge"
  346.     },
  347.     {
  348.       "datasource": "TempAndHum",
  349.       "fieldConfig": {
  350.         "defaults": {
  351.           "color": {
  352.             "mode": "continuous-BlYlRd"
  353.           },
  354.           "decimals": 0,
  355.           "mappings": [],
  356.           "max": 100,
  357.           "min": 0,
  358.           "thresholds": {
  359.             "mode": "absolute",
  360.             "steps": [
  361.               {
  362.                 "color": "green",
  363.                 "value": null
  364.               },
  365.               {
  366.                 "color": "red",
  367.                 "value": 80
  368.               }
  369.             ]
  370.           },
  371.           "unit": "humidity"
  372.         },
  373.         "overrides": []
  374.       },
  375.       "gridPos": {
  376.         "h": 7,
  377.         "w": 3,
  378.         "x": 3,
  379.         "y": 16
  380.       },
  381.       "id": 10,
  382.       "options": {
  383.         "reduceOptions": {
  384.           "calcs": [
  385.             "lastNotNull"
  386.           ],
  387.           "fields": "",
  388.           "values": false
  389.         },
  390.         "showThresholdLabels": false,
  391.         "showThresholdMarkers": true,
  392.         "text": {}
  393.       },
  394.       "pluginVersion": "7.5.7",
  395.       "targets": [
  396.         {
  397.           "format": "time_series",
  398.           "group": [],
  399.           "metricColumn": "none",
  400.           "rawQuery": false,
  401.           "rawSql": "SELECT\n  RecordTime AS \"time\",\n  Humidity\nFROM TempAndHumElements\nWHERE\n  $__timeFilter(RecordTime)\nORDER BY RecordTime",
  402.           "refId": "A",
  403.           "select": [
  404.             [
  405.               {
  406.                 "params": [
  407.                   "Humidity"
  408.                 ],
  409.                 "type": "column"
  410.               }
  411.             ]
  412.           ],
  413.           "table": "TempAndHumElements",
  414.           "timeColumn": "RecordTime",
  415.           "timeColumnType": "datetime",
  416.           "where": [
  417.             {
  418.               "name": "$__timeFilter",
  419.               "params": [],
  420.               "type": "macro"
  421.             }
  422.           ]
  423.         }
  424.       ],
  425.       "type": "gauge"
  426.     },
  427.     {
  428.       "aliasColors": {
  429.         "Humidity": "blue",
  430.         "Temperature": "green"
  431.       },
  432.       "bars": false,
  433.       "dashLength": 10,
  434.       "dashes": false,
  435.       "datasource": "TempAndHum",
  436.       "fieldConfig": {
  437.         "defaults": {},
  438.         "overrides": []
  439.       },
  440.       "fill": 0,
  441.       "fillGradient": 0,
  442.       "gridPos": {
  443.         "h": 7,
  444.         "w": 18,
  445.         "x": 6,
  446.         "y": 16
  447.       },
  448.       "hiddenSeries": false,
  449.       "id": 6,
  450.       "legend": {
  451.         "alignAsTable": true,
  452.         "avg": true,
  453.         "current": true,
  454.         "hideEmpty": true,
  455.         "hideZero": true,
  456.         "max": true,
  457.         "min": true,
  458.         "rightSide": false,
  459.         "show": true,
  460.         "total": false,
  461.         "values": true
  462.       },
  463.       "lines": true,
  464.       "linewidth": 3,
  465.       "nullPointMode": "connected",
  466.       "options": {
  467.         "alertThreshold": true
  468.       },
  469.       "percentage": false,
  470.       "pluginVersion": "7.5.7",
  471.       "pointradius": 2,
  472.       "points": false,
  473.       "renderer": "flot",
  474.       "seriesOverrides": [
  475.         {
  476.           "$$hashKey": "object:170",
  477.           "alias": "Temperature",
  478.           "yaxis": 1
  479.         },
  480.         {
  481.           "$$hashKey": "object:171",
  482.           "alias": "Humidity",
  483.           "yaxis": 2
  484.         }
  485.       ],
  486.       "spaceLength": 10,
  487.       "stack": false,
  488.       "steppedLine": false,
  489.       "targets": [
  490.         {
  491.           "format": "time_series",
  492.           "group": [
  493.             {
  494.               "params": [
  495.                 "10s",
  496.                 "none"
  497.               ],
  498.               "type": "time"
  499.             }
  500.           ],
  501.           "metricColumn": "none",
  502.           "rawQuery": false,
  503.           "rawSql": "SELECT\n  $__timeGroupAlias(RecordTime,10s),\n  avg(Humidity) AS \"Humidity\",\n  avg(Temperature) AS \"Temperature\"\nFROM TempAndHumElements\nWHERE\n  $__timeFilter(RecordTime)\nGROUP BY 1\nORDER BY $__timeGroup(RecordTime,10s)",
  504.           "refId": "A",
  505.           "select": [
  506.             [
  507.               {
  508.                 "params": [
  509.                   "Humidity"
  510.                 ],
  511.                 "type": "column"
  512.               },
  513.               {
  514.                 "params": [
  515.                   "avg"
  516.                 ],
  517.                 "type": "aggregate"
  518.               },
  519.               {
  520.                 "params": [
  521.                   "Humidity"
  522.                 ],
  523.                 "type": "alias"
  524.               }
  525.             ],
  526.             [
  527.               {
  528.                 "params": [
  529.                   "Temperature"
  530.                 ],
  531.                 "type": "column"
  532.               },
  533.               {
  534.                 "params": [
  535.                   "avg"
  536.                 ],
  537.                 "type": "aggregate"
  538.               },
  539.               {
  540.                 "params": [
  541.                   "Temperature"
  542.                 ],
  543.                 "type": "alias"
  544.               }
  545.             ]
  546.           ],
  547.           "table": "TempAndHumElements",
  548.           "timeColumn": "RecordTime",
  549.           "timeColumnType": "datetime",
  550.           "where": [
  551.             {
  552.               "name": "$__timeFilter",
  553.               "params": [],
  554.               "type": "macro"
  555.             }
  556.           ]
  557.         }
  558.       ],
  559.       "thresholds": [],
  560.       "timeFrom": null,
  561.       "timeRegions": [],
  562.       "timeShift": null,
  563.       "title": "Temperature & Humidity",
  564.       "tooltip": {
  565.         "shared": true,
  566.         "sort": 0,
  567.         "value_type": "individual"
  568.       },
  569.       "type": "graph",
  570.       "xaxis": {
  571.         "buckets": null,
  572.         "mode": "time",
  573.         "name": null,
  574.         "show": true,
  575.         "values": []
  576.       },
  577.       "yaxes": [
  578.         {
  579.           "$$hashKey": "object:378",
  580.           "format": "celsius",
  581.           "label": "Temperature",
  582.           "logBase": 1,
  583.           "max": "36",
  584.           "min": "12",
  585.           "show": true
  586.         },
  587.         {
  588.           "$$hashKey": "object:379",
  589.           "format": "humidity",
  590.           "label": "Humidity",
  591.           "logBase": 1,
  592.           "max": "100",
  593.           "min": "0",
  594.           "show": true
  595.         }
  596.       ],
  597.       "yaxis": {
  598.         "align": false,
  599.         "alignLevel": null
  600.       }
  601.     }
  602.   ],
  603.   "refresh": "1m",
  604.   "schemaVersion": 27,
  605.   "style": "dark",
  606.   "tags": [],
  607.   "templating": {
  608.     "list": []
  609.   },
  610.   "time": {
  611.     "from": "now-15m",
  612.     "to": "now"
  613.   },
  614.   "timepicker": {},
  615.   "timezone": "",
  616.   "title": "Kiosk",
  617.   "uid": "s3k2JPkRz",
  618.   "version": 20
  619. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement