Skip to content

Commit de202b1

Browse files
author
Guy Baron
authored
corrected saga metrics name and added to metrics documentation (#119)
* corrected saga metrics name and added documentatio * corrected saga metric name * corrected typos
1 parent dc0a331 commit de202b1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/METRICS.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Metrics
22

3-
grabbit exposes and reports operational the following metrics to Prometheus
3+
grabbit exposes and reports the following metrics to Prometheus
44

55
| Namespace | Subsystem | Name | Description |
66
| ------------- | ------------- | ----------------------------------| --------------------------------------------------------------------------- |
77
| grabbit | handler | [name of message handler]_result | records and counts each succesfull or failed execution of a message handler |
88
| grabbit | handler | [name of message handler]_latency | records the execution time of each handler |
99
| grabbit | messages | rejected_messages | increments each time a message gets rejected |
10+
| grabbit | saga | timedout_sagas | counting the number of timedout saga instances |

gbus/metrics/saga_metrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func newSagaTimeoutCounter() prometheus.Counter {
2323
return promauto.NewCounter(prometheus.CounterOpts{
2424
Namespace: grabbitPrefix,
2525
Subsystem: "saga",
26-
Name: "timeedout_sagas",
26+
Name: "timedout_sagas",
2727
Help: "counting the number of timedout saga instances",
2828
})
2929
}

0 commit comments

Comments
 (0)