refactor: hlint
This commit is contained in:
parent
2462c68f49
commit
e1052a60ad
@ -379,7 +379,7 @@ warpSettings foundation = defaultSettings
|
|||||||
Systemd.notifyReady
|
Systemd.notifyReady
|
||||||
readyMetric ts = Prometheus.Metric $ return (MkReadySince, collectReadySince)
|
readyMetric ts = Prometheus.Metric $ return (MkReadySince, collectReadySince)
|
||||||
where
|
where
|
||||||
collectReadySince = return $ [Prometheus.SampleGroup info Prometheus.GaugeType [Prometheus.Sample "ready_time" [] sample]]
|
collectReadySince = return [Prometheus.SampleGroup info Prometheus.GaugeType [Prometheus.Sample "ready_time" [] sample]]
|
||||||
info = Prometheus.Info "ready_time" "POSIXTime this Uni2work-instance became ready"
|
info = Prometheus.Info "ready_time" "POSIXTime this Uni2work-instance became ready"
|
||||||
sample = encodeUtf8 . tshow . (realToFrac :: POSIXTime -> Nano) $ utcTimeToPOSIXSeconds ts
|
sample = encodeUtf8 . tshow . (realToFrac :: POSIXTime -> Nano) $ utcTimeToPOSIXSeconds ts
|
||||||
if
|
if
|
||||||
|
|||||||
Reference in New Issue
Block a user