udpapte tests
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@
|
|||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
"id": 1,
|
"id": 23,
|
||||||
"options": {
|
"options": {
|
||||||
"content": "This dashboard demonstrates various monitoring components for application observability and performance metrics.\n",
|
"content": "This dashboard demonstrates various monitoring components for application observability and performance metrics.\n",
|
||||||
"mode": "markdown"
|
"mode": "markdown"
|
||||||
|
|||||||
+48
-48
@@ -31,53 +31,6 @@
|
|||||||
"cursorSync": "Off",
|
"cursorSync": "Off",
|
||||||
"editable": false,
|
"editable": false,
|
||||||
"elements": {
|
"elements": {
|
||||||
"panel-1": {
|
|
||||||
"kind": "Panel",
|
|
||||||
"spec": {
|
|
||||||
"id": 1,
|
|
||||||
"title": "Application Monitoring",
|
|
||||||
"description": "",
|
|
||||||
"links": [],
|
|
||||||
"data": {
|
|
||||||
"kind": "QueryGroup",
|
|
||||||
"spec": {
|
|
||||||
"queries": [
|
|
||||||
{
|
|
||||||
"kind": "PanelQuery",
|
|
||||||
"spec": {
|
|
||||||
"query": {
|
|
||||||
"kind": "prometheus",
|
|
||||||
"spec": {}
|
|
||||||
},
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "default-ds-uid"
|
|
||||||
},
|
|
||||||
"refId": "A",
|
|
||||||
"hidden": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"transformations": [],
|
|
||||||
"queryOptions": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"vizConfig": {
|
|
||||||
"kind": "text",
|
|
||||||
"spec": {
|
|
||||||
"pluginVersion": "",
|
|
||||||
"options": {
|
|
||||||
"content": "This dashboard demonstrates various monitoring components for application observability and performance metrics.\n",
|
|
||||||
"mode": "markdown"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {},
|
|
||||||
"overrides": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"panel-10": {
|
"panel-10": {
|
||||||
"kind": "Panel",
|
"kind": "Panel",
|
||||||
"spec": {
|
"spec": {
|
||||||
@@ -1024,6 +977,53 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"panel-23": {
|
||||||
|
"kind": "Panel",
|
||||||
|
"spec": {
|
||||||
|
"id": 23,
|
||||||
|
"title": "Application Monitoring",
|
||||||
|
"description": "",
|
||||||
|
"links": [],
|
||||||
|
"data": {
|
||||||
|
"kind": "QueryGroup",
|
||||||
|
"spec": {
|
||||||
|
"queries": [
|
||||||
|
{
|
||||||
|
"kind": "PanelQuery",
|
||||||
|
"spec": {
|
||||||
|
"query": {
|
||||||
|
"kind": "prometheus",
|
||||||
|
"spec": {}
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "default-ds-uid"
|
||||||
|
},
|
||||||
|
"refId": "A",
|
||||||
|
"hidden": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transformations": [],
|
||||||
|
"queryOptions": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"vizConfig": {
|
||||||
|
"kind": "text",
|
||||||
|
"spec": {
|
||||||
|
"pluginVersion": "",
|
||||||
|
"options": {
|
||||||
|
"content": "This dashboard demonstrates various monitoring components for application observability and performance metrics.\n",
|
||||||
|
"mode": "markdown"
|
||||||
|
},
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {},
|
||||||
|
"overrides": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"panel-6": {
|
"panel-6": {
|
||||||
"kind": "Panel",
|
"kind": "Panel",
|
||||||
"spec": {
|
"spec": {
|
||||||
@@ -1259,7 +1259,7 @@
|
|||||||
"height": 3,
|
"height": 3,
|
||||||
"element": {
|
"element": {
|
||||||
"kind": "ElementReference",
|
"kind": "ElementReference",
|
||||||
"name": "panel-1"
|
"name": "panel-23"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+50
-50
@@ -32,55 +32,6 @@
|
|||||||
"cursorSync": "Off",
|
"cursorSync": "Off",
|
||||||
"editable": false,
|
"editable": false,
|
||||||
"elements": {
|
"elements": {
|
||||||
"panel-1": {
|
|
||||||
"kind": "Panel",
|
|
||||||
"spec": {
|
|
||||||
"id": 1,
|
|
||||||
"title": "Application Monitoring",
|
|
||||||
"description": "",
|
|
||||||
"links": [],
|
|
||||||
"data": {
|
|
||||||
"kind": "QueryGroup",
|
|
||||||
"spec": {
|
|
||||||
"queries": [
|
|
||||||
{
|
|
||||||
"kind": "PanelQuery",
|
|
||||||
"spec": {
|
|
||||||
"query": {
|
|
||||||
"kind": "DataQuery",
|
|
||||||
"group": "prometheus",
|
|
||||||
"version": "v0",
|
|
||||||
"datasource": {
|
|
||||||
"name": "default-ds-uid"
|
|
||||||
},
|
|
||||||
"spec": {}
|
|
||||||
},
|
|
||||||
"refId": "A",
|
|
||||||
"hidden": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"transformations": [],
|
|
||||||
"queryOptions": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"vizConfig": {
|
|
||||||
"kind": "VizConfig",
|
|
||||||
"group": "text",
|
|
||||||
"version": "",
|
|
||||||
"spec": {
|
|
||||||
"options": {
|
|
||||||
"content": "This dashboard demonstrates various monitoring components for application observability and performance metrics.\n",
|
|
||||||
"mode": "markdown"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {},
|
|
||||||
"overrides": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"panel-10": {
|
"panel-10": {
|
||||||
"kind": "Panel",
|
"kind": "Panel",
|
||||||
"spec": {
|
"spec": {
|
||||||
@@ -1067,6 +1018,55 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"panel-23": {
|
||||||
|
"kind": "Panel",
|
||||||
|
"spec": {
|
||||||
|
"id": 23,
|
||||||
|
"title": "Application Monitoring",
|
||||||
|
"description": "",
|
||||||
|
"links": [],
|
||||||
|
"data": {
|
||||||
|
"kind": "QueryGroup",
|
||||||
|
"spec": {
|
||||||
|
"queries": [
|
||||||
|
{
|
||||||
|
"kind": "PanelQuery",
|
||||||
|
"spec": {
|
||||||
|
"query": {
|
||||||
|
"kind": "DataQuery",
|
||||||
|
"group": "prometheus",
|
||||||
|
"version": "v0",
|
||||||
|
"datasource": {
|
||||||
|
"name": "default-ds-uid"
|
||||||
|
},
|
||||||
|
"spec": {}
|
||||||
|
},
|
||||||
|
"refId": "A",
|
||||||
|
"hidden": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transformations": [],
|
||||||
|
"queryOptions": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"vizConfig": {
|
||||||
|
"kind": "VizConfig",
|
||||||
|
"group": "text",
|
||||||
|
"version": "",
|
||||||
|
"spec": {
|
||||||
|
"options": {
|
||||||
|
"content": "This dashboard demonstrates various monitoring components for application observability and performance metrics.\n",
|
||||||
|
"mode": "markdown"
|
||||||
|
},
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {},
|
||||||
|
"overrides": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"panel-6": {
|
"panel-6": {
|
||||||
"kind": "Panel",
|
"kind": "Panel",
|
||||||
"spec": {
|
"spec": {
|
||||||
@@ -1310,7 +1310,7 @@
|
|||||||
"height": 3,
|
"height": 3,
|
||||||
"element": {
|
"element": {
|
||||||
"kind": "ElementReference",
|
"kind": "ElementReference",
|
||||||
"name": "panel-1"
|
"name": "panel-23"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -432,9 +432,7 @@ func getPanels(dashboard map[string]interface{}) []map[string]interface{} {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Also get panels from rows (pre-v16 dashboard format)
|
// Also get panels from rows
|
||||||
// This is needed for ensurePanelsHaveUniqueIds to work correctly
|
|
||||||
// before the row upgrade migration runs
|
|
||||||
if rows, ok := dashboard["rows"].([]interface{}); ok {
|
if rows, ok := dashboard["rows"].([]interface{}); ok {
|
||||||
for _, rowInterface := range rows {
|
for _, rowInterface := range rows {
|
||||||
if row, ok := rowInterface.(map[string]interface{}); ok {
|
if row, ok := rowInterface.(map[string]interface{}); ok {
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@
|
|||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
"id": 1,
|
"id": 23,
|
||||||
"options": {
|
"options": {
|
||||||
"content": "This dashboard demonstrates various monitoring components for application observability and performance metrics.\n",
|
"content": "This dashboard demonstrates various monitoring components for application observability and performance metrics.\n",
|
||||||
"mode": "markdown"
|
"mode": "markdown"
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@
|
|||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
"id": 1,
|
"id": 23,
|
||||||
"options": {
|
"options": {
|
||||||
"content": "This dashboard demonstrates various monitoring components for application observability and performance metrics.\n",
|
"content": "This dashboard demonstrates various monitoring components for application observability and performance metrics.\n",
|
||||||
"mode": "markdown"
|
"mode": "markdown"
|
||||||
|
|||||||
Reference in New Issue
Block a user