unified-storage: dont index -- Grafana -- datasource dashboard fields (#111774)
* unified-storage: dont index -- Grafana -- datasource dashboard fields
This commit is contained in:
@@ -334,6 +334,9 @@ func filterOutSpecialDatasources(dash *DashboardSummaryInfo) {
|
|||||||
case "-- Dashboard --":
|
case "-- Dashboard --":
|
||||||
// The `Dashboard` datasource refers to the results of the query used in another panel
|
// The `Dashboard` datasource refers to the results of the query used in another panel
|
||||||
continue
|
continue
|
||||||
|
case "grafana":
|
||||||
|
// this is the uid for the -- Grafana -- datasource
|
||||||
|
continue
|
||||||
default:
|
default:
|
||||||
dsRefs = append(dsRefs, ds)
|
dsRefs = append(dsRefs, ds)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-13
@@ -2,24 +2,12 @@
|
|||||||
"id": 250,
|
"id": 250,
|
||||||
"title": "fast streaming",
|
"title": "fast streaming",
|
||||||
"tags": null,
|
"tags": null,
|
||||||
"datasource": [
|
|
||||||
{
|
|
||||||
"uid": "grafana",
|
|
||||||
"type": "datasource"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"panels": [
|
"panels": [
|
||||||
{
|
{
|
||||||
"id": 3,
|
"id": 3,
|
||||||
"title": "Panel Title",
|
"title": "Panel Title",
|
||||||
"type": "timeseries",
|
"type": "timeseries",
|
||||||
"pluginVersion": "7.5.0-pre",
|
"pluginVersion": "7.5.0-pre"
|
||||||
"datasource": [
|
|
||||||
{
|
|
||||||
"uid": "grafana",
|
|
||||||
"type": "datasource"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"schemaVersion": 27,
|
"schemaVersion": 27,
|
||||||
|
|||||||
+1
-15
@@ -3,10 +3,6 @@
|
|||||||
"title": "special ds",
|
"title": "special ds",
|
||||||
"tags": null,
|
"tags": null,
|
||||||
"datasource": [
|
"datasource": [
|
||||||
{
|
|
||||||
"uid": "grafana",
|
|
||||||
"type": "datasource"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"uid": "dgd92lq7k",
|
"uid": "dgd92lq7k",
|
||||||
"type": "frser-sqlite-datasource"
|
"type": "frser-sqlite-datasource"
|
||||||
@@ -22,10 +18,6 @@
|
|||||||
"title": "mixed ds with grafana ds",
|
"title": "mixed ds with grafana ds",
|
||||||
"type": "timeseries",
|
"type": "timeseries",
|
||||||
"datasource": [
|
"datasource": [
|
||||||
{
|
|
||||||
"uid": "grafana",
|
|
||||||
"type": "datasource"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"uid": "dgd92lq7k",
|
"uid": "dgd92lq7k",
|
||||||
"type": "frser-sqlite-datasource"
|
"type": "frser-sqlite-datasource"
|
||||||
@@ -45,13 +37,7 @@
|
|||||||
{
|
{
|
||||||
"id": 6,
|
"id": 6,
|
||||||
"title": "grafana ds",
|
"title": "grafana ds",
|
||||||
"type": "timeseries",
|
"type": "timeseries"
|
||||||
"datasource": [
|
|
||||||
{
|
|
||||||
"uid": "grafana",
|
|
||||||
"type": "datasource"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 2,
|
"id": 2,
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
"createdBy": "user:be2g71ke8yoe8b",
|
"createdBy": "user:be2g71ke8yoe8b",
|
||||||
"fields": {
|
"fields": {
|
||||||
"ds_types": [
|
"ds_types": [
|
||||||
"datasource",
|
|
||||||
"my-custom-plugin"
|
"my-custom-plugin"
|
||||||
],
|
],
|
||||||
"errors_last_1_days": 1,
|
"errors_last_1_days": 1,
|
||||||
@@ -47,12 +46,6 @@
|
|||||||
"kind": "DataSource",
|
"kind": "DataSource",
|
||||||
"name": "DSUID"
|
"name": "DSUID"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"relation": "depends-on",
|
|
||||||
"group": "datasource",
|
|
||||||
"kind": "DataSource",
|
|
||||||
"name": "grafana"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"relation": "depends-on",
|
"relation": "depends-on",
|
||||||
"group": "dashboards.grafana.app",
|
"group": "dashboards.grafana.app",
|
||||||
|
|||||||
Reference in New Issue
Block a user