Skip to content

Commit 094cd7f

Browse files
authored
Merge pull request #29 from duongmn89/master
Fix update route health
2 parents fc4fd36 + c54fa85 commit 094cd7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func collectMetrics() {
216216
if routeHealth.IsAlive {
217217
routeHealthGauge.WithLabelValues(route.Name, router.Hostname).Set(float64(1))
218218
} else {
219-
routeHealthGauge.WithLabelValues(route.Name).Set(float64(0))
219+
routeHealthGauge.WithLabelValues(route.Name, router.Hostname).Set(float64(0))
220220
}
221221

222222
routeDestinations, err := mysqlRouterClient.GetRouteDestinations(route.Name)

0 commit comments

Comments
 (0)