Commit b9169287 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use gitlab_workhorse metric name prefixes

Too many things on prometheus.gitlab.com are already called
'http_requests_total'.
parent a7db87e3
......@@ -6,13 +6,13 @@ import (
var (
RequestsActive = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "http_requests_active",
Help: "Number of HTTP requests currently being handled.",
Name: "gitlab_workhorse_requests_active",
Help: "Number of HTTP requests currently being handled by gitlab-workhorse.",
})
RequestsTotal = prometheus.NewCounterVec(
prometheus.CounterOpts{
Name: "http_requests_total",
Help: "How many HTTP requests processed, partitioned by status code and HTTP method.",
Name: "gitlab_workhorse_requests_total",
Help: "How many HTTP requests have been processed by gitlab-workhorse, partitioned by status code and HTTP method.",
},
[]string{"code", "method"},
)
......
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