Skip to content
New issue

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

Supplying queries on the command line #11

Open
jessereynolds opened this issue Dec 23, 2014 · 1 comment
Open

Supplying queries on the command line #11

jessereynolds opened this issue Dec 23, 2014 · 1 comment

Comments

@jessereynolds
Copy link
Contributor

It'd be nice to be able to supply queries on the command line, for saved one liners that will execute an influxdb query and then exit. Does this make sense? Eg something like:

influxdb-cli db --host influxdb.example \
  --pretty --database test --time-precision u \
  'select count(path) from /.*collectd.*/ where time > now() - 1h group by time(5m);'

Perhaps it would need a flag eg --query 'select ...'

@jessereynolds
Copy link
Contributor Author

Or feed a set of queries in via stdin eg:

cat influxdb_queries.txt | influxdb-cli ... 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant