diff options
author | Nick Thomas <nick@gitlab.com> | 2017-09-22 16:01:04 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-09-22 18:14:59 +0300 |
commit | d5360efc31b0c6b02ed17f77087226bba3916e36 (patch) | |
tree | a8687a1e00eca785a65feb09e16b34162ca66db3 /metrics/metrics.go | |
parent | 4ee1f7022ce38ebeef6a1e8830b7b3a34c027ca9 (diff) |
Fix some lint failures
Diffstat (limited to 'metrics/metrics.go')
-rw-r--r-- | metrics/metrics.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/metrics/metrics.go b/metrics/metrics.go index 00e39460..b15c6711 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -5,21 +5,25 @@ import ( ) var ( + // DomainsServed counts the total number of sites served DomainsServed = prometheus.NewGauge(prometheus.GaugeOpts{ Name: "gitlab_pages_domains_served_total", Help: "The total number of sites served by this Pages app", }) + // DomainUpdates counts the number of site updates processed DomainUpdates = prometheus.NewCounter(prometheus.CounterOpts{ Name: "gitlab_pages_domains_updated_total", Help: "The total number of site updates processed since daemon start", }) + // DomainLastUpdateTime is the UNIX timestamp of the last update DomainLastUpdateTime = prometheus.NewGauge(prometheus.GaugeOpts{ 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", @@ -27,6 +31,7 @@ var ( []string{"code", "method"}, ) + // SessionsActive is the number of HTTP requests currently being processed SessionsActive = prometheus.NewGauge(prometheus.GaugeOpts{ Name: "gitlab_pages_http_sessions_active", Help: "The number of HTTP requests currently being processed", |