diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2022-08-04 13:44:54 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-04 01:44:54 -0700 |
| commit | 22181dd01895d5c993979678ae13c601548c20f8 (patch) | |
| tree | b3477a5e8a9edb050d0f24dcd9cb3b195385798e /weed/wdclient/masterclient.go | |
| parent | bd13a7968f9cc7620f19511e896c6e0099ff7f86 (diff) | |
| download | seaweedfs-22181dd01895d5c993979678ae13c601548c20f8.tar.xz seaweedfs-22181dd01895d5c993979678ae13c601548c20f8.zip | |
refactor FilerRequest metrics (#3402)
* refactor FilerRequest metrics
* avoid double count proxy
* defer to
Diffstat (limited to 'weed/wdclient/masterclient.go')
| -rw-r--r-- | weed/wdclient/masterclient.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/wdclient/masterclient.go b/weed/wdclient/masterclient.go index ae404f6d3..3612d978c 100644 --- a/weed/wdclient/masterclient.go +++ b/weed/wdclient/masterclient.go @@ -178,7 +178,7 @@ func (mc *MasterClient) tryConnectToMaster(master pb.ServerAddress) (nextHintedL if resp.VolumeLocation.Leader != "" && string(master) != resp.VolumeLocation.Leader { glog.V(0).Infof("master %v redirected to leader %v", master, resp.VolumeLocation.Leader) nextHintedLeader = pb.ServerAddress(resp.VolumeLocation.Leader) - stats.MasterClientConnectCounter.WithLabelValues(stats.RedirectedToleader).Inc() + stats.MasterClientConnectCounter.WithLabelValues(stats.RedirectedToLeader).Inc() return nil } //mc.vidMap = newVidMap("") @@ -203,7 +203,7 @@ func (mc *MasterClient) tryConnectToMaster(master pb.ServerAddress) (nextHintedL if resp.VolumeLocation.Leader != "" && string(mc.currentMaster) != resp.VolumeLocation.Leader { glog.V(0).Infof("currentMaster %v redirected to leader %v", mc.currentMaster, resp.VolumeLocation.Leader) nextHintedLeader = pb.ServerAddress(resp.VolumeLocation.Leader) - stats.MasterClientConnectCounter.WithLabelValues(stats.RedirectedToleader).Inc() + stats.MasterClientConnectCounter.WithLabelValues(stats.RedirectedToLeader).Inc() return nil } |
