mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-22 21:59:59 +00:00
neonvm: add LFC approximate working set size to metrics (#7252)
ref https://github.com/neondatabase/autoscaling/pull/878 ref https://github.com/neondatabase/autoscaling/issues/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>
This commit is contained in:
@@ -187,6 +187,14 @@ files:
|
|||||||
query: |
|
query: |
|
||||||
select sum(pg_database_size(datname)) as total from pg_database;
|
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: |
|
||||||
# Build cgroup-tools
|
# Build cgroup-tools
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user