-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added metrics for transactional outbox (#193)
* added metrics for transactional outbox The follwoing metrics were added outbox_total_records: reports the total amount of records currently in the outbox outbox_pending_delivery: reports the total amount of records pending delivery currently in the outbox outbox_pending_removal: reports the total amount of records that were sent and pending removal currently in the outbox * reading status and count fields in the correct order from rows
- Loading branch information
Guy Baron
authored
Oct 13, 2019
1 parent
b109f06
commit 784d8f4
Showing
4 changed files
with
106 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package metrics | ||
|
||
import ( | ||
"github.com/prometheus/client_golang/prometheus" | ||
"github.com/prometheus/client_golang/prometheus/promauto" | ||
) | ||
|
||
var OutboxSize = promauto.NewGauge(prometheus.GaugeOpts{ | ||
Namespace: grabbitPrefix, | ||
Name: "outbox_total_records", | ||
Subsystem: "outbox", | ||
Help: "reports the total amount of records currently in the outbox", | ||
}) | ||
|
||
var PendingMessages = promauto.NewGauge(prometheus.GaugeOpts{ | ||
Namespace: grabbitPrefix, | ||
Name: "outbox_pending_delivery", | ||
Subsystem: "outbox", | ||
Help: "reports the total amount of records pending delivery currently in the outbox", | ||
}) | ||
|
||
var SentMessages = promauto.NewGauge(prometheus.GaugeOpts{ | ||
Namespace: grabbitPrefix, | ||
Name: "outbox_pending_removal", | ||
Subsystem: "outbox", | ||
Help: "reports the total amount of records that were sent and pending removal currently in the outbox", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters