package
1.9.0
Repository: https://github.com/grafana/pyroscope.git
Documentation: pkg.go.dev

# Functions

FormatShardIDLabelValue expects 0-based shardID, but uses 1-based shard in the output string.
ParseShardIDLabelValue returns original (0-based) shard index and shard count parsed from formatted value.
RemoveShardFromMatchers returns the input matchers without the label matcher on the query shard (if any).
ShardFromMatchers extracts a ShardSelector and the index it was pulled from the matcher list.

# Constants

CompactorShardIDLabel is the external label used to store the ID of a sharded block generated by the split-and-merge compactor.
ShardLabel is a reserved label referencing a shard on read path.

# Structs

ShardSelector holds information about the configured query shard.