Skip to content

Commit ffc6499

Browse files
authored
Wrap in group (#1201)
1 parent f6501cb commit ffc6499

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

grafana-cloud-integration-utils/util.libsonnet

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,19 @@ local integration_version_panel(version, statusPanelDataSource, height, width, x
193193
+ patch
194194
);
195195

196-
[
197-
if group.name == group_name then
198-
{
199-
name: group_name,
200-
rules: patch_rules(group.rules, alert_rules_patch),
201-
}
202-
else group
203-
for group in prometheusAlerts.groups
204-
],
196+
{
197+
groups+:
198+
[
199+
if group.name == group_name then
200+
{
201+
name: group_name,
202+
rules: patch_rules(group.rules, alert_rules_patch),
203+
}
204+
else group
205+
for group in prometheusAlerts.groups
206+
207+
],
208+
},
205209

206210
prepare_dashboards(dashboards, tags, folderName, ignoreDashboards=[], refresh='30s', timeFrom='now-30m'):: {
207211
[k]: {

0 commit comments

Comments
 (0)