Skip to content

Commit

Permalink
fix: subscriber metric name (#1186)
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Yuichi Okimoto <[email protected]>
  • Loading branch information
cre8ivejp authored Aug 6, 2024
1 parent 14454f3 commit 2385042
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/subscriber/processor/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,23 @@ var (
prometheus.CounterOpts{
Namespace: "bucketeer",
Subsystem: "subscriber",
Name: "subscriber_received_event_total",
Name: "received_total",
Help: "Total number of received messages",
}, []string{"subscriber"})

subscriberHandledCounter = prometheus.NewCounterVec(
prometheus.CounterOpts{
Namespace: "bucketeer",
Subsystem: "subscriber",
Name: "subscriber_handled_event_total",
Name: "handled_total",
Help: "Total number of handled messages",
}, []string{"subscriber", "code"})

subscriberHandledHistogram = prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Namespace: "bucketeer",
Subsystem: "subscriber",
Name: "subscriber_handled_seconds",
Name: "handled_seconds",
Help: "Histogram of message handling duration (seconds)",
Buckets: prometheus.DefBuckets,
}, []string{"subscriber", "code"})
Expand Down

0 comments on commit 2385042

Please sign in to comment.