diff options
author | Igor Wiedler <iwiedler@gitlab.com> | 2021-03-16 13:02:50 +0300 |
---|---|---|
committer | Igor Wiedler <iwiedler@gitlab.com> | 2021-03-16 13:05:19 +0300 |
commit | 187ec7f5e652b771ee260875c87418aaf8bee94f (patch) | |
tree | e06e868e3e4b0306813ecf508eda515b6c0ee0ed /test | |
parent | 51b1418d7902dc37a12ae8360400bf166f20ed77 (diff) |
Add limit_listener metrics to acceptance tests
Diffstat (limited to 'test')
-rw-r--r-- | test/acceptance/metrics_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/acceptance/metrics_test.go b/test/acceptance/metrics_test.go index 64cfb60a..634610a4 100644 --- a/test/acceptance/metrics_test.go +++ b/test/acceptance/metrics_test.go @@ -14,7 +14,7 @@ func TestPrometheusMetricsCanBeScraped(t *testing.T) { _, cleanup := newZipFileServerURL(t, "../../shared/pages/group/zip.gitlab.io/public.zip") defer cleanup() - teardown := RunPagesProcessWithStubGitLabServer(t, true, *pagesBinary, listeners, ":42345", []string{}) + teardown := RunPagesProcessWithStubGitLabServer(t, true, *pagesBinary, listeners, ":42345", []string{}, "-max-conns=10") defer teardown() // need to call an actual resource to populate certain metrics e.g. gitlab_pages_domains_source_api_requests_total @@ -59,4 +59,8 @@ func TestPrometheusMetricsCanBeScraped(t *testing.T) { require.Contains(t, string(body), "gitlab_pages_zip_cached_entries") require.Contains(t, string(body), "gitlab_pages_zip_archive_entries_cached") require.Contains(t, string(body), "gitlab_pages_zip_opened_entries_count") + // limit_listener + require.Contains(t, string(body), "gitlab_pages_limit_listener_max_conns") + require.Contains(t, string(body), "gitlab_pages_limit_listener_concurrent_conns") + require.Contains(t, string(body), "gitlab_pages_limit_listener_waiting_conns") } |