Issue: Empty replacement in relabeling config is silently dropped
Issue: Empty replacement in relabeling config is silently dropped: a task in LegoFlow-SWE (Harbor dataset). When a user specifies a relabeling rule with action: replace and an explicit replacement: "" (empty string), the generated Prometheus configuration omits the replacement field entirely. This…
The task
When a user specifies a relabeling rule with `action: replace` and an explicit `replacement: ""` (empty string), the generated Prometheus configuration omits the `replacement` field entirely. This is incorrect because Prometheus treats a missing `replacement` and an explicit empty `replacement: ''` differently; an…
Part of Lego-X/LegoFlow-SWE.