Fixed alert template
This commit is contained in:
@@ -52,8 +52,11 @@ data:
|
|||||||
execErrState: Alerting
|
execErrState: Alerting
|
||||||
for: 5m
|
for: 5m
|
||||||
annotations:
|
annotations:
|
||||||
description: 'Throttling rate: {{ printf "%.2f" $values.A }}'
|
pod: '{{ $labels.pod }}'
|
||||||
summary: 'VPN node throttling CPU on {{ $labels.node }}'
|
node: '{{ $labels.node }}'
|
||||||
|
namespace: '{{ $labels.namespace }}'
|
||||||
|
throttle_rate: '{{ printf "%.2f" $values.A }}'
|
||||||
|
summary: 'VPN node throttling CPU'
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
|
|
||||||
@@ -74,15 +77,15 @@ data:
|
|||||||
|
|
||||||
{{ range .Alerts }}
|
{{ range .Alerts }}
|
||||||
📊 <b>{{ .Labels.alertname }}</b>
|
📊 <b>{{ .Labels.alertname }}</b>
|
||||||
{{ if .Annotations.summary }}{{ .Annotations.summary }}{{ end }}
|
{{ .Annotations.summary }}
|
||||||
|
|
||||||
🎯 <b>Details:</b>
|
🎯 <b>Details:</b>
|
||||||
• Pod: <code>{{ .Labels.pod }}</code>
|
• Pod: <code>{{ .Annotations.pod }}</code>
|
||||||
• Node: <code>{{ .Labels.node }}</code>
|
• Node: <code>{{ .Annotations.node }}</code>
|
||||||
• Namespace: <code>{{ .Labels.namespace }}</code>
|
• Namespace: <code>{{ .Annotations.namespace }}</code>
|
||||||
{{ if .Annotations.description }}• {{ .Annotations.description }}{{ end }}
|
• Throttling rate: {{ .Annotations.throttle_rate }}
|
||||||
|
|
||||||
🔗 <a href="{{ .SilenceURL }}">Silence</a> | <a href="{{ .DashboardURL }}">Dashboard</a>
|
🔗 <a href="{{ .GeneratorURL }}">View in Grafana</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
parse_mode: HTML
|
parse_mode: HTML
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user