Skip to content

Commit 28138e4

Browse files
authored
Merge pull request #62 from weaveworks/expose-num-chunks
Fix missing exposure of chunks-in-memory metric
2 parents b7fc8a1 + acf2c60 commit 28138e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ingester/ingester.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func New(cfg Config, chunkStore prism.Store) (*Ingester, error) {
123123
}),
124124
memoryChunks: prometheus.NewGauge(prometheus.GaugeOpts{
125125
Name: "prism_ingester_memory_chunks",
126-
Help: "The total number of samples returned from queries.",
126+
Help: "The total number of chunks in memory.",
127127
}),
128128
chunkStoreFailures: prometheus.NewCounter(prometheus.CounterOpts{
129129
Name: "prism_ingester_chunk_store_failures_total",
@@ -515,6 +515,7 @@ func (i *Ingester) Describe(ch chan<- *prometheus.Desc) {
515515
ch <- i.chunkStoreFailures.Desc()
516516
ch <- i.queries.Desc()
517517
ch <- i.queriedSamples.Desc()
518+
ch <- i.memoryChunks.Desc()
518519
}
519520

520521
// Collect implements prometheus.Collector.
@@ -543,6 +544,7 @@ func (i *Ingester) Collect(ch chan<- prometheus.Metric) {
543544
ch <- i.chunkStoreFailures
544545
ch <- i.queries
545546
ch <- i.queriedSamples
547+
ch <- i.memoryChunks
546548
}
547549

548550
type invertedIndex struct {

0 commit comments

Comments
 (0)