diff --git a/cli/template_render.go b/cli/template_render.go index 7d984273..b02df7c0 100644 --- a/cli/template_render.go +++ b/cli/template_render.go @@ -22,6 +22,7 @@ import ( "time" "github.com/alecthomas/kingpin/v2" + "github.com/prometheus/common/model" "github.com/prometheus/alertmanager/template" ) @@ -31,7 +32,7 @@ var defaultData = template.Data{ Status: "alertstatus", Alerts: template.Alerts{ template.Alert{ - Status: "alertstatus", + Status: string(model.AlertFiring), Labels: template.KV{ "label1": "value1", "label2": "value2", @@ -51,7 +52,7 @@ var defaultData = template.Data{ Fingerprint: "fingerprint1", }, template.Alert{ - Status: "alertstatus", + Status: string(model.AlertResolved), Labels: template.KV{ "foo": "bar", "baz": "qux",