-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpostprocess.jq
30 lines (30 loc) · 979 Bytes
/
postprocess.jq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
html: {
caddy: {
requests: .[0].metrics.http_reqs.values.count,
duration: .[0].metrics.http_req_duration.values,
fail_rate: .[0].metrics.http_req_failed.values.rate,
ttfb: .[0].metrics.http_req_waiting.values
},
nginx: {
requests: .[2].metrics.http_reqs.values.count,
duration: .[2].metrics.http_req_duration.values,
fail_rate: .[2].metrics.http_req_failed.values.rate,
ttfb: .[2].metrics.http_req_waiting.values
}
},
synthetic: {
caddy: {
requests: .[1].metrics.http_reqs.values.count,
duration: .[1].metrics.http_req_duration.values,
fail_rate: .[1].metrics.http_req_failed.values.rate,
ttfb: .[1].metrics.http_req_waiting.values
},
nginx: {
requests: .[3].metrics.http_reqs.values.count,
duration: .[3].metrics.http_req_duration.values,
fail_rate: .[3].metrics.http_req_failed.values.rate,
ttfb: .[3].metrics.http_req_waiting.values
}
}
}