STML Tags
StackState Self-hosted v5.1.x
Tag: auto-widget
auto-widgetTelemetry
.query("StackState Metrics", "name='system.load.norm' and host='host1'")
.metricField("value")
.start("-2h")
.aggregation("99th percentile", "5m")
.then { host1Load ->
UI.showReport(
"My report",
// STML starts below
"""
|# Host 1 load
|
| The last two hours of load on host1, aggregated per 5 minutes and by 99th percentile looks like:
|
|<auto-widget data={metrics}></auto-widget>
|
| Thank you for watching!
|""".stripMargin(),
// end of STML
[ metrics: host1Load ]
)
}Tag: heatmap
heatmapLast updated