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
AgeCommit message (Collapse)Author
2022-01-11feat: add domain rate-limiterVladimir Shushlin
Changelog: added
2021-10-14feat: add panic handler middlewareJaime Martinez
Changelog: added
2021-10-14feat: add source IP ratelimiter middlewareJaime Martinez
It gets the source IP from `r.RemoteAddr` or from the `X-Forwarded-For` header for proxied requests (when `--listen-proxy` is enabled). The first iteration will only report logs and metrics when an IP is being rate limited. The rate limiter uses a Token Bucket approach using golang.org/x/time/rate, which can be configured with the newly added flags `rate-limit-source-ip` and `rate-limit-source-ip-burst`. To enable the rate limiter, set `rate-limit-source-ip` to value > 1, which is the number of requests per second to allow. It is enabled by default in "dry-run" mode so requests won't be dropped until the environment variable `FF_ENABLE_RATE_LIMITER` is set to `"true"`. See metrics.go for the newly added metrics. Changelog: added
2021-08-26docs: fix method doc to pass code qualityfeistel
2021-08-26refactor: remove metrics for disk sourcefeistel
2021-05-20Remove serverless code from Pagesfeistel
2021-03-16Pass metrics into limiter to better decouple the instrumentationIgor Wiedler
2021-03-16Instrument limit listener for saturation monitoringIgor Wiedler
Changelog: added
2020-12-22Reject all unknown http methodsVladimir Shushlin
2020-10-13Update metricsKamil Trzciński
2020-10-13Split cache set/get and add metricsJaime Martinez
2020-10-01Move tracer to httptransportJaime Martinez
2020-10-01Rerun goimportsJaime Martinez
2020-10-01Rename all zip and httprange metricsJaime Martinez
Renames all metrics to make them easier to understand. Adds a missing metric for number of open requests made by httprange.
2020-09-30Add extra metric for currently cached files per archiveJaime Martinez
2020-09-30Use histograms instead of gauges for transport durationsJaime Martinez
2020-09-30Rename metrics and update typesJaime Martinez
2020-09-30Add tests for new metricsJaime Martinez
DRY transport. Add buckets to responsiveness metric.
2020-09-30Add more metrics for zip servingJaime Martinez
Adds a bunch of new metrics related to https://gitlab.com/gitlab-org/gitlab-pages/-/issues/423. It uses [httptrace.ClienTrace](https://golang.org/src/net/http/httptrace/trace.go) to add a bunch of very granular metrics that happen when an http connection is established.
2020-09-25Simplify after code reviewKamil Trzciński
2020-09-24Add Name to the VFS interface to use with metricsJaime Martinez
2020-09-24Rebase from base branchJaime Martinez
Add vfs.VFS implementation for zip Fix build errors Clean zip vfs Add tests for Root Add zip serving metric Return a zip.Instance() when source == zip Add simple acceptance test for zip serving Use correct contents No need to start testServer in go routine
2020-09-15Apply suggestions from feedbackJaime Martinez
Update metric name
2020-09-15Move setup to helper functionJaime Martinez
2020-09-15Update metrics acceptance testsJaime Martinez
Remove metrics_test.go and leave responsibility of testing to acceptance_test.go with `TestPrometheusMetricsCanBeScraped`. Update TODOs with issue links.
2020-09-15Add metrics tests for vectorsJaime Martinez
2020-09-15Add metrics for httprange and trace logsJaime Martinez
Add metrics and trace logs Enables meteredRoundTripper to log response data in a Traceln() call. It adds a name to the round tripper for easy logging. Adds two new metrics to be used by the `httprange` package to track number of requests made to object storage. Apply 1 suggestion(s) to 1 file(s) (cherry picked from commit 57a98108c728ba6e6575a95899455d5fac536ae1)
2020-08-13Add VFS for local diskJacob Vosmaer
2020-06-11Add units to metric namesJaime Martinez
2020-06-10Add buckets for histogramsJaime Martinez
2020-06-09Use histogram without labelsJaime Martinez
Register ServingTime. Rename DiskServingFileSize so that it's a histogram without needing labels
2020-06-05Use histograms instead of gaguesJaime Martinez
Removed test assertion for metric as histograms are not collectors so we can't really test it. Left the test though as it's still valuable.
2020-06-04Add serving time metric for all filesJaime Martinez
2020-06-03Add file size metric for disk servingJaime Martinez
2020-05-04Add a prometheus counter for GitLab API call failuresGrzegorz Bizon
2020-02-11Add prometheus metrics for GitLab API clientJaime Martinez
Refactor metrics initialization removing init function from the metrics package.
2020-02-03Apply suggestion to metrics/metrics.goGrzegorz Bizon
2020-02-03Add serverless serving metricsGrzegorz Bizon
This adds: - serverless invocations counter - serverless request latency histogram
2020-01-27Add domain configuration duration (from disk) to Prometheus metricsKrasimir Angelov
2019-12-17Add GitLab API domains source caching metricsGrzegorz Bizon
2019-08-30Add full HTTP metrics and logging to GitLab pages using LabKitAndrew Newdigate
2019-08-08Update metrics names.Ben Kochie
* Rename "DomainsServed", `_total` is reserved for counters. * Rename "SessionsActive", "active sessions" makes more sense.
2018-08-15Make it clear in commen tthat DomainUpdates pertains to successful updatesStan Hu
2018-08-15Make it explicit that when ReadGroups fails initially, an error is loggedStan Hu
2018-08-14Abort domain scan if a failure is encounteredStan Hu
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
2017-09-22Fix some lint failuresNick Thomas
2017-02-07Improve complexity metricsZ.J. van de Weg
Also fixed the dependencies, moved metrics to its own package and updated the tests