Commit graph

16 commits

Author SHA1 Message Date
Kamil Trzciński
fe8b842a75 Use Rails.root for CommonMetricsImporter 2018-09-11 17:40:32 +02:00
Kamil Trzciński
bafe3a6d6a Fix common_metrics.yml 2018-09-06 11:43:12 +02:00
Kamil Trzciński
a3fbaffc0c Test production/development fixtures seed 2018-09-05 17:27:01 +02:00
Kamil Trzciński
ce3d98f749 Fix static analysis 2018-09-04 12:19:23 +02:00
Kamil Trzciński
e6d2465d97 Add # frozen_string_literal: true 2018-09-04 12:19:23 +02:00
Kamil Trzciński
0a9d771bcb Import common metrics into database.
This MR backports PrometheusMetric model to CE
and adds: common, identifier to figure out what kind of metric is used.
2018-09-04 12:19:22 +02:00
Felipe Artur
a9d0deebd2 Enable prometheus metrics by default 2018-05-07 08:46:23 +00:00
Rémy Coutable
4dbc309b9e
Set ENV['IN_MEMORY_APPLICATION_SETTINGS'] to 'true in spec/db/production/settings_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-16 10:48:53 +02:00
Rémy Coutable
ddccd24c13 Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
Pawel Chojnacki
4679107fdc Handle case where GITLAB_PROMETHEUS_METRICS_ENABLED is non boolean value by defaulting to false 2017-06-06 13:16:55 +02:00
Pawel Chojnacki
d26573c6e3 Make PrometheusTextFormat return proper output terminated with '\n'
remove file dangling after rebase
2017-06-02 19:48:39 +02:00
Pawel Chojnacki
6a67148ed3 Make production settings fixture use Gitlab::CurrentSettings.current_application_settings
small code formatting changes
2017-06-02 19:46:29 +02:00
Pawel Chojnacki
e21b1501ff Allow enabling Prometheus metrics via ENV variable when db is seeded 2017-06-02 19:46:29 +02:00
Gabriel Mazetto
442735978c Move rainbow monkey patch to String to spec_helper 2017-05-31 14:33:03 +02:00
Adam Niedzielski
a8177e03e5 Introduce "stub_env" test helper for safely stubbing environment variables 2017-01-09 18:19:48 +01:00
DJ Mountney
fb5f7733f1 Allow users to seed the initial runner registration token using an environment variable
This is useful for when runner is bundled with gitlab, like in a kubernetes stack, and we want the runner to be able to
register with gitlab as soon as they both come up.
2016-12-01 17:21:21 -08:00