Skip to content

Commit aec0423

Browse files
committed
feat: automatically configure Argus Event annotations in per-stack Grafana Dashboards
1 parent ef5384b commit aec0423

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

stack/templates/_helpers.tpl

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,38 @@ Create the full dashboard data structure as a Helm dictionary and return it as a
335335
"time" (dict "from" "now-6h" "to" "now")
336336
"timepicker" (dict "time_options" (list) "refresh_intervals" (list))
337337
"templating" (dict "list" (list))
338-
"annotations" (dict "list" (list))
338+
"annotations" (dict "list" (list
339+
(dict
340+
"builtIn" 1
341+
"datasource" (dict
342+
"type" "grafana"
343+
"uid" "-- Grafana --"
344+
)
345+
"enable" true
346+
"hide" true
347+
"iconColor" "rgba(0, 211, 255, 1)"
348+
"name" "Annotations & Alerts"
349+
"type" "dashboard"
350+
)
351+
(dict
352+
"datasource" (dict
353+
"type" "datasource"
354+
"uid" "grafana"
355+
)
356+
"enable" true
357+
"iconColor" "red"
358+
"name" "Argus Events"
359+
"target" (dict
360+
"limit" 100
361+
"matchAny" false
362+
"tags" (list
363+
(printf "app:%s" $global.Values.global.argusMetadata.appName)
364+
(printf "env:%s" $global.Values.global.argusMetadata.envName)
365+
)
366+
"type" "tags"
367+
)
368+
)
369+
))
339370
"refresh" "5s"
340371
"schemaVersion" 17
341372
"version" 0

0 commit comments

Comments
 (0)