Skip to content

feat: add params dict to custom config options that will be used as __param_ labels#226

Open
koalajoe23 wants to merge 1 commit into
FlxPeters:mainfrom
koalajoe23:config_context_params
Open

feat: add params dict to custom config options that will be used as __param_ labels#226
koalajoe23 wants to merge 1 commit into
FlxPeters:mainfrom
koalajoe23:config_context_params

Conversation

@koalajoe23

Copy link
Copy Markdown
Contributor

Describe your changes

When adding "__param_*" labels to a discovered endpoint, the params will not only be available for relabeling, but also added to the scrape request as GET params. Indirect exporters, e.g. the blackhole exporter, use a "target" param to select the probed host.

Btw: Adding the param to the "__address__" label does not work due to url-encoding.

Issue ticket number and link

N/A

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests.

@koalajoe23 koalajoe23 changed the title feat: add params dict to custom config options that will be used as _param_ labels feat: add params dict to custom config options that will be used as __param_ labels Jul 25, 2025
@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale because it has been inactive for more than 60 days.
Please update this pull request or it will be automatically closed in 7 days.

@github-actions github-actions Bot added the Stale label Sep 24, 2025
@koalajoe23

Copy link
Copy Markdown
Contributor Author

@FlxPeters Please take at look and respond

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant