prometheus / alertmanager

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

MS Teams alert card does not show info on mobile interface #3943

Open jpds opened 1 month ago

jpds commented 1 month ago

What did you do?

Configured Alertmanager to send alerts to a chat in Teams with the Workflows webhook. I'm also using the patch at: https://github.com/prometheus/alertmanager/pull/3921

What did you expect to see?

An alert description sent to the monitoring chat, this is fine on desktops, but on mobiles - currently on the alert title is displayed.

What did you see instead? Under which circumstances?

Just the alert title, there's no other alert information included which makes it hard for mobile users to action alerts.

Environment

grobinson-grafana commented 1 month ago

Hello! 👋 Does this happen on official Alertmanager releases, or just custom builds using #3921? If the latter, please close this issue and let's bring the discussion to the PR instead.

jpds commented 1 month ago

It's on both.

grobinson-grafana commented 1 month ago

On the official Alertmanager release, how are you using Power Automate workflows? Are you using one of the workarounds suggested in #3920? Can you also test with Office365 connectors to see if it's still broken?

jpds commented 1 month ago

On the official release - I was using the old webhooks functionality - that is broken in the same way (as with the PR code + Power Automate).

grobinson-grafana commented 1 month ago

But it works on desktop? Could you share a screenshot of the same message on both desktop and mobile?

jpds commented 1 month ago

Of course, here's what it looks like on a desktop with all the extra info in place:

alertmanager-teams-card-desktop

And here it is on the mobile app:

alertmanager-teams-card-mobile

There's also nothing else available on a mobile when it is pressed/held down.

grobinson-grafana commented 1 month ago

I think this is a bug in Microsoft Teams app, not Alertmanager.

fabriciodf commented 1 month ago

Could you please try to change the version of your card? Try version 1.4

jpds commented 1 month ago

@fabriciodf Thanks for the suggestion, I've adjusted the value at:

Will see what the next alert shows in the 📱 app.

jpds commented 1 month ago

Sadly no change. @zhan9san would you happen to have any ideas about this?

zhan9san commented 1 month ago

@jpds

Thank you for reaching out to me.

If I understand correctly, both Alertmanager and Power Automate are responsible for sending the request with the appropriate payload. If the message does not display the information as expected, I don't believe the issue lies with Alertmanager.

khanhnt99 commented 2 weeks ago

Sadly no change. @zhan9san would you happen to have any ideas about this?

Hello. Do you fix this issue?

zhan9san commented 2 weeks ago

@khanhnt99

I am afraid I have answered the question in my previous reply. https://github.com/prometheus/alertmanager/issues/3943#issuecomment-2277586928

Do you still have any concerns?

khanhnt99 commented 2 weeks ago

@fabriciodf Thanks for the suggestion, I've adjusted the value at:

Will see what the next alert shows in the 📱 app.

Do you fix this issue?