stats elapsed time in seconds
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adam Štrauch 2022-05-06 19:05:04 +02:00
parent 02ebfb8eea
commit 52d8f7b250
Signed by: cx
GPG Key ID: 018304FFA8988F8D

View File

@ -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)