Devenv: add dashboard showing timeseries out of range points (#56130)

This commit is contained in:
Ryan McKinley
2022-09-30 15:47:23 -04:00
committed by GitHub
parent c16317e5b8
commit 268a49cb38
5 changed files with 541 additions and 4 deletions
@@ -0,0 +1,513 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"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": 0,
"id": 1435,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "testdata",
"uid": "PD8C576611E62080A"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
"mode": "fixed"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 10,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 8,
"x": 0,
"y": 0
},
"id": 3,
"maxDataPoints": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.3.0-pre",
"targets": [
{
"csvContent": "Time,Value,Name\n2022-09-01T05:00:00Z,100,Before\n2022-09-01T06:00:00Z,100,Middle",
"datasource": {
"type": "testdata",
"uid": "PD8C576611E62080A"
},
"refId": "B",
"scenarioId": "csv_content"
}
],
"title": "Before + Middle",
"type": "timeseries"
},
{
"datasource": {
"type": "testdata",
"uid": "PD8C576611E62080A"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
"mode": "fixed"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 10,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 8,
"x": 8,
"y": 0
},
"id": 2,
"maxDataPoints": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.3.0-pre",
"targets": [
{
"csvContent": "Time,Value,Name\n2022-09-01T05:00:00Z,100,Before\n2022-09-01T07:00:00Z,100,After\n",
"datasource": {
"type": "testdata",
"uid": "PD8C576611E62080A"
},
"refId": "B",
"scenarioId": "csv_content"
}
],
"title": "Before + After",
"type": "timeseries"
},
{
"datasource": {
"type": "testdata",
"uid": "PD8C576611E62080A"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
"mode": "fixed"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 10,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 8,
"x": 16,
"y": 0
},
"id": 4,
"maxDataPoints": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.3.0-pre",
"targets": [
{
"csvContent": "Time,Value,Name\n2022-09-01T06:00:00Z,100,Middle\n2022-09-01T07:00:00Z,100,After\n",
"datasource": {
"type": "testdata",
"uid": "PD8C576611E62080A"
},
"refId": "B",
"scenarioId": "csv_content"
}
],
"title": "Middle + After",
"type": "timeseries"
},
{
"datasource": {
"type": "testdata",
"uid": "PD8C576611E62080A"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
"mode": "fixed"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 10,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 9
},
"id": 5,
"maxDataPoints": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.3.0-pre",
"targets": [
{
"csvContent": "Time,Value,Name\n2022-09-01T04:00:00Z,100,Before1\n2022-09-01T05:00:00Z,100,Before2\n",
"datasource": {
"type": "testdata",
"uid": "PD8C576611E62080A"
},
"refId": "B",
"scenarioId": "csv_content"
}
],
"title": "Two points before (show zoom button)",
"type": "timeseries"
},
{
"datasource": {
"type": "testdata",
"uid": "PD8C576611E62080A"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
"mode": "fixed"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 10,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 9
},
"id": 6,
"maxDataPoints": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "9.3.0-pre",
"targets": [
{
"csvContent": "Time,Value,Name\n2022-09-01T07:00:00Z,100,After1\n2022-09-01T08:00:00Z,100,After2\n",
"datasource": {
"type": "testdata",
"uid": "PD8C576611E62080A"
},
"refId": "B",
"scenarioId": "csv_content"
}
],
"title": "Two points after (show zoom button)",
"type": "timeseries"
}
],
"refresh": false,
"schemaVersion": 37,
"style": "dark",
"tags": [
"gdev",
"panel-tests",
"graph-ng"
],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Panel Tests - Timeseries - Out of range",
"uid": "pqnrfd4Vz",
"version": 1,
"weekStart": ""
}
+10 -1
View File
@@ -2,7 +2,7 @@
// //
// Frame[0] // Frame[0]
// Name: labels // Name: labels
// Dimensions: 3 Fields by 209 Rows // Dimensions: 3 Fields by 212 Rows
// +-----------------------------------------------------+-----------------+----------------+ // +-----------------------------------------------------+-----------------+----------------+
// | Name: uid | Name: key | Name: value | // | Name: uid | Name: key | Name: value |
// | Labels: | Labels: | Labels: | // | Labels: | Labels: | Labels: |
@@ -250,6 +250,9 @@
"panel-timeline/timeline-modes.json", "panel-timeline/timeline-modes.json",
"panel-timeline/timeline-modes.json", "panel-timeline/timeline-modes.json",
"panel-timeline/timeline-modes.json", "panel-timeline/timeline-modes.json",
"panel-timeseries/timeseries-out-of-rage.json",
"panel-timeseries/timeseries-out-of-rage.json",
"panel-timeseries/timeseries-out-of-rage.json",
"scenarios/time_zone_support.json", "scenarios/time_zone_support.json",
"scenarios/time_zone_support.json", "scenarios/time_zone_support.json",
"scenarios/time_zone_support.json", "scenarios/time_zone_support.json",
@@ -462,6 +465,9 @@
"graph-ng", "graph-ng",
"panel-tests", "panel-tests",
"gdev", "gdev",
"graph-ng",
"panel-tests",
"gdev",
"graph", "graph",
"panel-tests", "panel-tests",
"table", "table",
@@ -684,6 +690,9 @@
"", "",
"", "",
"", "",
"",
"",
"",
"" ""
] ]
] ]
+5 -1
View File
@@ -2,7 +2,7 @@
// //
// Frame[0] // Frame[0]
// Name: raw // Name: raw
// Dimensions: 4 Fields by 96 Rows // Dimensions: 4 Fields by 97 Rows
// +---------------------------------------------------------+----------------+---------------+----------------------------------+ // +---------------------------------------------------------+----------------+---------------+----------------------------------+
// | Name: uid | Name: kind | Name: size | Name: etag | // | Name: uid | Name: kind | Name: size | Name: etag |
// | Labels: | Labels: | Labels: | Labels: | // | Labels: | Labels: | Labels: | Labels: |
@@ -150,6 +150,7 @@
"panel-text/text-options.json", "panel-text/text-options.json",
"panel-timeline/timeline-demo.json", "panel-timeline/timeline-demo.json",
"panel-timeline/timeline-modes.json", "panel-timeline/timeline-modes.json",
"panel-timeseries/timeseries-out-of-rage.json",
"scenarios/slow_queries_and_annotations.json", "scenarios/slow_queries_and_annotations.json",
"scenarios/time_zone_support.json", "scenarios/time_zone_support.json",
"transforms/config-from-query.json", "transforms/config-from-query.json",
@@ -254,6 +255,7 @@
"", "",
"", "",
"", "",
"",
"" ""
], ],
[ [
@@ -346,6 +348,7 @@
7122, 7122,
10777, 10777,
8674, 8674,
13368,
24166, 24166,
15128, 15128,
13876, 13876,
@@ -444,6 +447,7 @@
"f6ea799109bb78d2f2954947a188d7b6", "f6ea799109bb78d2f2954947a188d7b6",
"dfcd599be6b6df94aef3b6da9d8ac3fb", "dfcd599be6b6df94aef3b6da9d8ac3fb",
"21dd0f87426cf7afc030d688d5516178", "21dd0f87426cf7afc030d688d5516178",
"45294c2260bda5bba87039a18a98576d",
"727c2c46deddeb164cd9ce36a0ec1567", "727c2c46deddeb164cd9ce36a0ec1567",
"f517e61f40152e16f3291e72c27f606d", "f517e61f40152e16f3291e72c27f606d",
"c1cbaf503457216461032844f47ac065", "c1cbaf503457216461032844f47ac065",
@@ -2,7 +2,7 @@
// //
// Frame[0] // Frame[0]
// Name: references // Name: references
// Dimensions: 4 Fields by 291 Rows // Dimensions: 4 Fields by 293 Rows
// +-------------------------------+----------------+----------------+----------------+ // +-------------------------------+----------------+----------------+----------------+
// | Name: uid | Name: kind | Name: type | Name: uid | // | Name: uid | Name: kind | Name: type | Name: uid |
// | Labels: | Labels: | Labels: | Labels: | // | Labels: | Labels: | Labels: | Labels: |
@@ -328,6 +328,8 @@
"panel-timeline/timeline-modes.json", "panel-timeline/timeline-modes.json",
"panel-timeline/timeline-modes.json", "panel-timeline/timeline-modes.json",
"panel-timeline/timeline-modes.json", "panel-timeline/timeline-modes.json",
"panel-timeseries/timeseries-out-of-rage.json",
"panel-timeseries/timeseries-out-of-rage.json",
"scenarios/slow_queries_and_annotations.json", "scenarios/slow_queries_and_annotations.json",
"scenarios/slow_queries_and_annotations.json", "scenarios/slow_queries_and_annotations.json",
"scenarios/time_zone_support.json", "scenarios/time_zone_support.json",
@@ -627,6 +629,8 @@
"panel", "panel",
"ds", "ds",
"panel", "panel",
"ds",
"panel",
"panel", "panel",
"panel", "panel",
"ds", "ds",
@@ -915,6 +919,8 @@
"state-timeline", "state-timeline",
"status-history", "status-history",
"default.type", "default.type",
"timeseries",
"default.type",
"graph", "graph",
"default.type", "default.type",
"graph", "graph",
@@ -1213,6 +1219,8 @@
"", "",
"default.uid", "default.uid",
"", "",
"default.uid",
"",
"", "",
"", "",
"default.uid", "default.uid",
+4 -1
View File
@@ -2,7 +2,7 @@
// //
// Frame[0] // Frame[0]
// Name: summary // Name: summary
// Dimensions: 3 Fields by 96 Rows // Dimensions: 3 Fields by 97 Rows
// +---------------------------------------------------------+----------------------------------------------+--------------------------+ // +---------------------------------------------------------+----------------------------------------------+--------------------------+
// | Name: uid | Name: name | Name: fields | // | Name: uid | Name: name | Name: fields |
// | Labels: | Labels: | Labels: | // | Labels: | Labels: | Labels: |
@@ -143,6 +143,7 @@
"panel-text/text-options.json", "panel-text/text-options.json",
"panel-timeline/timeline-demo.json", "panel-timeline/timeline-demo.json",
"panel-timeline/timeline-modes.json", "panel-timeline/timeline-modes.json",
"panel-timeseries/timeseries-out-of-rage.json",
"scenarios/slow_queries_and_annotations.json", "scenarios/slow_queries_and_annotations.json",
"scenarios/time_zone_support.json", "scenarios/time_zone_support.json",
"transforms/config-from-query.json", "transforms/config-from-query.json",
@@ -241,6 +242,7 @@
"Text options", "Text options",
"Timeline Demo", "Timeline Demo",
"Timeline Modes", "Timeline Modes",
"Panel Tests - Timeseries - Out of range",
"Panel tests - Slow Queries \u0026 Annotations", "Panel tests - Slow Queries \u0026 Annotations",
"Panel Tests - Time zone support", "Panel Tests - Time zone support",
"Transforms - Config from query", "Transforms - Config from query",
@@ -409,6 +411,7 @@
{}, {},
{}, {},
{}, {},
{},
{} {}
] ]
] ]