diff options
-rw-r--r-- | acceptance_test.go | 4 | ||||
-rw-r--r-- | metrics/metrics.go | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/acceptance_test.go b/acceptance_test.go index 28ebdeb8..8023c4ff 100644 --- a/acceptance_test.go +++ b/acceptance_test.go @@ -393,8 +393,8 @@ func TestPrometheusMetricsCanBeScraped(t *testing.T) { defer resp.Body.Close() body, _ := ioutil.ReadAll(resp.Body) - assert.Contains(t, string(body), "gitlab_pages_http_sessions_active 0") - assert.Contains(t, string(body), "gitlab_pages_domains_served_total 16") + assert.Contains(t, string(body), "gitlab_pages_http_active_sessions 0") + assert.Contains(t, string(body), "gitlab_pages_served_domains 16") } } diff --git a/metrics/metrics.go b/metrics/metrics.go index 44350ae5..3bf4d7a8 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -7,8 +7,8 @@ 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", + Name: "gitlab_pages_served_domains", + Help: "The number of sites served by this Pages app", }) // FailedDomainUpdates counts the number of failed site updates @@ -39,7 +39,7 @@ var ( // SessionsActive is the number of HTTP requests currently being processed SessionsActive = prometheus.NewGauge(prometheus.GaugeOpts{ - Name: "gitlab_pages_http_sessions_active", + Name: "gitlab_pages_http_active_sessions", Help: "The number of HTTP requests currently being processed", }) ) |