Skip to content
代码片段 群组 项目
提交 b9169287 编辑于 作者: 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'.
上级 a7db87e3
No related branches found
No related tags found
无相关合并请求
......@@ -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"},
)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册