Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
keystore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
id
keystore
Commits
cc414896
Commit
cc414896
authored
7 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Update ai3/go-common
parent
ae260514
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vendor/git.autistici.org/ai3/go-common/serverutil/http.go
+11
-3
11 additions, 3 deletions
vendor/git.autistici.org/ai3/go-common/serverutil/http.go
vendor/vendor.json
+3
-3
3 additions, 3 deletions
vendor/vendor.json
with
14 additions
and
6 deletions
vendor/git.autistici.org/ai3/go-common/serverutil/http.go
+
11
−
3
View file @
cc414896
...
...
@@ -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."
,
},
)
...
...
This diff is collapsed.
Click to expand it.
vendor/vendor.json
+
3
−
3
View file @
cc414896
...
...
@@ -21,10 +21,10 @@
"revisionTime"
:
"2017-12-14T08:46:15Z"
},
{
"checksumSHA1"
:
"
wY0SM35qAhX3P2IZzDnYa068cP
w="
,
"checksumSHA1"
:
"
nlGRxexjZUxnHc/z/+ZqV/Xq51
w="
,
"path"
:
"git.autistici.org/ai3/go-common/serverutil"
,
"revision"
:
"
0cc062297e2c27f9a1abcb1a00172d1e0281f8cb
"
,
"revisionTime"
:
"2017-12-1
4T08:46:15
Z"
"revision"
:
"
aa88011352b67032c19b0c14eaa06b3417176753
"
,
"revisionTime"
:
"2017-12-1
9T17:20:40
Z"
},
{
"checksumSHA1"
:
"DFjm2ZJpUwioPApa3htGXLEFWl8="
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment