{ "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "gnetId": null, "graphTooltip": 0, "iteration": 1610180483405, "links": [], "panels": [ { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 11, "panels": [], "title": "Value options tests", "type": "row" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": 2, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "ms" }, "overrides": [] }, "gridPos": { "h": 8, "w": 5, "x": 0, "y": 1 }, "id": 2, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["mean"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,0" } ], "timeFrom": null, "timeShift": null, "title": "Average, 2 decimals, ms unit", "type": "gauge" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": null, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "ms" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 5, "y": 1 }, "id": 5, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["max"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,0" } ], "timeFrom": null, "timeShift": null, "title": "Max (90 ms), no decimals", "type": "gauge" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": null, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 8, "w": 5, "x": 11, "y": 1 }, "id": 6, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,10" } ], "timeFrom": null, "timeShift": null, "title": "Current (10 ms), no unit, prefix (p), suffix (s)", "type": "gauge" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "", "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 16, "y": 1 }, "id": 16, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,10" } ], "timeFrom": null, "timeShift": null, "title": "", "type": "gauge" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "", "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 5, "x": 19, "y": 1 }, "id": 18, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,10,91" } ], "timeFrom": "1h", "timeShift": null, "title": "", "type": "gauge" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "", "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 3, "x": 16, "y": 5 }, "id": 17, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,10" } ], "timeFrom": null, "timeShift": null, "title": "", "type": "gauge" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "", "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 5, "x": 19, "y": 5 }, "id": 19, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,10,81" } ], "timeFrom": null, "timeShift": null, "title": "", "type": "gauge" }, { "datasource": null, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 24, "x": 0, "y": 9 }, "id": 30, "options": { "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "alias": "", "csvWave": { "timeStep": 60, "valuesCSV": "0,0,2,2,1,1" }, "lines": 10, "points": [], "pulseWave": { "offCount": 3, "offValue": 1, "onCount": 3, "onValue": 2, "timeStep": 60 }, "refId": "A", "scenarioId": "csv_metric_values", "stream": { "bands": 1, "noise": 2.2, "speed": 250, "spread": 3.5, "type": "signal" }, "stringInput": "null,null" } ], "title": "Only nulls and no user set min & max", "type": "gauge" }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 14 }, "id": 15, "panels": [], "title": "Value Mappings", "type": "row" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "", "mappings": [ { "from": "", "id": 1, "operator": "", "text": "TEN", "to": "", "type": 1, "value": "10" } ], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 0, "y": 15 }, "id": 12, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,10" } ], "timeFrom": null, "timeShift": null, "title": "value mapping 10 -> TEN", "type": "gauge" }, { "datasource": "gdev-testdata", "description": "should read N/A", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "", "mappings": [ { "from": "", "id": 1, "operator": "", "text": "N/A", "to": "", "type": 1, "value": "null" } ], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 4, "y": 15 }, "id": 13, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,10,null,null,null,null" } ], "timeFrom": null, "timeShift": null, "title": "value mapping null -> N/A", "type": "gauge" }, { "datasource": "gdev-testdata", "description": "should read N/A", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "", "mappings": [ { "from": "0", "id": 1, "operator": "", "text": "OK", "to": "10", "type": 2, "value": "null" } ], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 8, "y": 15 }, "id": 20, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,10,null,null,null,null,10" } ], "timeFrom": null, "timeShift": null, "title": "value mapping range, 0-10 -> OK, value 10", "type": "gauge" }, { "datasource": "gdev-testdata", "description": "should read N/A", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "", "mappings": [ { "from": "0", "id": 1, "operator": "", "text": "OK", "to": "90", "type": 2, "value": "null" }, { "from": "90", "id": 2, "operator": "", "text": "BAD", "to": "100", "type": 2, "value": "" } ], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 14, "y": 15 }, "id": 21, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,10,null,null,null,null,10,95" } ], "timeFrom": null, "timeShift": null, "title": "value mapping range, 90-100 -> BAD, value 90", "type": "gauge" }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 23 }, "id": 9, "panels": [], "title": "Templating & Repeat", "type": "row" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "2", "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "ms" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 0, "y": 24 }, "id": 7, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["mean"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "repeat": "Servers", "repeatDirection": "h", "scopedVars": { "Servers": { "selected": false, "text": "server1", "value": "server1" } }, "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,0" } ], "timeFrom": null, "timeShift": null, "title": "repeat $Servers", "type": "gauge" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "2", "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "ms" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 6, "y": 24 }, "id": 26, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["mean"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "repeatDirection": "h", "repeatIteration": 1610180483405, "repeatPanelId": 7, "scopedVars": { "Servers": { "selected": false, "text": "server2", "value": "server2" } }, "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,0" } ], "timeFrom": null, "timeShift": null, "title": "repeat $Servers", "type": "gauge" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "2", "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "ms" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 12, "y": 24 }, "id": 27, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["mean"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "repeatDirection": "h", "repeatIteration": 1610180483405, "repeatPanelId": 7, "scopedVars": { "Servers": { "selected": false, "text": "server3", "value": "server3" } }, "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,0" } ], "timeFrom": null, "timeShift": null, "title": "repeat $Servers", "type": "gauge" }, { "datasource": "gdev-testdata", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": {}, "decimals": "2", "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#7EB26D", "index": 0, "value": null }, { "color": "#ef843c", "index": 1, "value": 75 }, { "color": "#e24d42", "index": 2, "value": 90 } ] }, "unit": "ms" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 18, "y": 24 }, "id": 28, "links": [], "nullPointMode": "null", "options": { "baseColor": "#299c46", "reduceOptions": { "calcs": ["mean"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "7.4.0-pre", "repeatDirection": "h", "repeatIteration": 1610180483405, "repeatPanelId": 7, "scopedVars": { "Servers": { "selected": false, "text": "server4", "value": "server4" } }, "targets": [ { "refId": "A", "scenarioId": "csv_metric_values", "stringInput": "1,20,90,30,5,0" } ], "timeFrom": null, "timeShift": null, "title": "repeat $Servers", "type": "gauge" } ], "refresh": false, "schemaVersion": 27, "style": "dark", "tags": ["gdev", "panel-tests"], "templating": { "list": [ { "allValue": null, "current": { "selected": true, "tags": [], "text": "All", "value": ["$__all"] }, "description": null, "error": null, "hide": 0, "includeAll": true, "label": null, "multi": true, "name": "Servers", "options": [ { "selected": true, "text": "All", "value": "$__all" }, { "selected": false, "text": "server1", "value": "server1" }, { "selected": false, "text": "server2", "value": "server2" }, { "selected": false, "text": "server3", "value": "server3" }, { "selected": false, "text": "server4", "value": "server4" } ], "query": "server1,server2,server3,server4", "skipUrlSync": false, "type": "custom" } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"], "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"] }, "timezone": "", "title": "Panel Tests - Gauge", "uid": "_5rDmaQiz", "version": 2 }