summaryrefslogtreecommitdiff
path: root/doc/api/services.md
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2017-12-20 17:35:58 +0000
committerMark Fletcher <mark@gitlab.com>2017-12-22 12:18:05 +0000
commit00ae3ef6ae8b4813a4ff3a300aaab8528cfa1bc9 (patch)
treedf6333c55b7bdef7fa4318888dd81c1267575550 /doc/api/services.md
parentb1941789f5c9ce0d03d69564aba19f382d43d92f (diff)
downloadgitlab-ce-00ae3ef6ae8b4813a4ff3a300aaab8528cfa1bc9.tar.gz
Add Prometheus Service API docs
Diffstat (limited to 'doc/api/services.md')
-rw-r--r--doc/api/services.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/api/services.md b/doc/api/services.md
index 378fd223ad2..8e79cd529fb 100644
--- a/doc/api/services.md
+++ b/doc/api/services.md
@@ -790,6 +790,40 @@ Get PivotalTracker service settings for a project.
GET /projects/:id/services/pivotaltracker
```
+## Prometheus
+
+Prometheus is a powerful time-series monitoring service.
+
+### Create/Edit Prometheus service
+
+Set Prometheus service for a project.
+
+```
+PUT /projects/:id/services/prometheus
+```
+
+Parameters:
+
+| Parameter | Type | Required | Description |
+| --------- | ---- | -------- | ----------- |
+| `api_url` | string | true | Prometheus API Base URL, like http://prometheus.example.com/ |
+
+### Delete Prometheus service
+
+Delete Prometheus service for a project.
+
+```
+DELETE /projects/:id/services/prometheus
+```
+
+### Get Prometheus service settings
+
+Get Prometheus service settings for a project.
+
+```
+GET /projects/:id/services/prometheus
+```
+
## Pushover
Pushover makes it easy to get real-time notifications on your Android device, iPhone, iPad, and Desktop.