Tutorial by Examples

Using .Graph will filter the results to only include those that match the tagset for the alert. For instance an alert for os.low.memory{host=ny-web01} would only include series with the host=ny-web01 tags. If multiple series match then only the first matching result will be used. template graph.tem...
Using .GraphAll will include all the results in the graph. template graph.template { subject = ... body = `{{template "header" .}} <strong>GraphAll</strong> <div>{{.GraphAll .Alert.Vars.graph}}</div> <strong>GraphAll With Y Axis...
Graph queries can be defined inline if you don't want to use an Alert variable. template graph.template { subject = ... body = `{{template "header" .}} <strong>Graph With Inline Query</strong> <div>{{.Graph "q(\"avg:300s-avg:os.mem.perce...
When using GraphAll you may still want to filter the results, in which case you can use an Alert variable with the Filter, Sort, and Limit functions. template graph.template { subject = ... body = `{{template "header" .}} <strong>Graph Filtered Variable</strong...
If you want to graph two series on one graph, you can use the Merge function. This can also be combined with the Series function to manipulate the Y axis (like forcing it to start at zero). template graph.template { subject = ... body = `{{template "header" .}} <stro...

Page 1 of 1