I want to transform below data in grafana such that I have 3 columns.
- for vhost e.g. www.google.com
- for 1st value under sent_bytes i.e. 1741421400 (epoch)
- for 2nd value under sent_bytes i.e. 204626090 (bytes)
Can someone please help me write a UQL query to transform the data as needed?
Below is the data:
{
"vhost": {
"www.google.com": {
"metrics": {
"sent_bytes": [
[
1741421400,
204626090
],
[
1741421460,
32288988229
],
[
1741421520,
30957862076
],
[
1741421580,
32160304293
],
[
1741421640,
32199266036
],
[
1741421700,
31333896590
]
]
}
},
"2ndvhost": {
"metrics": {
"sent_bytes": [
[
1741421400,
0
],
[
1741421460,
517576
],
[
1741421520,
0
],
[
1741421580,
0
],
[
1741421640,
0
],
[
1741421700,
0
]
]
}
},
"3rdvhost": {
"metrics": {
"sent_bytes": [
[
1741421400,
0
],
[
1741421460,
456499281
],
[
1741421520,
444765703
],
[
1741421580,
477708716
],
[
1741421640,
439811300
],
[
1741421700,
409478691
]
]
}
}
}
}