mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-13 04:38:28 +01:00
Merge pull request #241 from kerscher/prometheus-upgrade
Prometheus upgrade
This commit is contained in:
commit
8f7e3514a3
@ -52,16 +52,16 @@ track name inner = do
|
|||||||
return result
|
return result
|
||||||
where
|
where
|
||||||
{-# NOINLINE duration #-}
|
{-# NOINLINE duration #-}
|
||||||
duration :: P.Metric (P.Vector P.Label1 P.Summary)
|
duration :: P.Metric (P.Vector P.Label1 P.Histogram)
|
||||||
duration =
|
duration =
|
||||||
P.unsafeRegisterIO
|
P.unsafeRegisterIO
|
||||||
(P.vector
|
(P.vector
|
||||||
"fn"
|
"fn"
|
||||||
(P.summary
|
(P.histogram
|
||||||
(P.Info
|
(P.Info
|
||||||
"stackage_server_fn"
|
"stackage_server_fn"
|
||||||
"Stackage Server function call (duration in microseconds).")
|
"Stackage Server function call (duration in microseconds).")
|
||||||
P.defaultQuantiles))
|
P.defaultBuckets))
|
||||||
|
|
||||||
dateDiff :: UTCTime -- ^ now
|
dateDiff :: UTCTime -- ^ now
|
||||||
-> Day -- ^ target
|
-> Day -- ^ target
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
resolver: lts-8.12
|
resolver: lts-9.13
|
||||||
packages:
|
packages:
|
||||||
- .
|
- .
|
||||||
- location:
|
- location:
|
||||||
@ -7,8 +7,8 @@ packages:
|
|||||||
extra-dep: true
|
extra-dep: true
|
||||||
- location:
|
- location:
|
||||||
git: https://github.com/commercialhaskell/all-cabal-metadata-tool
|
git: https://github.com/commercialhaskell/all-cabal-metadata-tool
|
||||||
commit: 1a4d8cff4e796ea0049537a38e38ec0a739caf64
|
commit: ea541be73238a5ce14ad26f4e2a94e63981242a4
|
||||||
extra-dep: true
|
extra-dep: true
|
||||||
extra-deps:
|
extra-deps:
|
||||||
- aws-0.16
|
|
||||||
- barrier-0.1.1
|
- barrier-0.1.1
|
||||||
|
- spoon-0.3.1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user