diff --git a/vm-image-spec.yaml b/vm-image-spec.yaml index 99164645a730..aee941b3aad4 100644 --- a/vm-image-spec.yaml +++ b/vm-image-spec.yaml @@ -236,13 +236,17 @@ files: query: | select sum(pg_database_size(datname)) as total from pg_database; + # TEMPORARY - only to help with making data available via internal metrics while testing. - metric_name: lfc_approximate_working_set_size type: gauge help: 'Approximate working set size in pages of 8192 bytes' - key_labels: - values: [approximate_working_set_size] + key_labels: [duration] + values: [size] query: | - select neon.approximate_working_set_size(false) as approximate_working_set_size; + select + x as duration, neon.approximate_working_set_size_seconds(extract('epoch' from x::interval)::int) as size + from + (values ('15s'),('30s'),('1m'),('5m'),('10m'),('30m'),('1h')) as t (x); - metric_name: current_lsn type: gauge @@ -379,10 +383,13 @@ files: - metric_name: lfc_approximate_working_set_size type: gauge help: 'Approximate working set size in pages of 8192 bytes' - key_labels: - values: [approximate_working_set_size] + key_labels: [duration] + values: [size] query: | - select neon.approximate_working_set_size(false) as approximate_working_set_size; + select + x as duration, neon.approximate_working_set_size_seconds(extract('epoch' from x::interval)::int) as size + from + (values ('15s'),('30s'),('1m'),('5m'),('10m'),('30m'),('1h')) as t (x); build: | # Build cgroup-tools #