mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-24 08:53:48 +01:00
refactor(metrics): Rename metric to metrics
This commit is contained in:
parent
e620fd1214
commit
6d3c3d0892
@ -1,4 +1,4 @@
|
||||
package metric
|
||||
package metrics
|
||||
|
||||
import (
|
||||
"strconv"
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user