diff options
author | Vladimir Shushlin <vshushlin@gitlab.com> | 2020-12-22 14:36:26 +0300 |
---|---|---|
committer | Alessio Caiazza <376774-nolith@users.noreply.gitlab.com> | 2020-12-22 14:36:26 +0300 |
commit | 326321023f02bff3c67de7a9b2f86227c25b7563 (patch) | |
tree | 8a70dc0ead8efb8be819f6d7a97cb2a493bc1961 /metrics | |
parent | 2485b734062effed52c4b6e84d379d693dcd38ea (diff) |
Reject all unknown http methods
Diffstat (limited to 'metrics')
-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 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 |