Skip to content

Add url extra parameters flag for looking up extra query parameters passed in scrape url #122

Description

@ibrahimkk-moideen

Is your feature request related to a problem? Please describe.
Not related to a problem. New Feature request.

Parse additional query parameters passed in scrape url, map it to command line flag to identify where it needs to be used.

Describe the solution you'd like
There is a need to lookup Vault secret using short_hostname when passed instead of the actual target name.

/scrape?target=<fqdn or ip>&short_hostname=<hostname>

When this parameter is passed in scrape url, use a command line flag to define where it needs to be used. In this case it has to be used to lookup vault secret so we map it to key say for example "credential"

--<new-cli-flag>={"credential": "short_hostname"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions