Merge pull request #1402 from prometheus/fabxc/target-identity

Use fingerprint for target identity comparison
pull/1403/head
Brian Brazil 9 years ago
commit b447002309

@ -265,7 +265,7 @@ func (tm *TargetManager) updateTargetGroup(tgroup *config.TargetGroup, cfg *conf
if told == nil { if told == nil {
continue continue
} }
if tnew.InstanceIdentifier() == told.InstanceIdentifier() { if tnew.fingerprint() == told.fingerprint() {
match = told match = told
oldTargets[j] = nil oldTargets[j] = nil
break break

Loading…
Cancel
Save