Skip to content

Commit

Permalink
nitpick: rename that variable
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoBrigitte committed Jun 21, 2024
1 parent af3a39b commit 59f4fb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (
)

var (
ReconcileError = prometheus.NewCounterVec(prometheus.CounterOpts{
MimirQueryErrors = prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "observability_operator_mimir_head_series_query_errors_total",
Help: "Total number of reconciliations error",
}, nil)
)

func init() {
metrics.Registry.MustRegister(
ReconcileError,
MimirQueryErrors,
)
}
2 changes: 1 addition & 1 deletion pkg/monitoring/prometheusagent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (pas PrometheusAgentService) buildRemoteWriteConfig(ctx context.Context,
headSeries, err := querier.QueryTSDBHeadSeries(ctx, cluster.Name)
if err != nil {
logger.Error(err, "failed to query head series")
metrics.ReconcileError.WithLabelValues().Inc()
metrics.MimirQueryErrors.WithLabelValues().Inc()
}
shards := shards.ComputeShards(currentShards, headSeries)

Expand Down

0 comments on commit 59f4fb8

Please sign in to comment.