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

Use fingerprint for target identity comparison
pull/1403/head
Brian Brazil 2016-02-17 15:37:10 +00:00
commit b447002309
1 changed files with 1 additions and 1 deletions

View File

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