Merge pull request #1400 from prometheus/beorn7/instrumentation

Fix the instrumentation fixes
This commit is contained in:
Fabian Reinartz 2016-02-17 15:57:48 +01:00
commit c24c5e6fb3
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()