diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2020-05-04 15:26:16 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2020-05-04 15:26:16 +0300 |
commit | 03461ddde0118130a8943e4d1efbde66434e1d35 (patch) | |
tree | ff61466153e4e052d813d8281b0789035d1d8f8b /metrics/metrics.go | |
parent | dd46b590ff7bbd6a628acbd7191f5e31847a4c52 (diff) |
Add a prometheus counter for GitLab API call failures
Diffstat (limited to 'metrics/metrics.go')
-rw-r--r-- | metrics/metrics.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/metrics/metrics.go b/metrics/metrics.go index 7ae50c81..bb14de04 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -47,6 +47,12 @@ var ( Help: "The number of GitLab domains API cache misses", }) + // DomainsSourceFailures is the number of GitLab API calls that failed + DomainsSourceFailures = prometheus.NewCounter(prometheus.CounterOpts{ + Name: "gitlab_pages_domains_source_failures_total", + Help: "The number of GitLab API calls that failed", + }) + // ServerlessRequests measures the amount of serverless invocations ServerlessRequests = prometheus.NewCounter(prometheus.CounterOpts{ Name: "gitlab_pages_serverless_requests", @@ -84,6 +90,7 @@ func MustRegister() { DomainsSourceCacheMiss, DomainsSourceAPIReqTotal, DomainsSourceAPICallDuration, + DomainsSourceFailures, ServerlessRequests, ServerlessLatency, ) |