prometheus/cmd
Bryan Boreham 2b4c652e10
Merge pull request #369 from grafana/shard-func
* tsdb: make sharding function a parameter

Instead of relying on `labels.Hash()`, which may change, have the
caller pass in a shard function if required.

For most purposes `tsdb.Options.ShardFunc` is used, but the compactor
may be created independently so `NewLeveledCompactorWithChunkSize` also
takes a shard function parameter.

Regular Prometheus, which does not use block sharding, will have this
parameter as nil.

Rename WithCache functions as WithOptions

Where they now have 2 or more extra parameters.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-01-26 11:59:03 +00:00
..
compact tsdb: make sharding function a parameter 2023-01-12 11:41:22 +00:00
prometheus Support FloatHistogram in TSDB (#11522) 2022-12-28 14:25:07 +05:30
promtool promtool: add support of selecting timeseries for TSDB dump 2023-01-20 15:46:23 +03:30