Compare commits

...

1 Commits

Author SHA1 Message Date
Em Sharnoff
8b11e3bc9c compute/sql_exporter: Bump max WSS window from 1h -> 3h
Concretely, this:

1. Changes the normal (public) exporter to add a new 3-hour working set
   size label onto the existing 5-minute, 15-minute, and 1-hour values.

2. Extends the range on the autoscaling exporter from 1..60 minutes to
   1..180 minutes -- keeping the same density, just 3x longer.
2024-12-24 17:27:48 -08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
-- NOTE: This is the "internal" / "machine-readable" version. This outputs the
-- working set size looking back 1..60 minutes, labeled with the number of
-- working set size looking back 1..180 minutes, labeled with the number of
-- minutes.
SELECT
x::text as duration_seconds,
neon.approximate_working_set_size_seconds(x) AS size
FROM (SELECT generate_series * 60 AS x FROM generate_series(1, 60)) AS t (x);
FROM (SELECT generate_series * 60 AS x FROM generate_series(1, 180)) AS t (x);

View File

@@ -4,5 +4,5 @@
SELECT
x AS duration,
neon.approximate_working_set_size_seconds(extract('epoch' FROM x::interval)::int) AS size FROM (
VALUES ('5m'), ('15m'), ('1h')
VALUES ('5m'), ('15m'), ('1h'), ('3h')
) AS t (x);