Handle unknown resource pool stats
This commit is contained in:
parent
9a03cdff18
commit
eb9ec4acd0
1 changed files with 7 additions and 5 deletions
|
|
@ -347,11 +347,13 @@
|
||||||
(for-each
|
(for-each
|
||||||
(match-lambda
|
(match-lambda
|
||||||
((stat . value)
|
((stat . value)
|
||||||
(metric-set
|
(and=> (assq-ref resource-pool-metrics stat)
|
||||||
(assq-ref resource-pool-metrics stat)
|
(lambda (metric)
|
||||||
value
|
(metric-set
|
||||||
#:label-values
|
metric
|
||||||
`((pool_name . ,name)))))
|
value
|
||||||
|
#:label-values
|
||||||
|
`((pool_name . ,name)))))))
|
||||||
(with-exception-handler
|
(with-exception-handler
|
||||||
(lambda (exn)
|
(lambda (exn)
|
||||||
(simple-format
|
(simple-format
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue