refactor(metrics): Rename metric to metrics

This commit is contained in:
TwiN 2022-06-16 18:55:51 -04:00
parent e620fd1214
commit 6d3c3d0892
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
package metric
package metrics
import (
"strconv"

View File

@ -10,7 +10,7 @@ import (
"github.com/TwiN/gatus/v3/config"
"github.com/TwiN/gatus/v3/config/maintenance"
"github.com/TwiN/gatus/v3/core"
"github.com/TwiN/gatus/v3/metric"
"github.com/TwiN/gatus/v3/metrics"
"github.com/TwiN/gatus/v3/storage/store"
)
@ -62,7 +62,7 @@ func execute(endpoint *core.Endpoint, alertingConfig *alerting.Config, maintenan
}
result := endpoint.EvaluateHealth()
if enabledMetrics {
metric.PublishMetricsForEndpoint(endpoint, result)
metrics.PublishMetricsForEndpoint(endpoint, result)
}
UpdateEndpointStatuses(endpoint, result)
log.Printf(