Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/alert-rule-template.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ local createAlertRuleGroup(title, folderUid, alertRules, interval=300, teamConfi
'for': if std.objectHas(rule, 'for') && rule.pendingPeriod != null then rule.pendingPeriod else defaultEvalConfig.pendingPeriod,
keepFiringFor: if std.objectHas(rule, 'keepFiringFor') && rule.keepFiringFor != null then rule.keepFiringFor else defaultEvalConfig.keepFiringFor,
annotations: rule.annotations,
labels: if std.objectHas(teamConfig, 'labels') && teamConfig.labels != null then teamConfig.labels else {} + if std.objectHas(rule, 'labels') && rule.labels != null then rule.labels else {},
labels: (if std.objectHas(teamConfig, 'labels') && teamConfig.labels != null then teamConfig.labels else {}) + (if std.objectHas(rule, 'labels') && rule.labels != null then rule.labels else {}),
folderUID: if std.objectHas(rule, 'folderUid') && rule.folderUid != null then rule.folderUid else teamConfig.folderUid,
notification_settings: {
receiver: if std.objectHas(rule, 'contactPoint') && rule.contactPoint != null
Expand Down