Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrected saga metrics name and added to metrics documentation #119

Merged
merged 3 commits into from
Aug 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
})
}