summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2019-07-15 14:57:51 +0000
committerAchilleas Pipinellis <axil@gitlab.com>2019-07-15 14:57:51 +0000
commit7fc35ac124f6437e4d04f17416a4e8af9f7a220b (patch)
tree5c5a34c849b8df93b1dc8a80c659f8f8fa20737d
parent65374a2a65d2c992e166fe16be8a93d6ee70af26 (diff)
parenta08bee04cd42af9ccbef07254df2259de2ce0b01 (diff)
downloadgitlab-ce-7fc35ac124f6437e4d04f17416a4e8af9f7a220b.tar.gz
Merge branch 'pl-incident-issue-alert-payload-docs' into 'master'
Add docs on how alert attributes are used See merge request gitlab-org/gitlab-ce!30736
-rw-r--r--doc/user/project/integrations/prometheus.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/user/project/integrations/prometheus.md b/doc/user/project/integrations/prometheus.md
index 7c2cd93b86d..69fefbf3891 100644
--- a/doc/user/project/integrations/prometheus.md
+++ b/doc/user/project/integrations/prometheus.md
@@ -232,7 +232,17 @@ Alerts can be used to trigger actions, like open an issue automatically (enabled
1. Optionally, select whether to send an email notification to the developers of the project.
1. Click **Save changes**.
-Once enabled, an issue will be opened automatically when an alert is triggered. The author of the issue will be the GitLab Alert Bot. To further customize the issue, you can add labels, mentions, or any other supported [quick action](../quick_actions.md) in the selected issue template.
+Once enabled, an issue will be opened automatically when an alert is triggered which contains values extracted from [alert's payload](https://prometheus.io/docs/alerting/configuration/#webhook_config
+):
+
+- Issue author: `GitLab Alert Bot`
+- Issue title: Extract from `annotations/title`, `annotations/summary` or `labels/alertname`
+- Alert `Summary`: A list of properties
+ - `starts_at`: Alert start time via `startsAt`
+ - `full_query`: Alert query extracted from `generatorURL`
+ - Optional list of attached annotations extracted from `annotations/*`
+
+To further customize the issue, you can add labels, mentions, or any other supported [quick action](../quick_actions.md) in the selected issue template.
If the metric exceeds the threshold of the alert for over 5 minutes, an email will be sent to all [Maintainers and Owners](../../permissions.md#project-members-permissions) of the project.