Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
3 years ago | |
|---|---|---|
| .. | ||
| README.md | 3 years ago | |
| dingtalk.tpl | 4 years ago | |
| email.tpl | 3 years ago | |
| feishu.tpl | 4 years ago | |
| mailsubject.tpl | 3 years ago | |
| mm.tpl | 3 years ago | |
| telegram.tpl | 3 years ago | |
| wecom.tpl | 3 years ago | |
模版中可以使用的变量参考AlertCurEvent对象
模版语法如何使用可以参考html/template
假设web的地址是http://127.0.0.1:18000/, 实际使用时用web地址替换该地址
在监控模版中添加以下行:
[监控详情](http://127.0.0.1:18000/metric/explorer?promql={{ .PromQl | escape }})
<tr>
<th>监控详情:</th>
<td>
<a href="http://127.0.0.1:18000/metric/explorer?promql={{ .PromQl | escape }}" target="_blank">点击查看</a>
</td>
</tr>
类似 Grafana 可接入多种数据源,Grafana 擅长可视化,夜莺擅长告警管理
Go SQL Text Python PLSQL other