Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
id
go-sso
Commits
fdd2b432
Commit
fdd2b432
authored
Dec 19, 2017
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ai3/go-common
parent
dce2b3be
Pipeline
#735
passed with stages
in 1 minute and 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
vendor/git.autistici.org/ai3/go-common/serverutil/http.go
vendor/git.autistici.org/ai3/go-common/serverutil/http.go
+11
-3
vendor/vendor.json
vendor/vendor.json
+3
-3
No files found.
vendor/git.autistici.org/ai3/go-common/serverutil/http.go
View file @
fdd2b432
...
...
@@ -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
:
"
inflig
ht_requests"
,
Name
:
"ht
tp
_requests
_inflight
"
,
Help
:
"Number of in-flight requests."
,
},
)
...
...
vendor/vendor.json
View file @
fdd2b432
...
...
@@ -15,10 +15,10 @@
"revisionTime"
:
"2017-12-17T20:32:41Z"
},
{
"checksumSHA1"
:
"
wY0SM35qAhX3P2IZzDnYa068cP
w="
,
"checksumSHA1"
:
"
nlGRxexjZUxnHc/z/+ZqV/Xq51
w="
,
"path"
:
"git.autistici.org/ai3/go-common/serverutil"
,
"revision"
:
"
8cedcb1d73128f5566216cb3e39ad1ccea31821
3"
,
"revisionTime"
:
"2017-12-1
6
T1
5:39:23
Z"
"revision"
:
"
aa88011352b67032c19b0c14eaa06b341717675
3"
,
"revisionTime"
:
"2017-12-1
9
T1
7:20:40
Z"
},
{
"checksumSHA1"
:
"C1BVHHj8iBgBN5EWr3ucsGoEzew="
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment