[RW2] Fix type and unit labels propagation in Remote Write v2 receiver to prioritize type-and-unit-labels feature#17387
Conversation
|
cc @bwplotka |
bwplotka
left a comment
There was a problem hiding this comment.
Looks good! Just a readability nits, especially on the scope of this change. It's not ONLY fixing agent mode, but for all modes if the metadata is passed via metadata-wal-records feature or any other mechanism WHILE type and unit labels are also preserved.
NOTE: This means also that type-and-unit feature overrides metadata records. This should not matter, because we often take them from the same place on scrape, but due to bugs in scraping etc this could matter, so maybe we could mention this in our feature flags docs?
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
bwplotka
left a comment
There was a problem hiding this comment.
Thanks!
Some suggestion to docs; also please change PR title, and description (e.g. changelog) to mention it's not only agent mode please.
Which issue(s) does the PR fix:
Does this PR introduce a user-facing change?