I have configured MS team to Grafana in the contact points to send notifications of tomcat error logs if found. Right now, i’m getting default template like this:
[FIRING:1, RESOLVED:1] DatasourceNoData tomcat line error alert (dc26d9d5-1e15-46d6-b86f-ad2de2b7726b QAIntg-Tomcat)
Firing
Value: [no value] Labels:
- alertname = DatasourceNoData
- datasource_uid = dc26d9d5-1e15-46d6-b86f-ad2de2b7726b
- grafana_folder = tomcat line error alert
- ref_id = A,B,C,E
- rulename = QAIntg-Tomcat
Annotations:
- description = {{label}}
- summary = Error detected in Tomcat logs
Source: http://localhost:3000/alerting/grafana/b8a639ae-7361-4e10-8102-3b2c5fcffa3b/view?orgId=1
Resolved
Value: [no value] Labels:
- alertname = DatasourceNoData
- datasource_uid = dc26d9d5-1e15-46d6-b86f-ad2de2b7726b
- grafana_folder = tomcat line error alert
- ref_id = A,B,E
- rulename = QAIntg-Tomcat
Annotations:
- description = {{label}}
- summary = Error detected in Tomcat logs
Source: local IP url
Silence: **local IP url **
if i create custom template then i will just get “Alert from grafana” and no other data. I want to edit this custom template, here im getting local IP of the grafana which is useless for my case. i need the actual url of the grafana which can be referenced if any error log appears.
Please help me with the troubleshooting. I want to get a custom notification with basic details like, on which server, when & what was the error? etc…