Skip to content

Commit a020ff1

Browse files
committed
Fixing the counter for indexing pipelines
It was stuck to 0 because I forgot to increment the guard upon creation.
1 parent 344a19c commit a020ff1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

quickwit/quickwit-indexing/src/actors/indexing_pipeline.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ impl IndexingPipeline {
159159
let indexing_pipelines_gauge = crate::metrics::INDEXER_METRICS
160160
.indexing_pipelines
161161
.with_label_values([&params.pipeline_id.index_uid.index_id]);
162-
let indexing_pipelines_gauge_guard = OwnedGaugeGuard::from_gauge(indexing_pipelines_gauge);
162+
let mut indexing_pipelines_gauge_guard = OwnedGaugeGuard::from_gauge(indexing_pipelines_gauge);
163+
indexing_pipelines_gauge_guard.add(1);
163164
let params_fingerprint = params.params_fingerprint;
164165
IndexingPipeline {
165166
params,

0 commit comments

Comments
 (0)