Hi,
I’m trying to set up alerts in Grafana using Telegram notifications. The messages arrive normally, but they always contain various pieces of information that I consider unnecessary. How can I adjust the alert to send only the status (firing and resolved), description, and summary in plain text? Could someone help me with this ?
Here’s my alert configuration:
apiVersion: 1
groups:
- orgId: 1
name: xxxx
folder: xxxxxxx
interval: 5m
rules:
- uid: xxxxxxx
title: Future Server Down
condition: B
data:
- refId: A
relativeTimeRange:
from: 600
to: 0
datasourceUid:xxxx
model:
editorMode: code
expr: up
instant: true
intervalMs: 1000
legendFormat: __auto
maxDataPoints: 43200
range: false
refId: A- refId: B
datasourceUid: expr
model:
conditions:
- evaluator:
params:
- 0
- 0
type: gt
operator:
type: and
query:
params:
reducer:
params:
type: avg
type: query
datasource:
name: Expression
type: expr
uid: expr
expression: $A == 0
intervalMs: 1000
maxDataPoints: 43200
refId: B
type: math
noDataState: NoData
execErrState: Error
for: 5m
annotations:
description: ‘1111 - Server Down: {{ $labels.instance }}.’
summary: ‘2222 - Server Down: {{ $labels.instance }}.’
isPaused: false