Skip to content
Discussion options

You must be logged in to vote

Hey @ScareCrowZV, it's not possible to expand env variables in the query field for the time being. It's only applied to the connection strings (have a look: link).

Currently, queries must be defined because there’s no dynamic preprocessing involved; they’re simply passed through.

What's currently possible and might potentially work for you is the following composition:

  • sql_exporter relies upon sql_exporter.yml and provided collector files (they might be external files too);

  • a user prepares a simple configuration generator in their favourite language that populates a collector file (with queries, etc) fetching data from user-known locations (e.g. vault, s3, local filesystem, etc);

  • up…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ScareCrowZV
Comment options

@burningalchemist
Comment options

Answer selected by ScareCrowZV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants