Skip to content

Commit

Permalink
Changed newIngesterMetrics() argument name
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <marco@pracucci.com>
  • Loading branch information
pracucci committed Mar 23, 2020
1 parent 9756392 commit 50694d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ingester/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type ingesterMetrics struct {
oldestUnflushedChunkTimestamp prometheus.Gauge
}

func newIngesterMetrics(r prometheus.Registerer, registerMetricsConflictingWithTSDB bool) *ingesterMetrics {
func newIngesterMetrics(r prometheus.Registerer, createMetricsConflictingWithTSDB bool) *ingesterMetrics {
m := &ingesterMetrics{
flushQueueLength: promauto.With(r).NewGauge(prometheus.GaugeOpts{
Name: "cortex_ingester_flush_queue_length",
Expand Down Expand Up @@ -186,7 +186,7 @@ func newIngesterMetrics(r prometheus.Registerer, registerMetricsConflictingWithT
}),
}

if registerMetricsConflictingWithTSDB {
if createMetricsConflictingWithTSDB {
m.memSeriesCreatedTotal = promauto.With(r).NewCounterVec(prometheus.CounterOpts{
Name: memSeriesCreatedTotalName,
Help: memSeriesCreatedTotalHelp,
Expand Down

0 comments on commit 50694d1

Please sign in to comment.