mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 00:23:18 +00:00
Merge pull request #13864 from yeya24/expose-compactor-metrics
Expose compactor metrics
This commit is contained in:
commit
8eb9228af8
@ -96,7 +96,8 @@ type CompactorMetrics struct {
|
||||
ChunkRange prometheus.Histogram
|
||||
}
|
||||
|
||||
func newCompactorMetrics(r prometheus.Registerer) *CompactorMetrics {
|
||||
// NewCompactorMetrics initializes metrics for Compactor.
|
||||
func NewCompactorMetrics(r prometheus.Registerer) *CompactorMetrics {
|
||||
m := &CompactorMetrics{}
|
||||
|
||||
m.Ran = prometheus.NewCounter(prometheus.CounterOpts{
|
||||
@ -203,7 +204,7 @@ func NewLeveledCompactorWithOptions(ctx context.Context, r prometheus.Registerer
|
||||
ranges: ranges,
|
||||
chunkPool: pool,
|
||||
logger: l,
|
||||
metrics: newCompactorMetrics(r),
|
||||
metrics: NewCompactorMetrics(r),
|
||||
ctx: ctx,
|
||||
maxBlockChunkSegmentSize: maxBlockChunkSegmentSize,
|
||||
mergeFunc: mergeFunc,
|
||||
|
Loading…
Reference in New Issue
Block a user