Browse Source

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

Use fingerprint for target identity comparison
pull/1403/head
Brian Brazil 9 years ago
parent
commit
b447002309
  1. 2
      retrieval/targetmanager.go

2
retrieval/targetmanager.go

@ -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

Loading…
Cancel
Save