influxdata / influxdata/influxdb
Flux: List series like measurements or cardinality
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Instead of calculate the cardinality it would be helpful to get all series to see if there is any option to optimize cardinality.
__Proposal:__
import "influxdata/influxdb/schema"
schema.series(bucket: "example-bucket")
__Current behavior:__
List all measurements, keys, tags and find all unique combinations (series).
Same as influxdb.cardinality(), but this functions returns only the count and not the name of the series.
__Desired behavior:__
List series
__Alternatives considered:__
write complicated query
__Use case:__
Very helpful to optimize cardinality vs. query performance
Contributor guide
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 by reviewing the Flux schema package and the existing influxdb.cardinality() behavior mentioned in the issue. Determine how a schema.series(bucket: "example-bucket") query should expose all series names rather than only a count; done means users can list series to inspect and optimize cardinality.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100