Skip to content

Commit

Permalink
tmp: Change lfc_approximate_working_set_size metric to expose multipl…
Browse files Browse the repository at this point in the history
…e rolling HLL
  • Loading branch information
sharnoff committed Jul 3, 2024
1 parent 02b30d3 commit 56335f0
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions vm-image-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
#
Expand Down

0 comments on commit 56335f0

Please sign in to comment.