Skip to content

Commit

Permalink
neonvm: add LFC approximate working set size to metrics (#7252)
Browse files Browse the repository at this point in the history
ref neondatabase/autoscaling#878
ref neondatabase/autoscaling#872

Add `approximate_working_set_size` to sql exporter so that autoscaling
can use it in the future.

---------

Signed-off-by: Alex Chi Z <chi@neon.tech>
Co-authored-by: Peter Bendel <peterbendel@neon.tech>
  • Loading branch information
skyzh and Bodobolero committed Mar 29, 2024
1 parent 63213fc commit 7ddc7b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vm-image-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@ files:
query: |
select sum(pg_database_size(datname)) as total from pg_database;
- 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]
query: |
select neon.approximate_working_set_size(false) as approximate_working_set_size;
build: |
# Build cgroup-tools
#
Expand Down

1 comment on commit 7ddc7b4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2828 tests run: 2674 passed, 0 failed, 154 skipped (full report)


Flaky tests (1)

Postgres 15

  • test_pageserver_auth: debug

Code coverage* (full report)

  • functions: 28.3% (6360 of 22502 functions)
  • lines: 47.2% (44879 of 95135 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
7ddc7b4 at 2024-03-29T17:20:32.645Z :recycle:

Please sign in to comment.