diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-05-19 12:49:15 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-02 19:45:57 +0200 |
commit | c28546177e2b4d5f7f3cc0e5b3a7b404206565fb (patch) | |
tree | 3f539df45149ac841c4f7823653227a6ca78b186 /lib/api/settings.rb | |
parent | 6b9a091ceeb1c760be14f749956807bc429af46d (diff) | |
download | gitlab-ce-c28546177e2b4d5f7f3cc0e5b3a7b404206565fb.tar.gz |
Prometheus settings
Diffstat (limited to 'lib/api/settings.rb')
-rw-r--r-- | lib/api/settings.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/settings.rb b/lib/api/settings.rb index 82f513c984e..25027c3b114 100644 --- a/lib/api/settings.rb +++ b/lib/api/settings.rb @@ -110,6 +110,7 @@ module API optional :default_artifacts_expire_in, type: String, desc: "Set the default expiration time for each job's artifacts" optional :max_pages_size, type: Integer, desc: 'Maximum size of pages in MB' optional :container_registry_token_expire_delay, type: Integer, desc: 'Authorization token duration (minutes)' + optional :prometheus_metrics_enabled, type: Boolean, desc: 'Enable Prometheus metrics' optional :metrics_enabled, type: Boolean, desc: 'Enable the InfluxDB metrics' given metrics_enabled: ->(val) { val } do requires :metrics_host, type: String, desc: 'The InfluxDB host' |