Skip to content

Commit

Permalink
Merge pull request #18 from jml/histogram-in-wai
Browse files Browse the repository at this point in the history
Use Histogram, not Summary, in WAI
  • Loading branch information
fimad authored Jul 2, 2017
2 parents 1322b34 + f2be0f3 commit 8d8a804
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ instance Default.Default PrometheusSettings where
{-# NOINLINE requestLatency #-}
-- XXX: https://prometheus.io/docs/practices/naming/ says this should be
-- _seconds, not _microseconds.
requestLatency :: Prom.Metric (Prom.Vector Prom.Label3 Prom.Summary)
requestLatency :: Prom.Metric (Prom.Vector Prom.Label3 Prom.Histogram)
requestLatency = Prom.unsafeRegisterIO $ Prom.vector ("handler", "method", "status_code")
$ Prom.summary info Prom.defaultQuantiles
$ Prom.histogram info Prom.defaultBuckets
where info = Prom.Info "http_request_duration_seconds"
"The HTTP request latencies in seconds."

Expand Down

0 comments on commit 8d8a804

Please sign in to comment.