Skip to content

Commit

Permalink
Merge pull request #29 from ricardo-ch/fix-metrics
Browse files Browse the repository at this point in the history
Fix the name of 2 consumer metrics
  • Loading branch information
EtienneGuerlais authored Aug 18, 2023
2 parents e3b80ed + 225ae34 commit 2f4b34e
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 2f4b34e

Please sign in to comment.