hasMatchingFingerprint checks if the given metric's series fingerprint matches the reference fingerprint.
(metric *dto.Metric, fp model.Fingerprint)
| 458 | |
| 459 | // hasMatchingFingerprint checks if the given metric's series fingerprint matches the reference fingerprint. |
| 460 | func hasMatchingFingerprint(metric *dto.Metric, fp model.Fingerprint) bool { |
| 461 | return fingerprintLabelPairs(metric.Label) == fp |
| 462 | } |
| 463 | |
| 464 | // fingerprintLabelPairs produces a fingerprint unique to the given combination of label pairs. |
| 465 | func fingerprintLabelPairs(lbs []*dto.LabelPair) model.Fingerprint { |
no test coverage detected