filodb / FiloDB

Distributed Prometheus time series database
Apache License 2.0
1.43k stars 225 forks source link

feat(query): arbitrary target-schema columns #1801

Open alextheimer opened 4 months ago

alextheimer commented 4 months ago

Pull Request checklist

Currently, target-schema "filter" labels (i.e. those used to identify whether-or-not a target-schema is configured against a series) can include only shard-key columns. This PR adds support for arbitrary target-schema filter labels.

For example, a dataset with shard-key columns SA and SB can now have a target-schema defined against an arbitrary column C:

{SA=foo, C=bar}      // filter labels
-> [label1, label2]  // sharding labels

See here for an example spec.