garm/metrics/util.go
Mario Constanti 58e8b3454c feat: add new metrics
add info metrics about providers, enterprises, organizations,
repositories and pools.

Also expose most of the configurable pool information as metric like
e.g. max Runners as garm_pool_max_runners

Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
2023-10-06 10:21:56 +02:00

8 lines
87 B
Go

package metrics
func bool2float64(b bool) float64 {
if b {
return 1
}
return 0
}