'Configure Kubernetes Alerts using Grafana

I'm using Grafana for monitoring the Kubernetes clsuter and I need to send alerts to a specific group in Microsoft Teams. I already created a Notification Channel in Grafana and configured Microsoft Teams webhook and it successfully passes error messages to Teams. Whenever I create an alert in Grafana I use this Notification Channel so it notifies if something happens (For example, When PODS reach 75% of CPU it will send the alert to Teams)

But my issue is, the error message which it passes to Teams is not much informative. I have added an example alert which I get. By the way, how can I add more information in the alert?

enter image description here

For example, the alert should be like below.

**Log labels

Azure_Messaging_ServiceBus_7_   

F   

_2022_02_11T12_33_15_286889118Z 

_22m    

_32minfo    

_39m    

_40m    

_49m_   

app teams-app

container   teams-app

filename    /var/log/pods/stg-ns_teams-app-6c89786d76-jgkvk_57ea31f4-ffe1-4e2c-9042-2452f1b65f1f/teams-appapi-app/0.log

job stg-ns/teams-app

namespace   stg-ns

pod teams-app-6c89786d76-jgkvk

pod_template_hash   6c89786d76

stdout  
Detected fields

ts  2022-02-11T12:33:15.448Z

tsNs    1644582795448145779**


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source