Fix the instrumentation fixes

This commit is contained in:
beorn7 2016-02-17 15:50:55 +01:00
parent 73e38c534a
commit 663a1550d0
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@
</tr>
<tr>
<td>Evaluation Duration</td>
<td>{{ template "prom_query_drilldown" (args (printf "irate(prometheus_evaluator_duration_milliseconds_sum{job='prometheus',instance='%s'}[5m]) / rate(prometheus_evaluator_duration_milliseconds_count{job='prometheus',instance='%s'}[5m]) / 1000" .Params.instance .Params.instance) "" "humanizeDuration") }}</td>
<td>{{ template "prom_query_drilldown" (args (printf "irate(prometheus_evaluator_duration_seconds_sum{job='prometheus',instance='%s'}[5m]) / rate(prometheus_evaluator_duration_seconds_count{job='prometheus',instance='%s'}[5m]) / 1000" .Params.instance .Params.instance) "" "humanizeDuration") }}</td>
</tr>
<tr>
<td>Notification Latency</td>

View File

@ -152,7 +152,7 @@ func (g *Group) run() {
start := time.Now()
g.eval()
iterationDuration.Observe(float64(time.Since(start)) / float64(time.Millisecond))
iterationDuration.Observe(float64(time.Since(start)) / float64(time.Second))
}
iter()