Skip to content

Commit

Permalink
Fix the name of 2 consumer metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneGuerlais committed Aug 17, 2023
1 parent e3b80ed commit 225ae34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instrumenting.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func getPrometheusRecordConsumedInstrumentation() *prometheus.CounterVec {
prometheus.CounterOpts{
Namespace: "kafka",
Subsystem: "consumer",
Name: "records_consumed_total",
Name: "record_consumed_total",
Help: "Number of records consumed",
}, consumerMetricLabels)
prometheus.MustRegister(consumerRecordConsumedCounter)
Expand All @@ -62,7 +62,7 @@ func getPrometheusRecordConsumedLatencyInstrumentation() *prometheus.HistogramVe
prometheus.HistogramOpts{
Namespace: "kafka",
Subsystem: "consumer",
Name: "record_consumed_latency_seconds",
Name: "record_latency_seconds",
Help: "Total duration in milliseconds",
}, consumerMetricLabels)
prometheus.MustRegister(consumerRecordConsumedLatency)
Expand Down

0 comments on commit 225ae34

Please sign in to comment.