There are logs with contents like [{timestamp: xxx, duraton: 5, url: "/foo1", status: 200}, {timestamp: xxx, duraton: 7, url: "/foo2", status: 200}, {duraton: 6, url: "/foo1", status: 200}...] I'd like stats the throughput and latency with sparkline. Now I can get the avg sparkline, however, if there is a way to get the p50 sparkline, p90 sparkline or so, the avg latency sparkline might not be helpful enough. Sample query is like below.
... earliest=-1d@d latest=@d | stats sparkline(count, 5m) as throughput, sparkline(avg(duration), 5m) as latency, count as total_requests, p50(duration) as duration_p50, p90(duration) as duration_p90, p99(duration) as duration_p99
... View more