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

Influx CLI - allow bucket creation RP in 'd' units (days) #18639

Closed
abalone23 opened this issue Jun 22, 2020 · 1 comment · Fixed by #18658
Closed

Influx CLI - allow bucket creation RP in 'd' units (days) #18639

abalone23 opened this issue Jun 22, 2020 · 1 comment · Fixed by #18658

Comments

@abalone23
Copy link

Proposal:
Allow for buckets to be created with a retention policy in days "d" units. Note that in 1.x, duration units include days d and weeks w as well:
https://docs.influxdata.com/influxdb/v1.8/query_language/spec/#durations

Current behavior:

./influx bucket create -n testbucket -r 10d
Error: invalid argument "10d" for "-r, --retention" flag: time: unknown unit d in duration 10d

Desired behavior:
I would like for the "d" unit to be recognized when creating a bucket since it's typical to create RP in days, like 7d, 30d etc.

Alternatives considered:
Convert days to hours and use 'h' unit instead.

Use case:
Since most people create RPs in terms of days, this would eliminate having to convert to hours and be less confusing.

@jsteenb2
Copy link
Contributor

I went ahead and added weeks as well to the CLI durations supported. Weeks will land in this PR: #18659

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

Successfully merging a pull request may close this issue.

2 participants