Files
neon/compute/etc/sql_exporter/compute_backpressure_throttling_seconds.sql
Tristan Partin a61d81bbc7 Calculate compute_backpressure_throttling_seconds correctly
The original value that we get is measured in microseconds. It comes
from a calculation using Postgres' GetCurrentTimestamp(), whihc is
implemented in terms of gettimeofday(2).

Signed-off-by: Tristan Partin <tristan@neon.tech>
2024-11-12 13:12:08 -06:00

2 lines
77 B
SQL

SELECT (neon.backpressure_throttling_time()::float8 / 1000000) AS throttled;