Open Whyeasy opened 1 year ago
This issue has not had any activity in the past 30 days, so the needs-attention
label has been added to it.
If the opened issue is a bug, check to see if a newer release fixed your issue. If it is no longer relevant, please feel free to close this issue.
The needs-attention
label signals to maintainers that something has fallen through the cracks. No action is needed by you; your issue will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity.
Thank you for your contributions!
Hello. I have a same problem here. Is there updates on this?
Request
Within the agent in static mode (or Prometheus) it is possible to access provided
params
inside of the relabel config like this:With Flow and the components that come with it, it is currently not possible to access these
__param_
values. They are added within aprometheus.scrape
component. Which discards any__
labels when it forwards to a remote write endpoint.This is the current configuration used to work around this issue:
Use case
The workaround is to create a separate
discovery.relabel
component for each different module/target. Would be great to have a way to have access to the__param_module
label inside or after theprometheus.scrape
component. This will simplify the config.