Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-08-14 17:09:58 +0300
committerStan Hu <stanhu@gmail.com>2018-08-14 17:09:58 +0300
commit24204ec7eed6359aa3aaaca4073cbbe2ced4817c (patch)
treee57ea7b0e0795f8464645882296b3f6f1c7baf11 /metrics
parent7edf64c1951e2184890403ab60c26381dd81e942 (diff)
Abort domain scan if a failure is encountered
This prevents the total domain list to be cleared out completely while the system is running. Closes https://gitlab.com/gitlab-com/infrastructure/issues/4749
Diffstat (limited to 'metrics')
-rw-r--r--metrics/metrics.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/metrics/metrics.go b/metrics/metrics.go
index b15c6711..edc72398 100644
--- a/metrics/metrics.go
+++ b/metrics/metrics.go
@@ -11,6 +11,12 @@ var (
Help: "The total number of sites served by this Pages app",
})
+ // FailedDomainUpdates counts the number of failed site updates
+ FailedDomainUpdates = prometheus.NewCounter(prometheus.CounterOpts{
+ Name: "gitlab_pages_domains_failed_total",
+ Help: "The total number of site updates that have failed since daemon start",
+ })
+
// DomainUpdates counts the number of site updates processed
DomainUpdates = prometheus.NewCounter(prometheus.CounterOpts{
Name: "gitlab_pages_domains_updated_total",