Skip to content

Commit

Permalink
amtool template render improve default data
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Stehle <anderschwiedu@gmail.com>
  • Loading branch information
phil9909 committed Feb 16, 2024
1 parent 80b3cb0 commit 729c072
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/template_render.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"time"

"github.com/alecthomas/kingpin/v2"
"github.com/prometheus/common/model"

"github.com/prometheus/alertmanager/template"
)
Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 729c072

Please sign in to comment.