Skip to content

Commit

Permalink
fix wrong negative duration time
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Jan 28, 2021
1 parent 1af73fd commit de45642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion probe_loganalytics_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func probeLogAnalyticsQueryHandler(w http.ResponseWriter, r *http.Request) {
"subscriptionID": "",
"handler": ProbeLoganalyticsScrapeUrl,
"filter": query,
}).Observe(time.Until(startTime).Seconds())
}).Observe(time.Since(startTime).Seconds())

h := promhttp.HandlerFor(registry, promhttp.HandlerOpts{})
h.ServeHTTP(w, r)
Expand Down
2 changes: 1 addition & 1 deletion probe_metrics_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func probeMetricsListHandler(w http.ResponseWriter, r *http.Request) {
"subscriptionID": subscription,
"handler": ProbeMetricsListUrl,
"filter": settings.Filter,
}).Observe(time.Until(startTime).Seconds())
}).Observe(time.Since(startTime).Seconds())

}(subscription)
}
Expand Down

0 comments on commit de45642

Please sign in to comment.