mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-30 07:59:40 -08:00
Merge pull request #1400 from prometheus/beorn7/instrumentation
Fix the instrumentation fixes
This commit is contained in:
commit
c24c5e6fb3
|
@ -54,7 +54,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Evaluation Duration</td>
|
<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>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Notification Latency</td>
|
<td>Notification Latency</td>
|
||||||
|
|
|
@ -152,7 +152,7 @@ func (g *Group) run() {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
g.eval()
|
g.eval()
|
||||||
|
|
||||||
iterationDuration.Observe(float64(time.Since(start)) / float64(time.Millisecond))
|
iterationDuration.Observe(float64(time.Since(start)) / float64(time.Second))
|
||||||
}
|
}
|
||||||
iter()
|
iter()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue