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
|
||||
(match-lambda
|
||||
((stat . value)
|
||||
(metric-set
|
||||
(assq-ref resource-pool-metrics stat)
|
||||
value
|
||||
#:label-values
|
||||
`((pool_name . ,name)))))
|
||||
(and=> (assq-ref resource-pool-metrics stat)
|
||||
(lambda (metric)
|
||||
(metric-set
|
||||
metric
|
||||
value
|
||||
#:label-values
|
||||
`((pool_name . ,name)))))))
|
||||
(with-exception-handler
|
||||
(lambda (exn)
|
||||
(simple-format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue