influxdata / nginx-influxdb-module

MIT License
39 stars 13 forks source link

Explain request time #8

Closed fntlnz closed 6 years ago

fntlnz commented 6 years ago

The new field has been added with #5 and can be used to show latency graphs in Mbit/s, it is in seconds with a millisecond resolution.

image image

The query is:

SELECT non_negative_derivative(sum("request_length"), 1s) * 8 AS "sum_request_length" FROM "mydb"."myretention"."nginx" WHERE time > :dashboardTime: GROUP BY time(:interval:) FILL(null)

Signed-off-by: Lorenzo Fontana lo@linux.com