mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-07 08:34:15 +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 (
|
import (
|
||||||
"strconv"
|
"strconv"
|
@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/TwiN/gatus/v3/config"
|
"github.com/TwiN/gatus/v3/config"
|
||||||
"github.com/TwiN/gatus/v3/config/maintenance"
|
"github.com/TwiN/gatus/v3/config/maintenance"
|
||||||
"github.com/TwiN/gatus/v3/core"
|
"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"
|
"github.com/TwiN/gatus/v3/storage/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ func execute(endpoint *core.Endpoint, alertingConfig *alerting.Config, maintenan
|
|||||||
}
|
}
|
||||||
result := endpoint.EvaluateHealth()
|
result := endpoint.EvaluateHealth()
|
||||||
if enabledMetrics {
|
if enabledMetrics {
|
||||||
metric.PublishMetricsForEndpoint(endpoint, result)
|
metrics.PublishMetricsForEndpoint(endpoint, result)
|
||||||
}
|
}
|
||||||
UpdateEndpointStatuses(endpoint, result)
|
UpdateEndpointStatuses(endpoint, result)
|
||||||
log.Printf(
|
log.Printf(
|
||||||
|
Loading…
Reference in New Issue
Block a user