Prometheus: Implement Streaming JSON Parser (#48477)

use `prometheusStreamingJSONParser` feature toggle to enable
This commit is contained in:
Todd Treece
2022-05-13 14:28:54 -04:00
committed by GitHub
parent e528f2e430
commit 87e8521591
39 changed files with 2877 additions and 34 deletions
@@ -0,0 +1,56 @@
{
"frames": [
{
"schema": {
"name": "go_goroutines{job=\"prometheus\"}",
"meta": {
"type": "timeseries-many",
"custom": {
"resultType": "matrix"
},
"executedQueryString": "Expr: test1\nStep: 1s"
},
"fields": [
{
"name": "Time",
"type": "time",
"typeInfo": {
"frame": "time.Time"
},
"config": {
"interval": 1000
}
},
{
"name": "Value",
"type": "number",
"typeInfo": {
"frame": "float64"
},
"labels": {
"__name__": "go_goroutines",
"job": "prometheus"
},
"config": {
"displayNameFromDS": "go_goroutines{job=\"prometheus\"}"
}
}
]
},
"data": {
"values": [
[
1641889533000,
1641889534000,
1641889537000
],
[
21,
32,
43
]
]
}
}
]
}