mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Merge pull request #1402 from prometheus/fabxc/target-identity
Use fingerprint for target identity comparison
This commit is contained in:
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…
Reference in a new issue