Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2019-07-24 10:50:11 +0300
committerAndrew Newdigate <andrew@gitlab.com>2019-08-30 18:20:42 +0300
commit4e80090046d58d8ddd80a38939262a957d6dea1f (patch)
treeaca3cf4db1f57e86946673dc7d0e2b96359a683d /metrics
parent95eb6930f030af0f5f1cecb734dc283d1735e0c6 (diff)
Add full HTTP metrics and logging to GitLab pages using LabKit
Diffstat (limited to 'metrics')
-rw-r--r--metrics/metrics.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/metrics/metrics.go b/metrics/metrics.go
index 3bf4d7a8..18fd3fdd 100644
--- a/metrics/metrics.go
+++ b/metrics/metrics.go
@@ -28,26 +28,10 @@ var (
Name: "gitlab_pages_last_domain_update_seconds",
Help: "UNIX timestamp of the last update",
})
-
- // ProcessedRequests is the number of HTTP requests served
- ProcessedRequests = prometheus.NewCounterVec(prometheus.CounterOpts{
- Name: "gitlab_pages_http_requests_total",
- Help: "Total number of HTTP requests done serving",
- },
- []string{"code", "method"},
- )
-
- // SessionsActive is the number of HTTP requests currently being processed
- SessionsActive = prometheus.NewGauge(prometheus.GaugeOpts{
- Name: "gitlab_pages_http_active_sessions",
- Help: "The number of HTTP requests currently being processed",
- })
)
func init() {
prometheus.MustRegister(DomainsServed)
prometheus.MustRegister(DomainUpdates)
prometheus.MustRegister(DomainLastUpdateTime)
- prometheus.MustRegister(ProcessedRequests)
- prometheus.MustRegister(SessionsActive)
}