Prometheus: Show notice when there is no data (#93936)

Show notice when there is no data
This commit is contained in:
Vijay Karthik
2024-11-05 08:25:28 +01:00
committed by GitHub
parent 2485286c03
commit 297ccfc52c
4 changed files with 81 additions and 0 deletions
@@ -0,0 +1,55 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "typeVersion": [
// 0,
// 0
// ],
// "notices": [
// {
// "severity": "warning",
// "text": "warning 1"
// },
// {
// "severity": "warning",
// "text": "warning 2"
// }
// ]
// }
// Name: Warnings
// Dimensions: 0 Fields by 0 Rows
// +
// +
//
//
// 🌟 This was machine generated. Do not edit. 🌟
{
"status": 200,
"frames": [
{
"schema": {
"name": "Warnings",
"meta": {
"typeVersion": [
0,
0
],
"notices": [
{
"severity": "warning",
"text": "warning 1"
},
{
"severity": "warning",
"text": "warning 2"
}
]
},
"fields": []
},
"data": {
"values": []
}
}
]
}
@@ -0,0 +1,8 @@
{
"status" : "success",
"data" : {
"resultType" : "vector",
"result" : []
},
"warnings" : ["warning 1", "warning 2"]
}