Skip to content

Supplying queries on the command line #11

@jessereynolds

Description

@jessereynolds

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 ...'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions