mirror of https://github.com/grafana/grafana
Prometheus datasource: Show info annotations in the UI (#97978)
* Show info annotations from Prometheus datasources in the UI * Add test data for backendpull/98489/head
parent
228ac25ff4
commit
e3e51f6e3b
@ -0,0 +1,443 @@ |
||||
// 🌟 This was machine generated. Do not edit. 🌟 |
||||
// |
||||
// Frame[0] { |
||||
// "type": "timeseries-multi", |
||||
// "typeVersion": [ |
||||
// 0, |
||||
// 0 |
||||
// ], |
||||
// "custom": { |
||||
// "resultType": "vector" |
||||
// }, |
||||
// "notices": [ |
||||
// { |
||||
// "text": "info 1" |
||||
// }, |
||||
// { |
||||
// "text": "info 2" |
||||
// } |
||||
// ] |
||||
// } |
||||
// Name: |
||||
// Dimensions: 2 Fields by 1 Rows |
||||
// +-----------------------------------+--------------------------------------------------------------+ |
||||
// | Name: Time | Name: Value | |
||||
// | Labels: | Labels: __name__=up, instance=localhost:9090, job=prometheus | |
||||
// | Type: []time.Time | Type: []float64 | |
||||
// +-----------------------------------+--------------------------------------------------------------+ |
||||
// | 2015-07-01 20:10:51.781 +0000 UTC | 1 | |
||||
// +-----------------------------------+--------------------------------------------------------------+ |
||||
// |
||||
// |
||||
// |
||||
// Frame[1] { |
||||
// "type": "timeseries-multi", |
||||
// "typeVersion": [ |
||||
// 0, |
||||
// 0 |
||||
// ], |
||||
// "custom": { |
||||
// "resultType": "vector" |
||||
// }, |
||||
// "notices": [ |
||||
// { |
||||
// "text": "info 1" |
||||
// }, |
||||
// { |
||||
// "text": "info 2" |
||||
// } |
||||
// ] |
||||
// } |
||||
// Name: |
||||
// Dimensions: 2 Fields by 1 Rows |
||||
// +-----------------------------------+--------------------------------------------------------+ |
||||
// | Name: Time | Name: Value | |
||||
// | Labels: | Labels: __name__=up, instance=localhost:9100, job=node | |
||||
// | Type: []time.Time | Type: []float64 | |
||||
// +-----------------------------------+--------------------------------------------------------+ |
||||
// | 2015-07-01 20:10:51.781 +0000 UTC | 0 | |
||||
// +-----------------------------------+--------------------------------------------------------+ |
||||
// |
||||
// |
||||
// |
||||
// Frame[2] { |
||||
// "type": "timeseries-multi", |
||||
// "typeVersion": [ |
||||
// 0, |
||||
// 0 |
||||
// ], |
||||
// "custom": { |
||||
// "resultType": "vector" |
||||
// }, |
||||
// "notices": [ |
||||
// { |
||||
// "text": "info 1" |
||||
// }, |
||||
// { |
||||
// "text": "info 2" |
||||
// } |
||||
// ] |
||||
// } |
||||
// Name: |
||||
// Dimensions: 2 Fields by 1 Rows |
||||
// +-------------------------------+------------------------------------+ |
||||
// | Name: Time | Name: Value | |
||||
// | Labels: | Labels: level=error, location=moon | |
||||
// | Type: []time.Time | Type: []float64 | |
||||
// +-------------------------------+------------------------------------+ |
||||
// | 2022-02-16 16:41:39 +0000 UTC | +Inf | |
||||
// +-------------------------------+------------------------------------+ |
||||
// |
||||
// |
||||
// |
||||
// Frame[3] { |
||||
// "type": "timeseries-multi", |
||||
// "typeVersion": [ |
||||
// 0, |
||||
// 0 |
||||
// ], |
||||
// "custom": { |
||||
// "resultType": "vector" |
||||
// }, |
||||
// "notices": [ |
||||
// { |
||||
// "text": "info 1" |
||||
// }, |
||||
// { |
||||
// "text": "info 2" |
||||
// } |
||||
// ] |
||||
// } |
||||
// Name: |
||||
// Dimensions: 2 Fields by 1 Rows |
||||
// +-------------------------------+-----------------------------------+ |
||||
// | Name: Time | Name: Value | |
||||
// | Labels: | Labels: level=info, location=moon | |
||||
// | Type: []time.Time | Type: []float64 | |
||||
// +-------------------------------+-----------------------------------+ |
||||
// | 2022-02-16 16:41:39 +0000 UTC | -Inf | |
||||
// +-------------------------------+-----------------------------------+ |
||||
// |
||||
// |
||||
// |
||||
// Frame[4] { |
||||
// "type": "timeseries-multi", |
||||
// "typeVersion": [ |
||||
// 0, |
||||
// 0 |
||||
// ], |
||||
// "custom": { |
||||
// "resultType": "vector" |
||||
// }, |
||||
// "notices": [ |
||||
// { |
||||
// "text": "info 1" |
||||
// }, |
||||
// { |
||||
// "text": "info 2" |
||||
// } |
||||
// ] |
||||
// } |
||||
// Name: |
||||
// Dimensions: 2 Fields by 1 Rows |
||||
// +-------------------------------+------------------------------------+ |
||||
// | Name: Time | Name: Value | |
||||
// | Labels: | Labels: level=debug, location=moon | |
||||
// | Type: []time.Time | Type: []float64 | |
||||
// +-------------------------------+------------------------------------+ |
||||
// | 2022-02-16 16:41:39 +0000 UTC | NaN | |
||||
// +-------------------------------+------------------------------------+ |
||||
// |
||||
// |
||||
// 🌟 This was machine generated. Do not edit. 🌟 |
||||
{ |
||||
"status": 200, |
||||
"frames": [ |
||||
{ |
||||
"schema": { |
||||
"meta": { |
||||
"type": "timeseries-multi", |
||||
"typeVersion": [ |
||||
0, |
||||
0 |
||||
], |
||||
"custom": { |
||||
"resultType": "vector" |
||||
}, |
||||
"notices": [ |
||||
{ |
||||
"text": "info 1" |
||||
}, |
||||
{ |
||||
"text": "info 2" |
||||
} |
||||
] |
||||
}, |
||||
"fields": [ |
||||
{ |
||||
"name": "Time", |
||||
"type": "time", |
||||
"typeInfo": { |
||||
"frame": "time.Time" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "Value", |
||||
"type": "number", |
||||
"typeInfo": { |
||||
"frame": "float64" |
||||
}, |
||||
"labels": { |
||||
"__name__": "up", |
||||
"instance": "localhost:9090", |
||||
"job": "prometheus" |
||||
} |
||||
} |
||||
] |
||||
}, |
||||
"data": { |
||||
"values": [ |
||||
[ |
||||
1435781451781 |
||||
], |
||||
[ |
||||
1 |
||||
] |
||||
] |
||||
} |
||||
}, |
||||
{ |
||||
"schema": { |
||||
"meta": { |
||||
"type": "timeseries-multi", |
||||
"typeVersion": [ |
||||
0, |
||||
0 |
||||
], |
||||
"custom": { |
||||
"resultType": "vector" |
||||
}, |
||||
"notices": [ |
||||
{ |
||||
"text": "info 1" |
||||
}, |
||||
{ |
||||
"text": "info 2" |
||||
} |
||||
] |
||||
}, |
||||
"fields": [ |
||||
{ |
||||
"name": "Time", |
||||
"type": "time", |
||||
"typeInfo": { |
||||
"frame": "time.Time" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "Value", |
||||
"type": "number", |
||||
"typeInfo": { |
||||
"frame": "float64" |
||||
}, |
||||
"labels": { |
||||
"__name__": "up", |
||||
"instance": "localhost:9100", |
||||
"job": "node" |
||||
} |
||||
} |
||||
] |
||||
}, |
||||
"data": { |
||||
"values": [ |
||||
[ |
||||
1435781451781 |
||||
], |
||||
[ |
||||
0 |
||||
] |
||||
] |
||||
} |
||||
}, |
||||
{ |
||||
"schema": { |
||||
"meta": { |
||||
"type": "timeseries-multi", |
||||
"typeVersion": [ |
||||
0, |
||||
0 |
||||
], |
||||
"custom": { |
||||
"resultType": "vector" |
||||
}, |
||||
"notices": [ |
||||
{ |
||||
"text": "info 1" |
||||
}, |
||||
{ |
||||
"text": "info 2" |
||||
} |
||||
] |
||||
}, |
||||
"fields": [ |
||||
{ |
||||
"name": "Time", |
||||
"type": "time", |
||||
"typeInfo": { |
||||
"frame": "time.Time" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "Value", |
||||
"type": "number", |
||||
"typeInfo": { |
||||
"frame": "float64" |
||||
}, |
||||
"labels": { |
||||
"level": "error", |
||||
"location": "moon" |
||||
} |
||||
} |
||||
] |
||||
}, |
||||
"data": { |
||||
"values": [ |
||||
[ |
||||
1645029699000 |
||||
], |
||||
[ |
||||
null |
||||
] |
||||
], |
||||
"entities": [ |
||||
null, |
||||
{ |
||||
"Inf": [ |
||||
0 |
||||
] |
||||
} |
||||
] |
||||
} |
||||
}, |
||||
{ |
||||
"schema": { |
||||
"meta": { |
||||
"type": "timeseries-multi", |
||||
"typeVersion": [ |
||||
0, |
||||
0 |
||||
], |
||||
"custom": { |
||||
"resultType": "vector" |
||||
}, |
||||
"notices": [ |
||||
{ |
||||
"text": "info 1" |
||||
}, |
||||
{ |
||||
"text": "info 2" |
||||
} |
||||
] |
||||
}, |
||||
"fields": [ |
||||
{ |
||||
"name": "Time", |
||||
"type": "time", |
||||
"typeInfo": { |
||||
"frame": "time.Time" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "Value", |
||||
"type": "number", |
||||
"typeInfo": { |
||||
"frame": "float64" |
||||
}, |
||||
"labels": { |
||||
"level": "info", |
||||
"location": "moon" |
||||
} |
||||
} |
||||
] |
||||
}, |
||||
"data": { |
||||
"values": [ |
||||
[ |
||||
1645029699000 |
||||
], |
||||
[ |
||||
null |
||||
] |
||||
], |
||||
"entities": [ |
||||
null, |
||||
{ |
||||
"NegInf": [ |
||||
0 |
||||
] |
||||
} |
||||
] |
||||
} |
||||
}, |
||||
{ |
||||
"schema": { |
||||
"meta": { |
||||
"type": "timeseries-multi", |
||||
"typeVersion": [ |
||||
0, |
||||
0 |
||||
], |
||||
"custom": { |
||||
"resultType": "vector" |
||||
}, |
||||
"notices": [ |
||||
{ |
||||
"text": "info 1" |
||||
}, |
||||
{ |
||||
"text": "info 2" |
||||
} |
||||
] |
||||
}, |
||||
"fields": [ |
||||
{ |
||||
"name": "Time", |
||||
"type": "time", |
||||
"typeInfo": { |
||||
"frame": "time.Time" |
||||
} |
||||
}, |
||||
{ |
||||
"name": "Value", |
||||
"type": "number", |
||||
"typeInfo": { |
||||
"frame": "float64" |
||||
}, |
||||
"labels": { |
||||
"level": "debug", |
||||
"location": "moon" |
||||
} |
||||
} |
||||
] |
||||
}, |
||||
"data": { |
||||
"values": [ |
||||
[ |
||||
1645029699000 |
||||
], |
||||
[ |
||||
null |
||||
] |
||||
], |
||||
"entities": [ |
||||
null, |
||||
{ |
||||
"NaN": [ |
||||
0 |
||||
] |
||||
} |
||||
] |
||||
} |
||||
} |
||||
] |
||||
} |
@ -0,0 +1,51 @@ |
||||
// 🌟 This was machine generated. Do not edit. 🌟 |
||||
// |
||||
// Frame[0] { |
||||
// "typeVersion": [ |
||||
// 0, |
||||
// 0 |
||||
// ], |
||||
// "notices": [ |
||||
// { |
||||
// "text": "info 1" |
||||
// }, |
||||
// { |
||||
// "text": "info 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": [ |
||||
{ |
||||
"text": "info 1" |
||||
}, |
||||
{ |
||||
"text": "info 2" |
||||
} |
||||
] |
||||
}, |
||||
"fields": [] |
||||
}, |
||||
"data": { |
||||
"values": [] |
||||
} |
||||
} |
||||
] |
||||
} |
@ -0,0 +1,8 @@ |
||||
{ |
||||
"status" : "success", |
||||
"data" : { |
||||
"resultType" : "vector", |
||||
"result" : [] |
||||
}, |
||||
"infos" : ["info 1", "info 2"] |
||||
} |
@ -0,0 +1,37 @@ |
||||
{ |
||||
"status" : "success", |
||||
"data" : { |
||||
"resultType" : "vector", |
||||
"result" : [ |
||||
{ |
||||
"metric" : { |
||||
"__name__" : "up", |
||||
"job" : "prometheus", |
||||
"instance" : "localhost:9090" |
||||
}, |
||||
"value": [ 1435781451.781, "1" ] |
||||
}, |
||||
{ |
||||
"metric" : { |
||||
"__name__" : "up", |
||||
"job" : "node", |
||||
"instance" : "localhost:9100" |
||||
}, |
||||
"value" : [ 1435781451.781, "0" ] |
||||
}, |
||||
{ |
||||
"metric": { "level": "error", "location": "moon"}, |
||||
"value": [1645029699, "+Inf"] |
||||
}, |
||||
{ |
||||
"metric": { "level": "info", "location": "moon" }, |
||||
"value": [1645029699, "-Inf"] |
||||
}, |
||||
{ |
||||
"metric": { "level": "debug", "location": "moon" }, |
||||
"value": [1645029699, "NaN"] |
||||
} |
||||
] |
||||
}, |
||||
"infos" : ["info 1", "info 2"] |
||||
} |
Loading…
Reference in new issue