Skip to content

Commit

Permalink
Use metric name for title of status boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolas committed Jun 14, 2017
1 parent a390ef7 commit dba55ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ <h1>Hound</h1>
<div>
<div>
{{ range $index, $element := .Alerts }}
<a class="box {{$element.Status}}" href="#alert-{{$element.Hash}}"></a>
<a class="box {{$element.Status}}"
href="#alert-{{$element.Hash}}"
title="{{$element.Name}}"></a>
{{ end }}
<br style="clear: both" />
<div class="clearfix"></div>
</div>
<img width="800" height="150" src="{{.GraphiteBase}}?width=800&height=150&_salt=1399312175.381&target=keepLastValue({{.MetricBase}}errors)&target=keepLastValue({{.MetricBase}}successes)&target=keepLastValue({{.MetricBase}}failures)&from=-24hours&areaMode=stacked&bgcolor=ffffff&fgcolor=333333&colorList=ff6600,44bb44,ff0000"/><br />
<img width="800" height="75" src="{{.GraphiteBase}}?width=800&height=75&hideGrid=true&hideLegend=true&graphOnly=false&hideAxes=false&_salt=1399312175.381&target=keepLastValue({{.MetricBase}}errors)&target=keepLastValue({{.MetricBase}}successes)&target=keepLastValue({{.MetricBase}}failures)&from=-7days&areaMode=stacked&bgcolor=eeeeee&fgcolor=333333&colorList=ff6600,44bb44,ff0000"/>
Expand Down

0 comments on commit dba55ab

Please sign in to comment.