Skip to content

Commit

Permalink
Fix clustering metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
netixx committed Nov 2, 2023
1 parent 0129eaa commit 407ded7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (a *App) startClusterMetrics() {
if err != nil {
a.Logger.Printf("failed to get leader key: %v", err)
}
if leader[leaderKey] == a.Config.InstanceName {
if leader[leaderKey] == a.Config.Clustering.InstanceName {
clusterIsLeader.Set(1)
} else {
clusterIsLeader.Set(0)
Expand All @@ -84,7 +84,7 @@ func (a *App) startClusterMetrics() {
}
numLockedNodes := 0
for _, v := range lockedNodes {
if v == a.Config.InstanceName {
if v == a.Config.Clustering.InstanceName {
numLockedNodes++
}
}
Expand Down

0 comments on commit 407ded7

Please sign in to comment.