Skip to content

Commit

Permalink
corrected saga metrics name and added to metrics documentation (#119)
Browse files Browse the repository at this point in the history
* corrected saga metrics name and added documentatio

* corrected saga metric name

* corrected typos
  • Loading branch information
Guy Baron committed Aug 11, 2019
1 parent dc0a331 commit de202b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/METRICS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Metrics

grabbit exposes and reports operational the following metrics to Prometheus
grabbit exposes and reports the following metrics to Prometheus

| Namespace | Subsystem | Name | Description |
| ------------- | ------------- | ----------------------------------| --------------------------------------------------------------------------- |
| grabbit | handler | [name of message handler]_result | records and counts each succesfull or failed execution of a message handler |
| grabbit | handler | [name of message handler]_latency | records the execution time of each handler |
| grabbit | messages | rejected_messages | increments each time a message gets rejected |
| grabbit | saga | timedout_sagas | counting the number of timedout saga instances |
2 changes: 1 addition & 1 deletion gbus/metrics/saga_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func newSagaTimeoutCounter() prometheus.Counter {
return promauto.NewCounter(prometheus.CounterOpts{
Namespace: grabbitPrefix,
Subsystem: "saga",
Name: "timeedout_sagas",
Name: "timedout_sagas",
Help: "counting the number of timedout saga instances",
})
}

0 comments on commit de202b1

Please sign in to comment.