diff --git a/apps/dashboard/pkg/migration/conversion/testdata/output/migrated_dev_dashboards/panel-gauge/v0alpha1.gauge_tests_new.v42.v1beta1.json b/apps/dashboard/pkg/migration/conversion/testdata/output/migrated_dev_dashboards/panel-gauge/v0alpha1.gauge_tests_new.v42.v1beta1.json index 2eeb3040e6d..a1fcb2a85ac 100644 --- a/apps/dashboard/pkg/migration/conversion/testdata/output/migrated_dev_dashboards/panel-gauge/v0alpha1.gauge_tests_new.v42.v1beta1.json +++ b/apps/dashboard/pkg/migration/conversion/testdata/output/migrated_dev_dashboards/panel-gauge/v0alpha1.gauge_tests_new.v42.v1beta1.json @@ -2160,4 +2160,4 @@ "storedVersion": "v0alpha1" } } -} \ No newline at end of file +} diff --git a/apps/dashboard/pkg/migration/testdata/dev-dashboards-output/panel-gauge/gauge_tests_new.v42.json b/apps/dashboard/pkg/migration/testdata/dev-dashboards-output/panel-gauge/gauge_tests_new.v42.json index c589f8b7400..9f8cf76c9f7 100644 --- a/apps/dashboard/pkg/migration/testdata/dev-dashboards-output/panel-gauge/gauge_tests_new.v42.json +++ b/apps/dashboard/pkg/migration/testdata/dev-dashboards-output/panel-gauge/gauge_tests_new.v42.json @@ -1603,7 +1603,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "description": "", "fieldConfig": { "defaults": { "color": { @@ -1671,7 +1670,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "hide": false, "max": 98, "min": 5, "noise": 22, @@ -1689,7 +1687,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "description": "", "fieldConfig": { "defaults": { "color": { @@ -1757,7 +1754,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "hide": false, "max": 98, "min": 5, "noise": 22, @@ -1788,7 +1784,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "description": "", "fieldConfig": { "defaults": { "color": { @@ -1857,7 +1852,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "hide": false, "max": 8, "min": 1, "noise": 2, @@ -1875,7 +1869,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "description": "", "fieldConfig": { "defaults": { "color": { @@ -1944,7 +1937,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "hide": false, "max": 12, "min": 1, "noise": 2, @@ -1962,7 +1954,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "description": "", "fieldConfig": { "defaults": { "color": { @@ -2030,7 +2021,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "hide": false, "max": 100, "min": 10, "noise": 22, @@ -2048,7 +2038,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "description": "", "fieldConfig": { "defaults": { "color": { @@ -2116,7 +2105,6 @@ "datasource": { "type": "grafana-testdata-datasource" }, - "hide": false, "max": 100, "min": 10, "noise": 22, @@ -2129,6 +2117,147 @@ ], "title": "Backend", "type": "radialbar" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 66 + }, + "id": 35, + "panels": [], + "title": "Empty data", + "type": "row" + }, + { + "datasource": { + "type": "grafana-testdata-datasource" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 0, + "y": 67 + }, + "id": 36, + "options": { + "barWidthFactor": 0.5, + "effects": { + "barGlow": false, + "centerGlow": false, + "gradient": true, + "rounded": false, + "spotlight": false + }, + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "segmentCount": 1, + "segmentSpacing": 0.3, + "shape": "gauge", + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sparkline": true + }, + "pluginVersion": "13.0.0-pre", + "targets": [ + { + "refId": "A", + "scenarioId": "random_walk", + "seriesCount": 0 + } + ], + "title": "Numeric, no series", + "type": "gauge" + }, + { + "datasource": { + "type": "grafana-testdata-datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 6, + "y": 67 + }, + "id": 37, + "options": { + "barWidthFactor": 0.5, + "effects": { + "barGlow": false, + "centerGlow": false, + "gradient": true, + "rounded": false, + "spotlight": false + }, + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "segmentCount": 1, + "segmentSpacing": 0.3, + "shape": "gauge", + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sparkline": true + }, + "pluginVersion": "13.0.0-pre", + "targets": [ + { + "refId": "A", + "scenarioId": "logs" + } + ], + "title": "Non-numeric", + "type": "gauge" } ], "preload": false, diff --git a/devenv/dev-dashboards/panel-gauge/gauge_tests_new.json b/devenv/dev-dashboards/panel-gauge/gauge_tests_new.json index 967aae83c0e..b3c47c9aa7a 100644 --- a/devenv/dev-dashboards/panel-gauge/gauge_tests_new.json +++ b/devenv/dev-dashboards/panel-gauge/gauge_tests_new.json @@ -18,7 +18,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 1943, + "id": 525, "links": [], "panels": [ { @@ -92,7 +92,7 @@ "showThresholdMarkers": false, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -169,7 +169,7 @@ "showThresholdMarkers": false, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -246,7 +246,7 @@ "showThresholdMarkers": false, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -323,7 +323,7 @@ "showThresholdMarkers": false, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -400,7 +400,7 @@ "showThresholdMarkers": false, "sparkline": true }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -477,7 +477,7 @@ "showThresholdMarkers": false, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -554,7 +554,7 @@ "showThresholdMarkers": false, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -644,7 +644,7 @@ "showThresholdMarkers": false, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -721,7 +721,7 @@ "showThresholdMarkers": false, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -798,7 +798,7 @@ "showThresholdMarkers": false, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -875,7 +875,7 @@ "showThresholdMarkers": false, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -969,7 +969,7 @@ "showThresholdMarkers": true, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -1046,7 +1046,7 @@ "showThresholdMarkers": true, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -1123,7 +1123,7 @@ "showThresholdMarkers": true, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -1200,7 +1200,7 @@ "showThresholdMarkers": true, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -1277,7 +1277,7 @@ "showThresholdMarkers": true, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -1371,7 +1371,7 @@ "showThresholdMarkers": true, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -1452,7 +1452,7 @@ "showThresholdMarkers": false, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -1533,7 +1533,7 @@ "showThresholdMarkers": true, "sparkline": false }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "alias": "1", @@ -1624,7 +1624,7 @@ "sparkline": false, "spotlight": true }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "datasource": { @@ -1706,7 +1706,7 @@ "sparkline": true, "spotlight": true }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "datasource": { @@ -1802,7 +1802,7 @@ "sparkline": false, "spotlight": true }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "datasource": { @@ -1885,7 +1885,7 @@ "sparkline": false, "spotlight": true }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "datasource": { @@ -1967,7 +1967,7 @@ "sparkline": false, "spotlight": true }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "datasource": { @@ -2049,7 +2049,7 @@ "sparkline": false, "spotlight": true }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "datasource": { @@ -2133,7 +2133,7 @@ "showThresholdMarkers": true, "sparkline": true }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "refId": "A", @@ -2199,7 +2199,7 @@ "showThresholdMarkers": true, "sparkline": true }, - "pluginVersion": "12.4.0-pre", + "pluginVersion": "13.0.0-pre", "targets": [ { "refId": "A", @@ -2223,5 +2223,6 @@ "timepicker": {}, "timezone": "browser", "title": "Panel tests - Gauge (new)", + "uid": "panel-tests-gauge-new", "version": 9 }