-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
…n relabel config (#32127) **Description:** <Describe what has changed.> Fixing a bug - With the Targetallocator component in prometheus receiver, when prometheus scrape config is updated for metric relabel config with just regex change, the prometheus metrics receiver doesn't update the hash and hence doesn't pick up the metrics relabel config with the new regex. This is because the **regex** struct has unexported fields. This fix similar to the fix made in [opentelemetry-operator](open-telemetry/opentelemetry-operator#2171) fixes this issue by taking into account the unexported fields as well. **Link to tracking Issue:** - #29313 **Testing:** Tested to make sure that just the regex changes in metric relabeling gets picked up with TargetAllocator enabled. Reopening this PR since the old one(#30258) got closed due to inactivity. --------- Co-authored-by: David Ashpole <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
change_type: 'bug_fix' | ||
component: 'prometheusreceiver' | ||
note: Fix hash computation to include non exported fields like regex in scrape configuration for TargetAllocator | ||
issues: [29313] | ||
subtext: | ||
change_logs: [] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.