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:
authorVladimir Shushlin <vshushlin@gitlab.com>2020-12-22 14:36:26 +0300
committerAlessio Caiazza <376774-nolith@users.noreply.gitlab.com>2020-12-22 14:36:26 +0300
commit326321023f02bff3c67de7a9b2f86227c25b7563 (patch)
tree8a70dc0ead8efb8be819f6d7a97cb2a493bc1961 /metrics
parent2485b734062effed52c4b6e84d379d693dcd38ea (diff)
Reject all unknown http methods
Diffstat (limited to 'metrics')
-rw-r--r--metrics/metrics.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/metrics/metrics.go b/metrics/metrics.go
index db7cae9a..045ff26e 100644
--- a/metrics/metrics.go
+++ b/metrics/metrics.go
@@ -199,6 +199,13 @@ var (
Help: "The number of files per zip archive total count over time",
},
)
+
+ RejectedRequestsCount = prometheus.NewCounter(
+ prometheus.CounterOpts{
+ Name: "gitlab_pages_unknown_method_rejected_requests",
+ Help: "The number of requests with unknown HTTP method which were rejected",
+ },
+ )
)
// MustRegister collectors with the Prometheus client