Pre populate the server names using a query (#19367)

User doesn't need to remember and enter the server values,
rather they can select from the pre populated list.

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
Shubhendu 2024-03-28 20:44:26 +05:30 committed by GitHub
parent 8222a640ac
commit d63e603040
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 12 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 KiB

After

Width:  |  Height:  |  Size: 152 KiB

View File

@ -917,23 +917,28 @@
}, },
{ {
"current": { "current": {
"selected": false,
"text": "tenant1-ss-0-0.tenant1-hl.tenant-ns.svc.cluster.local:9000",
"value": "tenant1-ss-0-0.tenant1-hl.tenant-ns.svc.cluster.local:9000"
}, },
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(minio_node_drive_total,server)",
"hide": 0, "hide": 0,
"includeAll": false,
"label": "Server", "label": "Server",
"multi": false,
"name": "server", "name": "server",
"options": [ "options": [],
{ "query": {
"selected": true, "qryType": 1,
"text": "tenant1-ss-0-0.tenant1-hl.tenant-ns.svc.cluster.local:9000", "query": "label_values(minio_node_drive_total,server)",
"value": "tenant1-ss-0-0.tenant1-hl.tenant-ns.svc.cluster.local:9000" "refId": "PrometheusVariableQueryEditor-VariableQuery"
} },
], "refresh": 1,
"query": "tenant1-ss-0-0.tenant1-hl.tenant-ns.svc.cluster.local:9000", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
"type": "textbox" "sort": 0,
"type": "query"
} }
] ]
}, },