Commit 68f14888 by bergquist

feat(alerting): add alert info at log page

parent 7c3dbe2a
...@@ -6,6 +6,55 @@ ...@@ -6,6 +6,55 @@
<h1>Alert history for {{ctrl.alert.title}}</h1> <h1>Alert history for {{ctrl.alert.title}}</h1>
</div> </div>
<div class="gf-form-group section" >
<h5 class="section-heading">Thresholds</h5>
<div class="gf-form">
<span class="gf-form-label width-9">
<i class="icon-gf icon-gf-warn alert-icon-warn"></i>
Warn level
</span>
<div class="gf-form-label max-width-10">
{{ctrl.alert.warnOperator}}
</div>
<div class="gf-form-label max-width-10">
{{ctrl.alert.warnLevel}}
</div>
</div>
<div class="gf-form">
<span class="gf-form-label width-9">
<i class="icon-gf icon-gf-critical alert-icon-critical"></i>
Critical level
</span>
<div class="gf-form-label max-width-10">
{{ctrl.alert.critOperator}}
</div>
<div class="gf-form-label max-width-10">
{{ctrl.alert.critLevel}}
</div>
</div>
</div>
<div class="gf-form-group section" >
<h5 class="section-heading">Aggregators</h5>
<div class="gf-form">
<span class="gf-form-label width-12">
Aggregator
</span>
<div class="gf-form-label max-width-10">
{{ctrl.alert.aggregator}}
</div>
</div>
<div class="gf-form">
<span class="gf-form-label width-12">Query range (seconds)</span>
<span class="gf-form-label width-10">{{ctrl.alert.queryRange}}</span>
</div>
<div class="gf-form">
<span class="gf-form-label width-12">Frequency (seconds)</span>
<span class="gf-form-label width-10">{{ctrl.alert.frequency}}</span>
</div>
</div>
<table class="filter-table"> <table class="filter-table">
<thead> <thead>
<th style="width: 68px">Status</th> <th style="width: 68px">Status</th>
......
...@@ -14,8 +14,8 @@ export class AlertTabCtrl { ...@@ -14,8 +14,8 @@ export class AlertTabCtrl {
defaultValues = { defaultValues = {
aggregator: 'avg', aggregator: 'avg',
interval: '60s', frequency: 10,
queryRange: '10m', queryRange: 3600,
warnOperator: '>', warnOperator: '>',
critOperator: '>', critOperator: '>',
queryRef: '- select query -' queryRef: '- select query -'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment