summaryrefslogtreecommitdiff
path: root/lib/api/services.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-03-07 16:57:42 +0000
committerRémy Coutable <remy@rymai.me>2017-03-07 16:57:42 +0000
commit55f2a5debcf10a4d3ca1d0e53fe06f38bc0b77a9 (patch)
tree6ebbdf0f12c5e0d30a3e806284c361b8764d9ccf /lib/api/services.rb
parenta5db7f54252d22e3ecd49786a3fdff7c46658fa3 (diff)
downloadgitlab-ce-55f2a5debcf10a4d3ca1d0e53fe06f38bc0b77a9.tar.gz
Added Prometheus Service and Prometheus graphs
Diffstat (limited to 'lib/api/services.rb')
-rw-r--r--lib/api/services.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/api/services.rb b/lib/api/services.rb
index 1cf29d9a1a3..5aa2f5eba7b 100644
--- a/lib/api/services.rb
+++ b/lib/api/services.rb
@@ -422,6 +422,14 @@ module API
desc: 'Comma-separated list of branches which will be automatically inspected. Leave blank to include all branches.'
}
],
+ 'prometheus' => [
+ {
+ required: true,
+ name: :api_url,
+ type: String,
+ desc: 'Prometheus API Base URL, like http://prometheus.example.com/'
+ }
+ ],
'pushover' => [
{
required: true,
@@ -558,6 +566,7 @@ module API
SlackSlashCommandsService,
PipelinesEmailService,
PivotaltrackerService,
+ PrometheusService,
PushoverService,
RedmineService,
SlackService,