-
Notifications
You must be signed in to change notification settings - Fork 137
/
Copy pathjiralert.yml
53 lines (49 loc) · 1.91 KB
/
jiralert.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
# Global defaults, applied to all receivers where not explicitly overridden. Optional.
defaults:
# API access fields.
api_url: https://jiralert.atlassian.net
user: jiralert
password: 'JIRAlert'
session_cookie: false
# The type of JIRA issue to create. Required.
issue_type: Bug
# Issue priority. Optional.
priority: Critical
# Go template invocation for generating the summary. Required.
summary: '{{ template "jira.summary" . }}'
# Go template invocation for generating the description. Optional.
description: '{{ template "jira.description" . }}'
# State to transition into when reopening a closed issue. Required.
reopen_state: "To Do"
# Do not reopen issues with this resolution. Optional.
wont_fix_resolution: "Won't Fix"
# Amount of time after being closed that an issue should be reopened, after which, a new issue is created.
# Optional (default: always reopen)
reopen_duration: 0h
# Receiver definitions. At least one must be defined.
receivers:
# Must match the Alertmanager receiver name. Required.
- name: 'jira-ab'
# JIRA project to create the issue in. Required.
project: AB
# Copy all Prometheus labels into separate JIRA labels. Optional (default: false).
add_group_labels: false
- name: 'jira-xy'
project: XY
# Overrides default.
issue_type: Task
# JIRA components. Optional.
components: ['Operations']
# Standard or custom field values to set on created issue. Optional.
#
# See https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#setting-custom-field-data-for-other-field-types for further examples.
fields:
# TextField
customfield_10001: "Random text"
# SelectList
customfield_10002: {"value": "red"}
# MultiSelect
customfield_10003: [{"value": "red"}, {"value": "blue"}, {"value": "green"}]
# File containing template definitions. Required.
template: jiralert.tmpl