prometheus / alertmanager

Prometheus Alertmanager
https://prometheus.io
Apache License 2.0
6.57k stars 2.14k forks source link

Send image via Telegram notification #3258

Open moonbaseDelta opened 1 year ago

moonbaseDelta commented 1 year ago

Why not add to telegram-bot ability to send photo along with data message?

According to the used library the client used in Alermanager already have this ability: https://github.com/go-telebot/telebot https://github.com/go-telebot/telebot/blob/v3/sendable.go#L27

In Alertmanager config it may look like Slack's image_url option: https://prometheus.io/docs/alerting/latest/configuration/#slack_config

gotjosh commented 1 year ago

I have some reckons regarding this but I'm curious - what would you like to see an image of?

moonbaseDelta commented 1 year ago

Well, the main target is Grafana renderer images that came from URLs like http://<your-grafana>:3000/render/d-solo/<dashboard_id>/<dashboard_name>?orgId=1&from=<timestamp_from>&to=<timestamp_to>&panelId=<panel_id>&width=<img_w>&height=<img_h>&tz=<timezone>. So, yes, there're bunch of variables around.