We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening a feature request kicks off a discussion.
Add ability to pass in parameter to sql file location
sqlquery="SELECT * FROM pg_stat_database where datname"
sqlquery=/var/tmp/sqlfile.sql
This would help greatly on servers that have multiple long queries instead of putting it into sqlquery which could get really large
The text was updated successfully, but these errors were encountered:
I can take this one, if the feature is approved.
Sorry, something went wrong.
Thanks @Zyqsempai, this would be good to have. I think add a new script option and if both script and sqlquery are set then produce an error:
script
sqlquery
[[inputs.postgresql_extensible.query]] script = "/var/tmp/sqlfile.sql"
Zyqsempai
Successfully merging a pull request may close this issue.
Feature Request
Opening a feature request kicks off a discussion.
Proposal:
Add ability to pass in parameter to sql file location
Current behavior:
sqlquery="SELECT * FROM pg_stat_database where datname"
Desired behavior:
sqlquery=/var/tmp/sqlfile.sql
Use case:
This would help greatly on servers that have multiple long queries instead of putting it into sqlquery which could get really large
The text was updated successfully, but these errors were encountered: