From 8b11e3bc9cc26f1e9c8c542abfaa2aed25215517 Mon Sep 17 00:00:00 2001 From: Em Sharnoff Date: Tue, 24 Dec 2024 17:25:37 -0800 Subject: [PATCH] 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. --- .../lfc_approximate_working_set_size_windows.autoscaling.sql | 4 ++-- .../sql_exporter/lfc_approximate_working_set_size_windows.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compute/etc/sql_exporter/lfc_approximate_working_set_size_windows.autoscaling.sql b/compute/etc/sql_exporter/lfc_approximate_working_set_size_windows.autoscaling.sql index 35fa42c34cac..66492e121a72 100644 --- a/compute/etc/sql_exporter/lfc_approximate_working_set_size_windows.autoscaling.sql +++ b/compute/etc/sql_exporter/lfc_approximate_working_set_size_windows.autoscaling.sql @@ -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); diff --git a/compute/etc/sql_exporter/lfc_approximate_working_set_size_windows.sql b/compute/etc/sql_exporter/lfc_approximate_working_set_size_windows.sql index 46c7d1610c7f..133f79cb6b2b 100644 --- a/compute/etc/sql_exporter/lfc_approximate_working_set_size_windows.sql +++ b/compute/etc/sql_exporter/lfc_approximate_working_set_size_windows.sql @@ -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);