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

Ability to show shards from influx CLI for 2.x #22911

Open
lesam opened this issue Nov 22, 2021 · 0 comments
Open

Ability to show shards from influx CLI for 2.x #22911

lesam opened this issue Nov 22, 2021 · 0 comments
Labels
area/2.x OSS 2.0 related issues and PRs

Comments

@lesam
Copy link
Contributor

lesam commented Nov 22, 2021

Proposal:

There should be a way to see the shards from a bucket in OSS - possibly a new CLI subcommand

Current behavior:

Internally we maintain a list of shards but there is no way to view it

Desired behavior:

  1. Add an optional list of shards to the buckets rest endpoint, it should not be present for cloud but for OSS it can give the list of shards for the bucket.
  • see 1.x 'SHOW SHARDS' output - should have at least shard id, start time, end time, and expiry for each shard.
  1. Display this information in the CLI (possibly with influx shards list -o myorg --bucket mybucket)

Alternatives considered:

  • Add to metrics - metrics aren't very reliable, it feels like this should be in the API

Use case:

  • Without visibility into existing shards it can be hard to debug retention policy enforcement.
@lesam lesam added the area/2.x OSS 2.0 related issues and PRs label Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/2.x OSS 2.0 related issues and PRs
Projects
None yet
Development

No branches or pull requests

1 participant