mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-28 08:50:23 +08:00
fix: fix root .gitignore
This commit is contained in:
parent
41387cf653
commit
8c50440839
2
.gitignore
vendored
2
.gitignore
vendored
@ -436,4 +436,4 @@ fabric.properties
|
|||||||
*.jwk
|
*.jwk
|
||||||
|
|
||||||
# Monitoring
|
# Monitoring
|
||||||
*.db
|
.grafana-data
|
||||||
|
|||||||
@ -1,53 +0,0 @@
|
|||||||
|
|
||||||
{{ define "__subject" }}[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ if gt (.Alerts.Resolved | len) 0 }}, RESOLVED:{{ .Alerts.Resolved | len }}{{ end }}{{ end }}] {{ .GroupLabels.SortedPairs.Values | join " " }} {{ if gt (len .CommonLabels) (len .GroupLabels) }}({{ with .CommonLabels.Remove .GroupLabels.Names }}{{ .Values | join " " }}{{ end }}){{ end }}{{ end }}
|
|
||||||
|
|
||||||
{{ define "__text_values_list" }}{{ if len .Values }}{{ $first := true }}{{ range $refID, $value := .Values -}}
|
|
||||||
{{ if $first }}{{ $first = false }}{{ else }}, {{ end }}{{ $refID }}={{ $value }}{{ end -}}
|
|
||||||
{{ else }}[no value]{{ end }}{{ end }}
|
|
||||||
|
|
||||||
{{ define "__text_alert_list" }}{{ range . }}
|
|
||||||
Value: {{ template "__text_values_list" . }}
|
|
||||||
Labels:
|
|
||||||
{{ range .Labels.SortedPairs }} - {{ .Name }} = {{ .Value }}
|
|
||||||
{{ end }}Annotations:
|
|
||||||
{{ range .Annotations.SortedPairs }} - {{ .Name }} = {{ .Value }}
|
|
||||||
{{ end }}{{ if gt (len .GeneratorURL) 0 }}Source: {{ .GeneratorURL }}
|
|
||||||
{{ end }}{{ if gt (len .SilenceURL) 0 }}Silence: {{ .SilenceURL }}
|
|
||||||
{{ end }}{{ if gt (len .DashboardURL) 0 }}Dashboard: {{ .DashboardURL }}
|
|
||||||
{{ end }}{{ if gt (len .PanelURL) 0 }}Panel: {{ .PanelURL }}
|
|
||||||
{{ end }}{{ end }}{{ end }}
|
|
||||||
|
|
||||||
{{ define "default.title" }}{{ template "__subject" . }}{{ end }}
|
|
||||||
|
|
||||||
{{ define "default.message" }}{{ if gt (len .Alerts.Firing) 0 }}**Firing**
|
|
||||||
{{ template "__text_alert_list" .Alerts.Firing }}{{ if gt (len .Alerts.Resolved) 0 }}
|
|
||||||
|
|
||||||
{{ end }}{{ end }}{{ if gt (len .Alerts.Resolved) 0 }}**Resolved**
|
|
||||||
{{ template "__text_alert_list" .Alerts.Resolved }}{{ end }}{{ end }}
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "__teams_text_alert_list" }}{{ range . }}
|
|
||||||
Value: {{ template "__text_values_list" . }}
|
|
||||||
Labels:
|
|
||||||
{{ range .Labels.SortedPairs }} - {{ .Name }} = {{ .Value }}
|
|
||||||
{{ end }}
|
|
||||||
Annotations:
|
|
||||||
{{ range .Annotations.SortedPairs }} - {{ .Name }} = {{ .Value }}
|
|
||||||
{{ end }}
|
|
||||||
{{ if gt (len .GeneratorURL) 0 }}Source: [{{ .GeneratorURL }}]({{ .GeneratorURL }})
|
|
||||||
|
|
||||||
{{ end }}{{ if gt (len .SilenceURL) 0 }}Silence: [{{ .SilenceURL }}]({{ .SilenceURL }})
|
|
||||||
|
|
||||||
{{ end }}{{ if gt (len .DashboardURL) 0 }}Dashboard: [{{ .DashboardURL }}]({{ .DashboardURL }})
|
|
||||||
|
|
||||||
{{ end }}{{ if gt (len .PanelURL) 0 }}Panel: [{{ .PanelURL }}]({{ .PanelURL }})
|
|
||||||
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}{{ end }}
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "teams.default.message" }}{{ if gt (len .Alerts.Firing) 0 }}**Firing**
|
|
||||||
{{ template "__teams_text_alert_list" .Alerts.Firing }}{{ if gt (len .Alerts.Resolved) 0 }}
|
|
||||||
|
|
||||||
{{ end }}{{ end }}{{ if gt (len .Alerts.Resolved) 0 }}**Resolved**
|
|
||||||
{{ template "__teams_text_alert_list" .Alerts.Resolved }}{{ end }}{{ end }}
|
|
||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user