Closed azizzailani closed 2 years ago
@hryamzik
didn't you try this production_example.tmpl ?
didn't you try this production_example.tmpl ?
already, but no output received by telegram
What's in your rules file?
example my rules
- alert: HostOutOfMemory
expr: node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes * 100 < 10
for: 5m
labels:
severity: critical
annotations:
summary: Host out of memory (instance {{ $labels.instance }})
description: "{{ $labels.instance }} node memory is filling up (< 10% left)"
@hryamzik
Did you take a look at sniffed traffic between alert manager and prometheus bot? Did you try to leave just plain text in summary?
I also have this problem
template.tmpl Type: {{.CommonAnnotations.description}} Summary: {{.CommonAnnotations.summary}} Alertname: {{ .CommonLabels.alertname }} Instance: {{ .CommonLabels.instance }} Serverity: {{ .CommonLabels.serverity}} Status: {{ .Status }}
rule:
TG output
Type: Summary: Alertname: NodeMemoryUsage Instance: Serverity: Status: firing
system centOS7 .9
Please help
@hryamzik
you miss spaces after {{
and before brackets }}
why are the type(summary), Instance and description empty?
config template.tmpl:
output:
This happens because every time series is uniquely identified by its metric name and a set of labels. And every unique combination of key-value label pairs represents a new alert for this time series.