-
-
Save tjvantoll/64ba3992842435b95a64c6860a436bbd to your computer and use it in GitHub Desktop.
Importable dashboard config for building with grafana + Notehub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "__inputs": [ | |
| { | |
| "name": "DS_NOTEHUB", | |
| "label": "notehub", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "yesoreyeram-infinity-datasource", | |
| "pluginName": "Infinity" | |
| } | |
| ], | |
| "__elements": {}, | |
| "__requires": [ | |
| { | |
| "type": "grafana", | |
| "id": "grafana", | |
| "name": "Grafana", | |
| "version": "13.1.0-25668120414" | |
| }, | |
| { | |
| "type": "panel", | |
| "id": "stat", | |
| "name": "Stat", | |
| "version": "" | |
| }, | |
| { | |
| "type": "panel", | |
| "id": "table", | |
| "name": "Table", | |
| "version": "" | |
| }, | |
| { | |
| "type": "panel", | |
| "id": "text", | |
| "name": "Text", | |
| "version": "" | |
| }, | |
| { | |
| "type": "panel", | |
| "id": "timeseries", | |
| "name": "Time series", | |
| "version": "" | |
| }, | |
| { | |
| "type": "datasource", | |
| "id": "yesoreyeram-infinity-datasource", | |
| "name": "Infinity", | |
| "version": "3.6.0" | |
| } | |
| ], | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": { | |
| "type": "grafana", | |
| "uid": "-- Grafana --" | |
| }, | |
| "enable": false, | |
| "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": 1, | |
| "links": [ | |
| { | |
| "asDropdown": false, | |
| "icon": "external link", | |
| "includeVars": true, | |
| "keepTime": true, | |
| "tags": [], | |
| "targetBlank": true, | |
| "title": "Share Dashboard URL", | |
| "tooltip": "Share URL ", | |
| "type": "link", | |
| "url": "https://notehub.io/project/${project}/analytics?period=${period}&from=${__from}&to=${__to}" | |
| }, | |
| { | |
| "asDropdown": false, | |
| "icon": "external link", | |
| "includeVars": false, | |
| "keepTime": false, | |
| "tags": [], | |
| "targetBlank": false, | |
| "title": "Device Info", | |
| "tooltip": "", | |
| "type": "link", | |
| "url": "http://notehub.io/project/$project/devices/$device" | |
| } | |
| ], | |
| "liveNow": false, | |
| "panels": [ | |
| { | |
| "collapsed": false, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "id": 52, | |
| "title": "Device Data - Application Data", | |
| "type": "row" | |
| }, | |
| { | |
| "gridPos": { | |
| "h": 2, | |
| "w": 24, | |
| "x": 0, | |
| "y": 1 | |
| }, | |
| "id": 35, | |
| "options": { | |
| "code": { | |
| "language": "html", | |
| "showLineNumbers": false, | |
| "showMiniMap": false | |
| }, | |
| "content": "\n<center>Click on data points for links to related pages</center>", | |
| "mode": "html" | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "transparent": true, | |
| "type": "text" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic-by-name" | |
| }, | |
| "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 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "celsius" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 12, | |
| "x": 0, | |
| "y": 3 | |
| }, | |
| "id": 50, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom", | |
| "showLegend": false | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "columns": [], | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "parser": "backend", | |
| "refId": "A", | |
| "root_selector": "($.events ? $.events.{\n \"temperature\": body.temperature,\n \"time\": when * 1000\n} : [])", | |
| "source": "url", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/$project/events?deviceUID=$device&files=_air.qo", | |
| "url_options": { | |
| "data": "", | |
| "method": "GET", | |
| "params": [ | |
| { | |
| "key": "startDate", | |
| "value": "${__timeFrom:date:seconds}" | |
| }, | |
| { | |
| "key": "endDate", | |
| "value": "${__timeTo:date:seconds}" | |
| }, | |
| { | |
| "key": "sortBy", | |
| "value": "captured" | |
| }, | |
| { | |
| "key": "pageSize", | |
| "value": "10000" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "title": "Temperature", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "destinationType": "time", | |
| "targetField": "time" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic-by-name" | |
| }, | |
| "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 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "percent" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 12, | |
| "x": 12, | |
| "y": 3 | |
| }, | |
| "id": 51, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "columns": [], | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "parser": "backend", | |
| "refId": "A", | |
| "root_selector": "($.events ? $.events.{\n \"humidity\": body.humidity,\n \"time\": when * 1000\n} : [])", | |
| "source": "url", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/$project/events?deviceUID=$device&files=_air.qo", | |
| "url_options": { | |
| "data": "", | |
| "method": "GET", | |
| "params": [ | |
| { | |
| "key": "startDate", | |
| "value": "${__timeFrom:date:seconds}" | |
| }, | |
| { | |
| "key": "endDate", | |
| "value": "${__timeTo:date:seconds}" | |
| }, | |
| { | |
| "key": "sortBy", | |
| "value": "captured" | |
| }, | |
| { | |
| "key": "pageSize", | |
| "value": "10000" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "title": "Humidity", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "destinationType": "time", | |
| "targetField": "time" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "collapsed": false, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 11 | |
| }, | |
| "id": 53, | |
| "title": "Event Usage", | |
| "type": "row" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "description": "Platform Events are not Billable. \n\nNumber of Events (Billable, <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://dev.blues.io/api-reference/glossary/#platform-event\">Platform</a> and Total) ingressed to Notehub by all devices in the project per ${period}. Use this panel to identify unusual Event spikes, or to confirm expected patterns.\n\nClick a data point to navigate to the event logs.\n", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic-by-name" | |
| }, | |
| "custom": { | |
| "axisBorderShow": true, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 11, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "targetBlank": true, | |
| "title": "View Event Log ", | |
| "url": "https://notehub.io/project/${project}/events?startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 11, | |
| "x": 0, | |
| "y": 12 | |
| }, | |
| "id": 11, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 22, | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Event Usage per ${period} ", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "dateFormat": "", | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "Billable Events", | |
| "Platform Events", | |
| "Total Events", | |
| "period" | |
| ], | |
| "pattern": ".*Events" | |
| } | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "mixed", | |
| "uid": "-- Mixed --" | |
| }, | |
| "description": "For each fleet, the total number of Events ingressed to Notehub by all the devices in a particular fleet as it is defined today. Please note that the total number of Events from all fleets in this graph can be higher than the total number of Events in the project on a given day, as devices may belong to more than one fleet.\n\nClick on data data points to navigate to the fleet dashboard, events log, or fleet pages.", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": true, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 11, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineStyle": { | |
| "fill": "solid" | |
| }, | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "oneClick": false, | |
| "targetBlank": true, | |
| "title": "View Analytics Dashboard for '${__field.labels.label}'", | |
| "url": "https://notehub.io/project/${project}/devices/fleet/${__field.labels.fleet}/analytics?${period:queryparam}&${__url_time_range}" | |
| }, | |
| { | |
| "oneClick": false, | |
| "targetBlank": true, | |
| "title": "View '${__field.labels.label}' Fleet ", | |
| "url": "https://notehub.io/project/${project}/devices/fleet/${__field.labels.fleet}\n" | |
| }, | |
| { | |
| "targetBlank": true, | |
| "title": "View Event Log for '${__field.labels.label}'", | |
| "url": "https://notehub.io/project/${project}/events?startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC&filter_fleet=\"${__field.labels.label}\"" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 10, | |
| "x": 11, | |
| "y": 12 | |
| }, | |
| "id": 13, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": true, | |
| "sortBy": "Name", | |
| "sortDesc": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "columns": [], | |
| "computed_columns": [], | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "pagination_max_pages": 5, | |
| "pagination_mode": "none", | |
| "pagination_param_page_field_name": "pageNum", | |
| "pagination_param_page_value": 1, | |
| "pagination_param_size_field_name": "pageSize", | |
| "pagination_param_size_value": 1000, | |
| "panelId": 42, | |
| "parser": "backend", | |
| "refId": "A", | |
| "root_selector": "", | |
| "source": "url", | |
| "summarizeBy": "", | |
| "summarizeExpression": "", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/${project:label}/usage/events", | |
| "url_options": { | |
| "data": "", | |
| "method": "GET", | |
| "params": [ | |
| { | |
| "key": "period", | |
| "value": "${period} " | |
| }, | |
| { | |
| "key": "startDate", | |
| "value": "${__timeFrom:date:seconds}" | |
| }, | |
| { | |
| "key": "endDate", | |
| "value": "${__timeTo:date:seconds}" | |
| }, | |
| { | |
| "key": "aggregate", | |
| "value": "fleet" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 19, | |
| "refId": "B" | |
| } | |
| ], | |
| "title": "Event Usage per ${period} By Fleet", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "dateFormat": "", | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "joinByField", | |
| "options": { | |
| "byField": "fleet", | |
| "mode": "inner" | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "Total Events A", | |
| "period A", | |
| "label A", | |
| "fleet" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "id": "prepareTimeSeries", | |
| "options": { | |
| "format": "multi" | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "Total Events {fleet=\"fleet:[0-9a-z\\-]*\", label=\"(.*)\", name=.*", | |
| "renamePattern": "$1" | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "mixed", | |
| "uid": "-- Mixed --" | |
| }, | |
| "description": "In the given time range and period, the max active devices in a ${period}.", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "text", | |
| "value": 0 | |
| } | |
| ] | |
| } | |
| }, | |
| "overrides": [ | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "Total Bytes Used" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "unit", | |
| "value": "deckbytes" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 3, | |
| "x": 21, | |
| "y": 12 | |
| }, | |
| "id": 48, | |
| "options": { | |
| "colorMode": "value", | |
| "graphMode": "none", | |
| "justifyMode": "center", | |
| "orientation": "auto", | |
| "percentChangeColorMode": "standard", | |
| "reduceOptions": { | |
| "calcs": [ | |
| "max" | |
| ], | |
| "fields": "", | |
| "values": false | |
| }, | |
| "showPercentChange": false, | |
| "text": {}, | |
| "textMode": "auto", | |
| "wideLayout": true | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 22, | |
| "refId": "A" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 25, | |
| "refId": "B" | |
| } | |
| ], | |
| "title": "Active Devices", | |
| "transformations": [ | |
| { | |
| "id": "joinByField", | |
| "options": { | |
| "byField": "period", | |
| "mode": "outer" | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "Active Devices A" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "id": "reduce", | |
| "options": { | |
| "includeTimeField": true, | |
| "mode": "reduceFields", | |
| "reducers": [ | |
| "max" | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "(.*) A$", | |
| "renamePattern": "$1" | |
| } | |
| }, | |
| { | |
| "id": "organize", | |
| "options": { | |
| "excludeByName": {}, | |
| "includeByName": {}, | |
| "indexByName": { | |
| "Billable Events": 1, | |
| "FW Updates": 4, | |
| "Platform Events": 2, | |
| "Reboots": 3, | |
| "Total Bytes Used": 5, | |
| "Total Events": 0 | |
| }, | |
| "renameByName": {} | |
| } | |
| } | |
| ], | |
| "type": "stat" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "description": "For each notefile, the total number of Events ingressed to Notehub by all the devices on a given day\n\nUse this panel to confirm expected behavior, or identify an unexpected number of events for certain notefiles.\n\nClick on data points for links view event logs for selected notefile.", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": true, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 8, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "oneClick": false, | |
| "targetBlank": true, | |
| "title": "View Events Log for notefile '${__field.displayName}' ", | |
| "url": "https://notehub.io/project/${project}/events?filter_file=${__field.displayName}&startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 24, | |
| "x": 0, | |
| "y": 21 | |
| }, | |
| "id": 23, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": true, | |
| "sortBy": "Name", | |
| "sortDesc": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 22, | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Event Usage per ${period} by Notefile", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "dateFormat": "", | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "notefile:_env.dbs", | |
| "notefile:_geolocate.qo", | |
| "notefile:_health.qo", | |
| "notefile:_log.qo", | |
| "notefile:_session.qo", | |
| "notefile:alerts.qo", | |
| "notefile:modbus_read_CHANGE.qo", | |
| "notefile:modbus_read_FAST.qo", | |
| "notefile:modbus_read_PARAM.qo", | |
| "notefile:modbus_read_SLOW.qo", | |
| "notefile:modbus_read_SYNC.qo", | |
| "notefile:modbus_read_TEST.qo", | |
| "notefile:modbus_write.qo", | |
| "notefile:notebox_temp.qo", | |
| "notefile:one_wire.qo", | |
| "notefile:switch_summary.qo", | |
| "period" | |
| ], | |
| "pattern": "notefile.*" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "prepareTimeSeries", | |
| "options": { | |
| "format": "multi" | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "notefile:(.*)", | |
| "renamePattern": "$1" | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "collapsed": false, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 30 | |
| }, | |
| "id": 54, | |
| "title": "Cellular Data Usage", | |
| "type": "row" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "description": "Total cellular data used by all devices in the project per ${period}. Use this panel to identify unusual spikes, or to confirm expected patterns.\n\nNon-cellular data usage is not included.", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": true, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 11, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 2, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "bytes" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 13, | |
| "w": 12, | |
| "x": 0, | |
| "y": 31 | |
| }, | |
| "id": 26, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "mean", | |
| "max" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": false | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 25, | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Total Cellular Data Used per ${period}", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "groupBy", | |
| "options": { | |
| "fields": { | |
| "Total Bytes Used": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| }, | |
| "period": { | |
| "aggregations": [], | |
| "operation": "groupby" | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "mixed", | |
| "uid": "-- Mixed --" | |
| }, | |
| "description": "For each fleet, the total amount of cellular data used by the devices in that fleet as it is currently defined. Non-cellular data usage is not included.\n\nUse this panel to identify misbehaving fleets, or to confirm expected behavior.\n\nClick on data points for links to find out more about the selected fleet.", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": true, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 11, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 2, | |
| "links": [ | |
| { | |
| "oneClick": false, | |
| "targetBlank": true, | |
| "title": "View Analytics Dashboard for '${__field.labels.label}'", | |
| "url": "https://notehub.io/project/${project}/devices/fleet/${__field.labels.fleet}/analytics?${period:queryparam}&${__url_time_range}" | |
| }, | |
| { | |
| "targetBlank": true, | |
| "title": "View '${__field.labels.label}' Fleet ", | |
| "url": "https://notehub.io/project/${project}/devices/fleet/${__field.labels.fleet}\n" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "bytes" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 13, | |
| "w": 12, | |
| "x": 12, | |
| "y": 31 | |
| }, | |
| "id": 27, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 25, | |
| "refId": "A", | |
| "withTransforms": false | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 19, | |
| "refId": "B" | |
| } | |
| ], | |
| "title": "Total Cellular Data Used per ${period} by Fleet", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "joinByField", | |
| "options": { | |
| "byField": "fleet", | |
| "mode": "inner" | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "fleet", | |
| "Total Bytes Used A", | |
| "label A", | |
| "period A" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "id": "prepareTimeSeries", | |
| "options": { | |
| "format": "multi" | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "Total Bytes Used {fleet=\"fleet:[a-z0-9-]*\", label=\"(.*)\", name=\".*", | |
| "renamePattern": "$1" | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "collapsed": false, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 44 | |
| }, | |
| "id": 55, | |
| "title": "Device Updates and Reboots", | |
| "type": "row" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "description": "Reboots that have occurred determined by examining the health log for the devices. \n\n\n", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic-by-name" | |
| }, | |
| "custom": { | |
| "axisBorderShow": true, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 11, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "targetBlank": true, | |
| "title": "View Event Log ", | |
| "url": "https://notehub.io/project/${project}/events?filter_file=\"_health.qo\"&startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 12, | |
| "x": 0, | |
| "y": 45 | |
| }, | |
| "id": 36, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": false | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 22, | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Reboots per ${period} ", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "dateFormat": "", | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "Reboots", | |
| "period" | |
| ] | |
| } | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "mixed", | |
| "uid": "-- Mixed --" | |
| }, | |
| "description": "Reboots that have occurred determined by examining the health log for the devices.\n\nclick data points for navigation options", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": true, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 11, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "oneClick": false, | |
| "targetBlank": true, | |
| "title": "View Analytics Dashboard for '${__field.labels.label}'", | |
| "url": "https://notehub.io/project/${project}/devices/fleet/${__field.labels.fleet}/analytics?${period:queryparam}&${__url_time_range}" | |
| }, | |
| { | |
| "oneClick": false, | |
| "targetBlank": true, | |
| "title": "View '${__field.labels.label}' Fleet ", | |
| "url": "https://notehub.io/project/${project}/devices/fleet/${__field.labels.fleet}\n" | |
| }, | |
| { | |
| "targetBlank": true, | |
| "title": "View Event Log for '${__field.labels.label}'", | |
| "url": "https://notehub.io/project/${project}/events?startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC&filter_fleet=\"${__field.labels.label}&filter_file=\"_health.qo\"\"" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 12, | |
| "x": 12, | |
| "y": 45 | |
| }, | |
| "id": 43, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": true, | |
| "sortBy": "Name", | |
| "sortDesc": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "columns": [], | |
| "computed_columns": [], | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "pagination_max_pages": 5, | |
| "pagination_mode": "none", | |
| "pagination_param_page_field_name": "pageNum", | |
| "pagination_param_page_value": 1, | |
| "pagination_param_size_field_name": "pageSize", | |
| "pagination_param_size_value": 1000, | |
| "panelId": 42, | |
| "parser": "backend", | |
| "refId": "A", | |
| "root_selector": "", | |
| "source": "url", | |
| "summarizeBy": "", | |
| "summarizeExpression": "", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/${project:label}/usage/events", | |
| "url_options": { | |
| "data": "", | |
| "method": "GET", | |
| "params": [ | |
| { | |
| "key": "period", | |
| "value": "${period} " | |
| }, | |
| { | |
| "key": "startDate", | |
| "value": "${__timeFrom:date:seconds}" | |
| }, | |
| { | |
| "key": "endDate", | |
| "value": "${__timeTo:date:seconds}" | |
| }, | |
| { | |
| "key": "aggregate", | |
| "value": "fleet" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 19, | |
| "refId": "B" | |
| } | |
| ], | |
| "title": "Reboots per ${period} By Fleet", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "dateFormat": "", | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "joinByField", | |
| "options": { | |
| "byField": "fleet", | |
| "mode": "inner" | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "fleet", | |
| "period A", | |
| "label A", | |
| "Reboots A" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "id": "prepareTimeSeries", | |
| "options": { | |
| "format": "multi" | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "Reboots {fleet=\"fleet:[0-9a-z\\-]*\", label=\"(.*)\", name=.*", | |
| "renamePattern": "$1" | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "description": "Number of FW Updates completed per ${period}, as determined by the device health log. ", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic-by-name" | |
| }, | |
| "custom": { | |
| "axisBorderShow": true, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 11, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "targetBlank": true, | |
| "title": "View Event Log ", | |
| "url": "https://notehub.io/project/${project}/events?startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC&filter_file=\"_health.qo\"" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 12, | |
| "x": 0, | |
| "y": 54 | |
| }, | |
| "id": 38, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": false | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 22, | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "FW Updates per ${period} ", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "dateFormat": "", | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "FW Updates", | |
| "period" | |
| ] | |
| } | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "mixed", | |
| "uid": "-- Mixed --" | |
| }, | |
| "description": "Firmware updates that occurred per ${period} broken down by fleet. Use this to track FW update progress for a fleet. \n\nclick data points for navigation options", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": true, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 11, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "oneClick": false, | |
| "targetBlank": true, | |
| "title": "View Analytics Dashboard for '${__field.labels.label}'", | |
| "url": "https://notehub.io/project/${project}/devices/fleet/${__field.labels.fleet}/analytics?${period:queryparam}&${__url_time_range}" | |
| }, | |
| { | |
| "oneClick": false, | |
| "targetBlank": true, | |
| "title": "View '${__field.labels.label}' Fleet ", | |
| "url": "https://notehub.io/project/${project}/devices/fleet/${__field.labels.fleet}\n" | |
| }, | |
| { | |
| "targetBlank": true, | |
| "title": "View Event Log for '${__field.labels.label}'", | |
| "url": "https://notehub.io/project/${project}/events?startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC&filter_fleet=\"${__field.labels.label}&filter_file=\"_health.qo\"\"" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 12, | |
| "x": 12, | |
| "y": 54 | |
| }, | |
| "id": 44, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": true, | |
| "sortBy": "Name", | |
| "sortDesc": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "columns": [], | |
| "computed_columns": [], | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "pagination_max_pages": 5, | |
| "pagination_mode": "none", | |
| "pagination_param_page_field_name": "pageNum", | |
| "pagination_param_page_value": 1, | |
| "pagination_param_size_field_name": "pageSize", | |
| "pagination_param_size_value": 1000, | |
| "panelId": 42, | |
| "parser": "backend", | |
| "refId": "A", | |
| "root_selector": "", | |
| "source": "url", | |
| "summarizeBy": "", | |
| "summarizeExpression": "", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/${project:label}/usage/events", | |
| "url_options": { | |
| "data": "", | |
| "method": "GET", | |
| "params": [ | |
| { | |
| "key": "period", | |
| "value": "${period} " | |
| }, | |
| { | |
| "key": "startDate", | |
| "value": "${__timeFrom:date:seconds}" | |
| }, | |
| { | |
| "key": "endDate", | |
| "value": "${__timeTo:date:seconds}" | |
| }, | |
| { | |
| "key": "aggregate", | |
| "value": "fleet" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 19, | |
| "refId": "B" | |
| } | |
| ], | |
| "title": "FW Updates per ${period} By Fleet", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "dateFormat": "", | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "joinByField", | |
| "options": { | |
| "byField": "fleet", | |
| "mode": "inner" | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "fleet", | |
| "period A", | |
| "label A", | |
| "FW Updates A" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "id": "prepareTimeSeries", | |
| "options": { | |
| "format": "multi" | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "FW Updates {fleet=\"fleet:[0-9a-z\\-]*\", label=\"(.*)\", name=.*", | |
| "renamePattern": "$1" | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "collapsed": false, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 63 | |
| }, | |
| "id": 56, | |
| "title": "Routing", | |
| "type": "row" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "description": "Includes Billable and Platform Events", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 11, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 12, | |
| "x": 0, | |
| "y": 64 | |
| }, | |
| "id": 29, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "columns": [], | |
| "computed_columns": [], | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "pagination_max_pages": 5, | |
| "pagination_mode": "none", | |
| "pagination_param_page_field_name": "pageNum", | |
| "pagination_param_page_value": 1, | |
| "pagination_param_size_field_name": "pageSize", | |
| "pagination_param_size_value": 1000, | |
| "parser": "backend", | |
| "refId": "A", | |
| "root_selector": "$.route_logs ? $.route_logs.{ \n \"period\": period, \n \"routed\": total_routes,\n \"failed routes\": failed_routes,\n \"route\":route,\n \"Average Latency\": avg_latency_ms ? avg_latency_ms : 0\n} : []\n", | |
| "source": "url", | |
| "summarizeBy": "", | |
| "summarizeExpression": "", | |
| "type": "json", | |
| "uql": "parse-json", | |
| "url": "https://$api/v1/projects/${project:label}/usage/route-logs", | |
| "url_options": { | |
| "data": "", | |
| "method": "GET", | |
| "params": [ | |
| { | |
| "key": "period", | |
| "value": "${period}" | |
| }, | |
| { | |
| "key": "startDate", | |
| "value": "${__timeFrom:date:seconds}" | |
| }, | |
| { | |
| "key": "endDate", | |
| "value": "${__timeTo:date:seconds}" | |
| }, | |
| { | |
| "key": "pageSize", | |
| "value": "10000" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "columns": [], | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "parser": "backend", | |
| "refId": "routes", | |
| "root_selector": "", | |
| "source": "url", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/${project}/routes", | |
| "url_options": { | |
| "data": "", | |
| "method": "GET" | |
| } | |
| } | |
| ], | |
| "title": "Routed Events Per ${period} ", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "destinationType": "time", | |
| "targetField": "A period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "groupBy", | |
| "options": { | |
| "fields": { | |
| "A Failed routes": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| }, | |
| "A Routed": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| }, | |
| "A failed routes": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| }, | |
| "A routed": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| }, | |
| "failed routes": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| }, | |
| "period": { | |
| "aggregations": [], | |
| "operation": "groupby" | |
| }, | |
| "routed": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "failed routes \\(sum\\)", | |
| "renamePattern": "Events with Routing Failures" | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "routed \\(sum\\)", | |
| "renamePattern": "Successfully Routed Events" | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "description": "Average Latency to send data to route endpoint per ${period} for each route. ", | |
| "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": "smooth", | |
| "lineStyle": { | |
| "fill": "solid" | |
| }, | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "oneClick": false, | |
| "targetBlank": true, | |
| "title": "View Route Logs for '${__field.labels.label}'", | |
| "url": "https://notehub.io/project/${project}/route/${__field.labels.route}/route-log?startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC" | |
| }, | |
| { | |
| "targetBlank": true, | |
| "title": "View '${__field.labels.label}' Route Settings ", | |
| "url": "https://notehub.io/project/${project}/route/${__field.labels.route}/settings" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "ms" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 12, | |
| "x": 12, | |
| "y": 64 | |
| }, | |
| "id": 39, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": true, | |
| "sortBy": "Max", | |
| "sortDesc": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 29, | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Routing Latency Per ${period}", | |
| "transformations": [ | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "route", | |
| "renamePattern": "uid" | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "A Average Latency", | |
| "A period", | |
| "uid", | |
| "routes uid", | |
| "routes label" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "id": "joinByField", | |
| "options": { | |
| "byField": "uid", | |
| "mode": "inner" | |
| } | |
| }, | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "destinationType": "time", | |
| "targetField": "period A" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "prepareTimeSeries", | |
| "options": { | |
| "format": "multi" | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": ".*label=\"([^\"]+)\".*", | |
| "renamePattern": "$1" | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "description": "Number of Routed events broken down by route. Use this graph to identify routes that have unusual behavior.\n\nClick on data points for links to route logs and route settings", | |
| "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": "smooth", | |
| "lineStyle": { | |
| "fill": "solid" | |
| }, | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "oneClick": false, | |
| "targetBlank": true, | |
| "title": "View '${__field.labels.label}' Route Logs", | |
| "url": "https://notehub.io/project/${project}/route/${__field.labels.route}/route-log?startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC" | |
| }, | |
| { | |
| "targetBlank": true, | |
| "title": "View '${__field.labels.label}' Route Settings", | |
| "url": "https://notehub.io/project/${project}/route/${__field.labels.route}/settings" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 12, | |
| "x": 0, | |
| "y": 72 | |
| }, | |
| "id": 30, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": true, | |
| "sortBy": "Max", | |
| "sortDesc": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 29, | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Routed Events Per ${period} by Route", | |
| "transformations": [ | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "route", | |
| "renamePattern": "uid" | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "A period", | |
| "uid", | |
| "A routed", | |
| "routes label", | |
| "routes uid" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "id": "joinByField", | |
| "options": { | |
| "byField": "uid", | |
| "mode": "inner" | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "period A", | |
| "routed A", | |
| "label routes", | |
| "uid" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "destinationType": "time", | |
| "targetField": "period A" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "prepareTimeSeries", | |
| "options": { | |
| "format": "multi" | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": ".*label=\"([^\"]+)\".*", | |
| "renamePattern": "$1" | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "description": "Routing errors for each route. Routing errors should be rare, if errors persist inspect routing logs and address common errors.\n\nClick on a datapoint for a link to the related route logs or route settings", | |
| "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": "smooth", | |
| "lineStyle": { | |
| "fill": "solid" | |
| }, | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "oneClick": false, | |
| "targetBlank": true, | |
| "title": "View Failing Route Logs for '${__field.labels.label}'", | |
| "url": "https://notehub.io/project/${project}/route/${__field.labels.route}/route-log?filter_status=failure&startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC" | |
| }, | |
| { | |
| "targetBlank": true, | |
| "title": "View '${__field.labels.label}' Route Settings ", | |
| "url": "https://notehub.io/project/${project}/route/${__field.labels.route}/settings" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 12, | |
| "x": 12, | |
| "y": 72 | |
| }, | |
| "id": 31, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "max", | |
| "min", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": true, | |
| "sortBy": "Max", | |
| "sortDesc": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 29, | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Route Errors Per ${period} by Route", | |
| "transformations": [ | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "route", | |
| "renamePattern": "uid" | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "A failed routes", | |
| "A period", | |
| "uid", | |
| "routes label", | |
| "routes uid" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "id": "joinByField", | |
| "options": { | |
| "byField": "uid", | |
| "mode": "inner" | |
| } | |
| }, | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "destinationType": "time", | |
| "targetField": "period A" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "prepareTimeSeries", | |
| "options": { | |
| "format": "multi" | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": ".*label=\"([^\"]+)\".*", | |
| "renamePattern": "$1" | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "collapsed": false, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 80 | |
| }, | |
| "id": 57, | |
| "title": "Sessions", | |
| "type": "row" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "description": "Count of total sessions across all devices in '${label}' fleet per ${period}.\n\nA poor correlation between events and sessions may indicate a problem with the device.", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisBorderShow": false, | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "barWidthFactor": 0.6, | |
| "drawStyle": "line", | |
| "fillOpacity": 11, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "insertNulls": false, | |
| "lineInterpolation": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "targetBlank": true, | |
| "title": "View Sessions Log", | |
| "url": "https://notehub.io/project/${project}/sessions?startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 12, | |
| "x": 0, | |
| "y": 81 | |
| }, | |
| "id": 46, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "min", | |
| "max", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": false | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 34, | |
| "refId": "A" | |
| } | |
| ], | |
| "title": "Session Counts Per ${period} ", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "dateFormat": "", | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "groupBy", | |
| "options": { | |
| "fields": { | |
| "Number of Sessions": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| }, | |
| "Number of Sessions": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| }, | |
| "Platform Events": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| }, | |
| "Total Events": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| }, | |
| "period": { | |
| "aggregations": [], | |
| "operation": "groupby" | |
| }, | |
| "platform_events": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| }, | |
| "total_events": { | |
| "aggregations": [ | |
| "sum" | |
| ], | |
| "operation": "aggregate" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "(.*) \\(sum\\)", | |
| "renamePattern": "$1" | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "mixed", | |
| "uid": "-- Mixed --" | |
| }, | |
| "description": "Count of total sessions for each fleet per ${period}.\n\nA poor correlation between events and sessions may indicate a problem with the device.", | |
| "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": "smooth", | |
| "lineWidth": 1, | |
| "pointSize": 3, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "always", | |
| "showValues": false, | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "decimals": 0, | |
| "links": [ | |
| { | |
| "targetBlank": true, | |
| "title": "View Session for Fleet ${__field.labels.label}", | |
| "url": "https://notehub.io/project/${project}/sessions?startDate=${__from:date:YYYY-MM-DD+hh:mm:ss}&endDate=${__to:date:YYYY-MM-DD+hh:mm:ss}&timezone=UTC&filter_fleet=\"${__field.labels.label}\"" | |
| } | |
| ], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| }, | |
| "overrides": [] | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 12, | |
| "x": 12, | |
| "y": 81 | |
| }, | |
| "id": 47, | |
| "options": { | |
| "annotations": { | |
| "clustering": -1, | |
| "multiLane": false | |
| }, | |
| "legend": { | |
| "calcs": [ | |
| "min", | |
| "max", | |
| "mean", | |
| "stdDev" | |
| ], | |
| "displayMode": "table", | |
| "placement": "bottom", | |
| "showLegend": true, | |
| "sortBy": "Mean", | |
| "sortDesc": true | |
| }, | |
| "tooltip": { | |
| "hideZeros": false, | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 34, | |
| "refId": "A" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "-- Dashboard --" | |
| }, | |
| "panelId": 19, | |
| "refId": "B" | |
| } | |
| ], | |
| "title": "Session Counts per ${period} by Fleet ", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "dateFormat": "", | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| }, | |
| { | |
| "id": "joinByField", | |
| "options": { | |
| "byField": "fleet", | |
| "mode": "inner" | |
| } | |
| }, | |
| { | |
| "id": "filterFieldsByName", | |
| "options": { | |
| "include": { | |
| "names": [ | |
| "Number of Sessions A", | |
| "label A", | |
| "period A" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "id": "prepareTimeSeries", | |
| "options": { | |
| "format": "multi" | |
| } | |
| }, | |
| { | |
| "id": "renameByRegex", | |
| "options": { | |
| "regex": "Number of Sessions {label=\"(.*)\", name=\"A\"}", | |
| "renamePattern": "$1" | |
| } | |
| } | |
| ], | |
| "type": "timeseries" | |
| }, | |
| { | |
| "collapsed": true, | |
| "gridPos": { | |
| "h": 1, | |
| "w": 24, | |
| "x": 0, | |
| "y": 89 | |
| }, | |
| "id": 58, | |
| "panels": [ | |
| { | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "description": "Using the /usage/sessions endpoint", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "custom": { | |
| "align": "auto", | |
| "cellOptions": { | |
| "type": "auto" | |
| }, | |
| "footer": { | |
| "reducers": [] | |
| }, | |
| "inspect": false | |
| }, | |
| "decimals": 0, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| } | |
| }, | |
| "gridPos": { | |
| "h": 10, | |
| "w": 24, | |
| "x": 0, | |
| "y": 90 | |
| }, | |
| "id": 34, | |
| "options": { | |
| "cellHeight": "sm", | |
| "showHeader": true | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "columns": [], | |
| "computed_columns": [], | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "pagination_max_pages": 5, | |
| "pagination_mode": "none", | |
| "pagination_param_page_field_name": "pageNum", | |
| "pagination_param_page_value": 1, | |
| "pagination_param_size_field_name": "pageSize", | |
| "pagination_param_size_value": 1000, | |
| "parser": "backend", | |
| "refId": "A", | |
| "root_selector": "$.sessions ? $.sessions.{ \"period\": period, \n \"Number of Sessions\": sessions,\n \"fleet\" : fleet,\n \"Bytes Used\": total_bytes\n} : []\n", | |
| "source": "url", | |
| "summarizeBy": "", | |
| "summarizeExpression": "", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/${project:label}/usage/sessions?${fleets:customqueryparam:fleetUID}", | |
| "url_options": { | |
| "data": "", | |
| "headers": [ | |
| { | |
| "key": "X-Grafana-Panel", | |
| "value": "NotehubProjectOverview-RawData-Sessions" | |
| } | |
| ], | |
| "method": "GET", | |
| "params": [ | |
| { | |
| "key": "period", | |
| "value": "${period} " | |
| }, | |
| { | |
| "key": "startDate", | |
| "value": "${__timeFrom:date:seconds}" | |
| }, | |
| { | |
| "key": "endDate", | |
| "value": "${__timeTo:date:seconds}" | |
| }, | |
| { | |
| "key": "pageSize", | |
| "value": "10000" | |
| }, | |
| { | |
| "key": "aggregate", | |
| "value": "fleet" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "title": "Raw Data - Sessions", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "dateFormat": "", | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| } | |
| ], | |
| "type": "table" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "custom": { | |
| "align": "auto", | |
| "cellOptions": { | |
| "type": "auto" | |
| }, | |
| "footer": { | |
| "reducers": [] | |
| }, | |
| "inspect": false | |
| }, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 24, | |
| "x": 0, | |
| "y": 100 | |
| }, | |
| "id": 19, | |
| "options": { | |
| "cellHeight": "sm", | |
| "showHeader": true | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "columns": [], | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "parser": "backend", | |
| "refId": "A", | |
| "root_selector": "$.fleets ? $.fleets.{\n\"label\": label,\n\"fleet\" : uid\n} : []", | |
| "source": "url", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/${project:label}/fleets", | |
| "url_options": { | |
| "data": "", | |
| "headers": [ | |
| { | |
| "key": "X-Grafana-Panel", | |
| "value": "NotehubProjectOverview-RawData-Fleets" | |
| } | |
| ], | |
| "method": "GET" | |
| } | |
| } | |
| ], | |
| "title": "Raw Data - Fleets", | |
| "type": "table" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "description": "Using the /usage/events endpoint", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "custom": { | |
| "align": "auto", | |
| "cellOptions": { | |
| "type": "auto" | |
| }, | |
| "footer": { | |
| "reducers": [] | |
| }, | |
| "inspect": false | |
| }, | |
| "decimals": 0, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "short" | |
| } | |
| }, | |
| "gridPos": { | |
| "h": 8, | |
| "w": 24, | |
| "x": 0, | |
| "y": 108 | |
| }, | |
| "id": 22, | |
| "options": { | |
| "cellHeight": "sm", | |
| "showHeader": true | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "columns": [], | |
| "computed_columns": [], | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "pagination_max_pages": 5, | |
| "pagination_mode": "none", | |
| "pagination_param_page_field_name": "pageNum", | |
| "pagination_param_page_value": 1, | |
| "pagination_param_size_field_name": "pageSize", | |
| "pagination_param_size_value": 1000, | |
| "parser": "backend", | |
| "refId": "A", | |
| "root_selector": "data ? data.$map($, function($d) {\n $merge([\n {\n \"period\": $d.period,\n \"Total Events\": $d.total_events,\n \"Platform Events\": $d.platform_events,\n \"Billable Events\": $d.total_events - $d.platform_events,\n \"Reboots\": $d.total_reboots ? $d.total_reboots : 0,\n \"FW Updates\": $d.total_fw_updates ? $d.total_fw_updates : 0,\n \"Active Devices\": $d.total_devices\n },\n $merge(\n $map($keys($d.notefiles), function($k) {\n { \"notefile:\" & $k : $lookup($d.notefiles,$k) }\n })\n )\n ])\n}) : []\n", | |
| "source": "url", | |
| "summarizeBy": "", | |
| "summarizeExpression": "", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/${project:label}/usage/events?${fleets:customqueryparam:fleetUID}", | |
| "url_options": { | |
| "data": "", | |
| "headers": [ | |
| { | |
| "key": "X-Grafana-Panel", | |
| "value": "NotehubProjectOverview-RawData-TotalEvents" | |
| } | |
| ], | |
| "method": "GET", | |
| "params": [ | |
| { | |
| "key": "period", | |
| "value": "${period} " | |
| }, | |
| { | |
| "key": "startDate", | |
| "value": "${__timeFrom:date:seconds}" | |
| }, | |
| { | |
| "key": "endDate", | |
| "value": "${__timeTo:date:seconds}" | |
| }, | |
| { | |
| "key": "aggregate", | |
| "value": "project" | |
| }, | |
| { | |
| "key": "includeNotefiles", | |
| "value": "true" | |
| }, | |
| { | |
| "key": "pageSize", | |
| "value": "10000" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "title": "Raw Data - Total Events", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "dateFormat": "", | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| } | |
| ], | |
| "type": "table" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "custom": { | |
| "align": "auto", | |
| "cellOptions": { | |
| "type": "auto" | |
| }, | |
| "footer": { | |
| "reducers": [] | |
| }, | |
| "inspect": false | |
| }, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| } | |
| }, | |
| "overrides": [ | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "Total Events" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "custom.width", | |
| "value": 196 | |
| } | |
| ] | |
| }, | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "fleet" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "custom.width", | |
| "value": 437 | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 24, | |
| "x": 0, | |
| "y": 116 | |
| }, | |
| "id": 42, | |
| "options": { | |
| "cellHeight": "sm", | |
| "showHeader": true | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "columns": [], | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "parser": "backend", | |
| "refId": "A", | |
| "root_selector": "data ? data.{ \"period\": period, \n \"Total Events\": total_events, \n \"Platform Events\":platform_events,\n \"fleet\" : fleet,\n \"Reboots\": total_reboots ? total_reboots : 0,\n \"FW Updates\": total_fw_updates ? total_fw_updates : 0\n} : []\n", | |
| "source": "url", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/${project:label}/usage/events?${fleets:customqueryparam:fleetUID}", | |
| "url_options": { | |
| "data": "", | |
| "method": "GET", | |
| "params": [ | |
| { | |
| "key": "period", | |
| "value": "${period} " | |
| }, | |
| { | |
| "key": "startDate", | |
| "value": "${__timeFrom:date:seconds}" | |
| }, | |
| { | |
| "key": "endDate", | |
| "value": "${__timeTo:date:seconds}" | |
| }, | |
| { | |
| "key": "aggregate", | |
| "value": "fleet" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "title": "Raw Data - Events By Fleet", | |
| "type": "table" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "description": "Using the /usage/events endpoint", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "thresholds" | |
| }, | |
| "custom": { | |
| "align": "auto", | |
| "cellOptions": { | |
| "type": "auto" | |
| }, | |
| "footer": { | |
| "reducers": [] | |
| }, | |
| "inspect": false | |
| }, | |
| "decimals": 0, | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": 0 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "bytes" | |
| } | |
| }, | |
| "gridPos": { | |
| "h": 16, | |
| "w": 24, | |
| "x": 0, | |
| "y": 125 | |
| }, | |
| "id": 25, | |
| "options": { | |
| "cellHeight": "sm", | |
| "showHeader": true, | |
| "sortBy": [] | |
| }, | |
| "pluginVersion": "13.1.0-24655759693", | |
| "targets": [ | |
| { | |
| "columns": [], | |
| "computed_columns": [], | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "filters": [], | |
| "format": "table", | |
| "global_query_id": "", | |
| "pagination_max_pages": 5, | |
| "pagination_mode": "none", | |
| "pagination_param_page_field_name": "pageNum", | |
| "pagination_param_page_value": 1, | |
| "pagination_param_size_field_name": "pageSize", | |
| "pagination_param_size_value": 1000, | |
| "parser": "backend", | |
| "refId": "A", | |
| "root_selector": "$.data[type='cellular'] ? $.data[type='cellular'].(\n $f := fleet;\n $t := type;\n data.{\n \"period\": period,\n \"Total Bytes Used\": total_bytes,\n\"fleet\": $f,\n\"type\": $t\n } ) : []\n", | |
| "source": "url", | |
| "summarizeBy": "", | |
| "summarizeExpression": "", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/${project:label}/usage/data?${fleets:customqueryparam:fleetUID}", | |
| "url_options": { | |
| "data": "", | |
| "headers": [ | |
| { | |
| "key": "X-Grafana-Panel", | |
| "value": "NotehubProjectOverview-RawData-TotalData" | |
| } | |
| ], | |
| "method": "GET", | |
| "params": [ | |
| { | |
| "key": "period", | |
| "value": "${period} " | |
| }, | |
| { | |
| "key": "startDate", | |
| "value": "${__timeFrom:date:seconds}" | |
| }, | |
| { | |
| "key": "endDate", | |
| "value": "${__timeTo:date:seconds}" | |
| }, | |
| { | |
| "key": "pageSize", | |
| "value": "10000" | |
| }, | |
| { | |
| "key": "aggregate", | |
| "value": "fleet" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "title": "Raw Data - Total Data ", | |
| "transformations": [ | |
| { | |
| "id": "convertFieldType", | |
| "options": { | |
| "conversions": [ | |
| { | |
| "destinationType": "time", | |
| "targetField": "period" | |
| } | |
| ], | |
| "fields": {} | |
| } | |
| } | |
| ], | |
| "type": "table" | |
| } | |
| ], | |
| "title": "Raw Data", | |
| "type": "row" | |
| } | |
| ], | |
| "preload": true, | |
| "refresh": "", | |
| "schemaVersion": 42, | |
| "tags": [], | |
| "templating": { | |
| "list": [ | |
| { | |
| "allowCustomValue": false, | |
| "current": {}, | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "definition": "", | |
| "includeAll": false, | |
| "name": "project", | |
| "options": [], | |
| "query": { | |
| "infinityQuery": { | |
| "columns": [], | |
| "filters": [], | |
| "format": "table", | |
| "groq": "*", | |
| "parser": "backend", | |
| "refId": "variable", | |
| "root_selector": "projects.([uid & '-BLUES-' & label])\n", | |
| "source": "url", | |
| "type": "json", | |
| "uql": "parse-json", | |
| "url": "https://${api}/v1/projects", | |
| "url_options": { | |
| "data": "", | |
| "method": "GET" | |
| } | |
| }, | |
| "query": "", | |
| "queryType": "infinity" | |
| }, | |
| "refresh": 1, | |
| "regex": "/(?<value>app:.*)-BLUES-(?<text>.*)/g", | |
| "regexApplyTo": "value", | |
| "sort": 1, | |
| "type": "query" | |
| }, | |
| { | |
| "allowCustomValue": true, | |
| "current": { | |
| "text": "api.notefile.net", | |
| "value": "api.notefile.net" | |
| }, | |
| "hide": 2, | |
| "includeAll": false, | |
| "name": "api", | |
| "options": [ | |
| { | |
| "selected": true, | |
| "text": "api.notefile.net", | |
| "value": "api.notefile.net" | |
| } | |
| ], | |
| "query": "api.notefile.net", | |
| "type": "custom", | |
| "valuesFormat": "csv" | |
| }, | |
| { | |
| "allowCustomValue": false, | |
| "current": { | |
| "text": "day", | |
| "value": "day" | |
| }, | |
| "includeAll": false, | |
| "name": "period", | |
| "options": [ | |
| { | |
| "selected": true, | |
| "text": "day", | |
| "value": "day" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "week", | |
| "value": "week" | |
| }, | |
| { | |
| "selected": false, | |
| "text": "month", | |
| "value": "month" | |
| } | |
| ], | |
| "query": "day, week, month", | |
| "type": "custom", | |
| "valuesFormat": "csv" | |
| }, | |
| { | |
| "allowCustomValue": true, | |
| "current": { | |
| "text": "false", | |
| "value": "false" | |
| }, | |
| "description": "Event data is aggregated periodically and may not be current to the minute. Toggling this will attempt to get the most current data from the events db. However, this may time out for large projects", | |
| "hide": 2, | |
| "includeAll": false, | |
| "label": "Show Latest Event Data", | |
| "name": "latest_events", | |
| "options": [], | |
| "query": "", | |
| "type": "custom", | |
| "valuesFormat": "csv" | |
| }, | |
| { | |
| "allowCustomValue": false, | |
| "current": {}, | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "definition": "", | |
| "includeAll": true, | |
| "multi": true, | |
| "name": "fleets", | |
| "options": [], | |
| "query": { | |
| "infinityQuery": { | |
| "columns": [], | |
| "data": "values\nfoo\nbar\nbaz", | |
| "filters": [], | |
| "format": "table", | |
| "parser": "backend", | |
| "refId": "", | |
| "root_selector": "$.fleets.{ \"uid\": uid & '-BLUES-' & label }", | |
| "source": "url", | |
| "type": "json", | |
| "url": "https://api.notefile.net/v1/projects/$project/fleets", | |
| "url_options": { | |
| "data": "", | |
| "method": "GET" | |
| } | |
| }, | |
| "queryType": "infinity", | |
| "refId": "variable" | |
| }, | |
| "refresh": 1, | |
| "regex": "/(?<value>fleet:.*)-BLUES-(?<text>.*)/g", | |
| "regexApplyTo": "value", | |
| "type": "query" | |
| }, | |
| { | |
| "allowCustomValue": true, | |
| "current": {}, | |
| "datasource": { | |
| "type": "yesoreyeram-infinity-datasource", | |
| "uid": "${DS_NOTEHUB}" | |
| }, | |
| "definition": "", | |
| "includeAll": false, | |
| "name": "device", | |
| "options": [], | |
| "query": { | |
| "infinityQuery": { | |
| "columns": [], | |
| "data": "values\nfoo\nbar\nbaz", | |
| "filters": [], | |
| "format": "table", | |
| "parser": "backend", | |
| "refId": "", | |
| "root_selector": "$.devices.{ \"uid\": uid & '-BLUES-' & serial_number}\n\n", | |
| "source": "url", | |
| "type": "json", | |
| "url": "https://$api/v1/projects/${project:label}/devices?${fleets:customqueryparam:fleetUID}", | |
| "url_options": { | |
| "data": "", | |
| "method": "GET", | |
| "params": [ | |
| { | |
| "key": "pageSize", | |
| "value": "1000" | |
| } | |
| ] | |
| } | |
| }, | |
| "queryType": "infinity", | |
| "refId": "variable" | |
| }, | |
| "refresh": 1, | |
| "regex": "/(?<value>dev:.*)-BLUES-(?<text>.*)/g", | |
| "regexApplyTo": "value", | |
| "type": "query" | |
| } | |
| ] | |
| }, | |
| "time": { | |
| "from": "now-30d", | |
| "to": "now" | |
| }, | |
| "timepicker": { | |
| "nowDelay": "1h", | |
| "refresh_intervals": [ | |
| "5s", | |
| "10s", | |
| "30s", | |
| "1m", | |
| "5m", | |
| "15m", | |
| "30m", | |
| "1h", | |
| "2h", | |
| "1d" | |
| ] | |
| }, | |
| "timezone": "browser", | |
| "title": "Example Dashboard for Notehub v1 APIs", | |
| "uid": "notehub-projecct-customer-example", | |
| "version": 6, | |
| "weekStart": "" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment