Skip to content

Commit 08becdb

Browse files
Rename consecutive failure counter (#4867)
1 parent 3d7c72a commit 08becdb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/telemetry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The following ingestion metrics with their corresponding dimensions are availabl
2424
- `sc.audit.ingestion.failures_total` - Failure counter
2525
- `message.category` - Indicates the category of the message ingested: `audit-message`, `saga-update` or `control-message`
2626
- `result` - Indicates how the failure was resolved: `retry` or `stored-poison`
27-
- `sc.audit.ingestion.consecutive_batch_failure_total` - Consecutive batch failures
27+
- `sc.audit.ingestion.consecutive_batch_failures_total` - Consecutive batch failures
2828

2929
Example queries in PromQL for use in Grafana:
3030

src/ServiceControl.Audit/Auditing/Metrics/IngestionMetrics.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public IngestionMetrics(IMeterFactory meterFactory)
2020

2121
batchDuration = meter.CreateHistogram<double>(BatchDurationInstrumentName, unit: "seconds", "Message batch processing duration in seconds");
2222
ingestionDuration = meter.CreateHistogram<double>(MessageDurationInstrumentName, unit: "seconds", description: "Audit message processing duration in seconds");
23-
consecutiveBatchFailureGauge = meter.CreateObservableGauge($"{InstrumentPrefix}.consecutive_batch_failure_total", () => consecutiveBatchFailures, description: "Consecutive audit ingestion batch failure");
23+
consecutiveBatchFailureGauge = meter.CreateObservableGauge($"{InstrumentPrefix}.consecutive_batch_failures_total", () => consecutiveBatchFailures, description: "Consecutive audit ingestion batch failures");
2424
failureCounter = meter.CreateCounter<long>($"{InstrumentPrefix}.failures_total", description: "Audit ingestion failure count");
2525
}
2626

0 commit comments

Comments
 (0)