Bosun GraphAll使用警报变量
示例
使用.GraphAll会将所有结果包括在图形中。
templategraph.template{
subject = ...
body = `{{template "header" .}}
<strong>GraphAll</strong>
<div>{{.GraphAll .Alert.Vars.graph}}</div>
<strong>GraphAll With Y Axis Label Literal</strong>
<div>{{.GraphAll .Alert.Vars.graph "All Systems Free Memory in GB"}}</div>
<strong>GraphAll With Y Axis Label From Variable</strong>
<div>{{.GraphAll .Alert.Vars.graph .Alert.Vars.graph_unit}}</div>
`
}
alert os.low.memory {
template = graph.template
...
$graph = q("avg:300s-avg:os.mem.percent_free{host=$host}", "1d", "")
$graph_unit = All Systems Percent Free Memory (Including Buffers and Cache)
...
}
热门推荐
10 天气转凉祝福语简短
11 国庆简短幽默祝福语
12 圣诞祝福语简短小学
13 圆圆的祝福语简短
14 生病祝福语简短文案
15 学生开学季祝福语简短
16 开店大吉文案祝福语简短
17 龙年简短祝福语有哪些
18 对儿子祝福语简短精辟