Commit fdd2b432 authored by ale's avatar ale

Update ai3/go-common

parent dce2b3be
Pipeline #735 passed with stages
in 1 minute and 7 seconds
......@@ -103,16 +103,24 @@ func instrumentHandler(h http.Handler) http.Handler {
// HTTP-related metrics.
var (
// Since we instrument the root HTTP handler, we don't really
// have a good way to set the 'handler' label based on the
// request URL - but still, we'd like to set the label to
// match what the other Prometheus jobs do. So we just set it
// to 'all'.
totalRequests = prometheus.NewCounterVec(
prometheus.CounterOpts{
Name: "total_requests",
Name: "http_requests_total",
Help: "Total number of requests.",
ConstLabels: prometheus.Labels{
"handler": "all",
},
},
[]string{"code"},
[]string{"code", "method"},
)
inFlightRequests = prometheus.NewGauge(
prometheus.GaugeOpts{
Name: "inflight_requests",
Name: "http_requests_inflight",
Help: "Number of in-flight requests.",
},
)
......
......@@ -15,10 +15,10 @@
"revisionTime": "2017-12-17T20:32:41Z"
},
{
"checksumSHA1": "wY0SM35qAhX3P2IZzDnYa068cPw=",
"checksumSHA1": "nlGRxexjZUxnHc/z/+ZqV/Xq51w=",
"path": "git.autistici.org/ai3/go-common/serverutil",
"revision": "8cedcb1d73128f5566216cb3e39ad1ccea318213",
"revisionTime": "2017-12-16T15:39:23Z"
"revision": "aa88011352b67032c19b0c14eaa06b3417176753",
"revisionTime": "2017-12-19T17:20:40Z"
},
{
"checksumSHA1": "C1BVHHj8iBgBN5EWr3ucsGoEzew=",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment