Skip to content

Commit 588f82d

Browse files
committed
fix(metrics): switch index_pilot exporter to index_latest_state
1 parent c60f55d commit 588f82d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

config/pgwatch-prometheus/metrics.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,8 +1946,6 @@ metrics:
19461946
11: |
19471947
select
19481948
(extract(epoch from now()) * 1e9)::int8 as epoch_ns,
1949-
current_database() as tag_datname,
1950-
database_name as tag_database_name,
19511949
datname as tag_datname,
19521950
schemaname as tag_schemaname,
19531951
relname as tag_relname,
@@ -1956,7 +1954,7 @@ metrics:
19561954
indisvalid::int as is_valid,
19571955
estimated_tuples,
19581956
best_ratio
1959-
from index_pilot.index_current_state
1957+
from index_pilot.index_latest_state
19601958
order by indexsize desc
19611959
limit 2000;
19621960
gauges:

0 commit comments

Comments
 (0)