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"}
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.
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"