mirror of https://github.com/prometheus/prometheus
Merge pull request #1402 from prometheus/fabxc/target-identity
Use fingerprint for target identity comparisonpull/1403/head
commit
b447002309
|
@ -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…
Reference in New Issue