diff options
author | Ben Kochie <superq@gmail.com> | 2018-08-20 12:15:14 +0300 |
---|---|---|
committer | Ben Kochie <bjk@gitlab.com> | 2019-08-08 17:52:16 +0300 |
commit | dee0cd546b1269636acef1af2fd90e0861c01046 (patch) | |
tree | e67e82467ee0a05b828e028f79682fad57d1735a /acceptance_test.go | |
parent | 703e83e0d719b0d12592ce8e9dc61b604fafa82d (diff) |
Update metrics names.
* Rename "DomainsServed", `_total` is reserved for counters.
* Rename "SessionsActive", "active sessions" makes more sense.
Diffstat (limited to 'acceptance_test.go')
-rw-r--r-- | acceptance_test.go | 4 |
1 files changed, 2 insertions, 2 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") } } |