influxdata / influxdata/influxdb

Flux: List series like measurements or cardinality

Open
#24,032 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/flux kind/feature-request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.