influxdata / influxdata/influx-cli
Influx CLI should output results in CSV and JSON like 1.X
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 75
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
Proposal:
Using the influx command line tool, the output format should be in csv or json as well as the default.
This exists with older version of ./influx and should be in the new version. When using curl, the data comes back as csv, but not from the CLI.
Current behavior:
using this from the command line:
MBP15-KCURTIS:influx kcurtis$ ./influx query 'from(bucket:"scrap")|>range(start:-5s)|>yield()' -o kmc
Result: _result
Table: keys: [_start, _stop, _field, _measurement, tag1]
_start:time _stop:time _field:string _measurement:string tag1:string _time:time _value:float
2019-12-17T22:29:28.169521000Z 2019-12-17T22:29:33.169521000Z f1 kr
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------needs to be in csv
Use case:
Why is this important (helps with prioritizing requests)?
As an Analyst, I need the data to be easily opened in standard analysis tools (excel, google sheets, etc) so that I can work with the data in standard tools
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the influx query command and trace how its current tabular output is produced. Add selectable CSV and JSON output alongside the default format, then verify that query results can be opened by standard analysis tools as requested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100