Skip to content

Commit

Permalink
update pagerduty template
Browse files Browse the repository at this point in the history
  • Loading branch information
mike2194 committed Apr 18, 2024
1 parent 0aa3c2a commit c483ba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/notifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ var (
Description: `{{ template "pagerduty.default.description" .}}`,
Client: `{{ template "pagerduty.default.client" . }}`,
ClientURL: `{{ template "pagerduty.default.clientURL" . }}`,
Severity: `{{ template "pagerduty.default.severity" . }}`,
}

// DefaultSlackConfig defines default values for Slack configurations.
Expand Down
1 change: 1 addition & 0 deletions template/default.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Source: {{ .GeneratorURL }}
{{ define "pagerduty.default.client" }}{{ template "__alertmanager" . }}{{ end }}
{{ define "pagerduty.default.clientURL" }}{{ template "__alertmanagerURL" . }}{{ end }}
{{ define "pagerduty.default.instances" }}{{ template "__text_alert_list" . }}{{ end }}
{{ define "pagerduty.default.severity" }}{{ if .CommonLabels.severity }}{{ .CommonLabels.severity | toLower }}{{ else }}{{ printf "error" }}{{ end }}{{ end }}


{{ define "opsgenie.default.message" }}{{ template "__subject" . }}{{ end }}
Expand Down

0 comments on commit c483ba9

Please sign in to comment.