Include tablespace as a label for table metrics
As this will make it easier to tell where space is going.
This commit is contained in:
parent
6023aa8caf
commit
3cb8ce51fc
2 changed files with 15 additions and 6 deletions
|
|
@ -146,20 +146,24 @@
|
|||
select-load-new-guix-revision-job-metrics)))
|
||||
|
||||
(for-each (match-lambda
|
||||
((name row-estimate table-bytes index-bytes toast-bytes)
|
||||
((name tablespace row-estimate
|
||||
table-bytes index-bytes toast-bytes)
|
||||
|
||||
(metric-set table-row-estimate-metric
|
||||
row-estimate
|
||||
#:label-values `((name . ,name)))
|
||||
(metric-set table-bytes-metric
|
||||
table-bytes
|
||||
#:label-values `((name . ,name)))
|
||||
#:label-values `((name . ,name)
|
||||
(tablespace . ,tablespace)))
|
||||
(metric-set table-index-bytes-metric
|
||||
index-bytes
|
||||
#:label-values `((name . ,name)))
|
||||
#:label-values `((name . ,name)
|
||||
(tablespace . ,tablespace)))
|
||||
(metric-set table-toast-bytes-metric
|
||||
toast-bytes
|
||||
#:label-values `((name . ,name)))))
|
||||
#:label-values `((name . ,name)
|
||||
(tablespace . ,tablespace)))))
|
||||
metric-values)
|
||||
|
||||
(metric-set revisions-count-metric
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue