summaryrefslogtreecommitdiff
path: root/app/controllers/metrics_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42Robert Speicher2021-01-201-0/+10
|
* Fix deprecation: render :text is deprecated because it does not actually ↵Jasper Maes2018-11-291-1/+1
| | | | render a text/plain response
* Enable frozen string in app/controllers/**/*.rbrepo-forks/gitlab-ce-frozen-string-app-controllergfyoung2018-09-181-0/+2
| | | | | | | | | | | | Enables frozen string for the following: * app/controllers/*.rb * app/controllers/admin/**/*.rb * app/controllers/boards/**/*.rb * app/controllers/ci/**/*.rb * app/controllers/concerns/**/*.rb Partially addresses #47424.
* [Rails5] Force the `protect_from_forgery` callback run firstblackst0ne-fix-protect-from-forgery-in-application-controllerblackst0ne2018-06-211-1/+1
| | | | | | | | | | | | Since Rails 5.0 the `protect_from_forgery` callback doesn't run first by default anymore. [1] Instead it gets inserted into callbacks chain where callbacks get called in order. This commit forces the callback to run first. [1]: https://github.com/rails/rails/commit/39794037817703575c35a75f1961b01b83791191
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+1
|
* Make Prometheus metrics endpoint return empty response when metrics are disabledpawel/show_empty_page_when_prometheus_metrics_are_disabled-35639Pawel Chojnacki2017-09-251-7/+9
|
* Remove the need to use health check tokenPawel Chojnacki2017-07-051-2/+2
| | | | | in favor of whitelist that will be used to control the access to monitoring resources
* Move Prometheus presentation logic to PrometheusTextPawel Chojnacki2017-06-021-4/+2
| | | | | | | | + Use NullMetrics to mock metrics when unused + Use method_missing in NullMetrics mocking + Update prometheus gem to version that correctly uses transitive dependencies + Ensure correct folders are used in Multiprocess prometheus client tests. + rename Sessions controller's metric
* Make login_counter instance variable instead of class one.Pawel Chojnacki2017-06-021-1/+3
| | | | | + remove unecessarey require + fix small formatiing issues
* Move most of MetricsController logic to MetricsServicePawel Chojnacki2017-06-021-35/+6
|
* Use interpolation instead of concatenationPawel Chojnacki2017-06-021-4/+4
|
* move check if metrics are enabled to before actionPawel Chojnacki2017-06-021-2/+6
|
* Correctly handle temporary folder for testing multiproces metricsPawel Chojnacki2017-06-021-1/+1
|
* Use only ENV for metrics folder locationPawel Chojnacki2017-06-021-2/+6
|
* Bring back the tokenPawel Chojnacki2017-06-021-0/+1
|
* Split metrics from health controller into metrics controllerPawel Chojnacki2017-06-021-0/+41