mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-14 23:37:56 -08:00
2b4c652e10
* 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> |
||
---|---|---|
.. | ||
compact | ||
prometheus | ||
promtool |