Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

The telegram message does not contain all the data. #79

Closed
Foresto-rip opened this issue Sep 24, 2019 · 8 comments
Closed

The telegram message does not contain all the data. #79

Foresto-rip opened this issue Sep 24, 2019 · 8 comments

Comments

@Foresto-rip
Copy link

Hello!
I have a problem. When alert comes, not all information is in the message. (look at the screen)

Screenshot_2019-09-24-21-17-07-342_org telegram messenger

Why it may be?

@metalmatze
Copy link
Owner

It depends on your alerts and whether the key-value-pair in that object is available.
The default template assumes there to be a .Annotations.message.

https://github.com/metalmatze/alertmanager-bot/blob/a2db61819ddc5ab408a130e892f29fd02976a516/default.tmpl

You might need to change either the alerting rule or the template to match.

@Foresto-rip
Copy link
Author

Ok. I changed this value, it works. But duration is left with the value - . May be you know why?
Thank you.

@swift201905
Copy link

好。我更改了此值,它起作用了。但是持续时间留有值-。也许你知道为什么吗?
谢谢。

how to setting value ,can show example,please

@runningman84
Copy link
Contributor

This PR tries to address the missing message
#113

@Georgii-M
Copy link

Hi, problem does not resolve
Tried to place default template. Alertmanager did not start with error "no such function /duration/ and /since/" Tried to remove them. Alertmanager loaded sucessfully, but still blank messages to Telegram. Tried to change
.Annotations.{message|summary|description} to .CommonAnnotations no effect. Alertmanager config:
`webhook_configs:

  • send_resolved: true
    url: 'http://tgbot:8080'`
    Messages are arriving to telegram like this, but Slack is good.
    image

@metalmatze
Copy link
Owner

You need to change the template of the alertmanager-bot not in alertmanager itself :)

@Georgii-M
Copy link

Thank you! Works perfectly! :))))

@esin
Copy link

esin commented Oct 29, 2020

@Georgii-M hey! did you solve problem?

Repository owner locked and limited conversation to collaborators Feb 5, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants