From 52d8f7b250788be5004403adf5cd1553807a9a2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Fri, 6 May 2022 19:05:04 +0200 Subject: [PATCH] stats elapsed time in seconds --- handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index 51f2855..c8eedb4 100644 --- a/handlers.go +++ b/handlers.go @@ -431,7 +431,7 @@ func metricsHandler(c echo.Context) error { metrics += fmt.Sprintf("rosti_node_sold_memory{hostname=\"%s\"} %d\n", hostname, node.SoldMemory) if elapsedMetric != -1 { - metrics += fmt.Sprintf("rosti_node_stats_time_elapsed{hostname=\"%s\"} %d\n", hostname, elapsedMetric) + metrics += fmt.Sprintf("rosti_node_stats_time_elapsed{hostname=\"%s\"} %d\n", hostname, elapsedMetric/1000000000) } apps, err := processor.List(true)