-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "refactor: change prometheus primary metrics as atomic ones (#159
)" This reverts commit 50f4fcc.
- Loading branch information
1 parent
50f4fcc
commit 4c476eb
Showing
4 changed files
with
10 additions
and
22 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
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 |
---|---|---|
@@ -1,19 +1,7 @@ | ||
package kafka | ||
|
||
type ConsumerMetric struct { | ||
totalUnprocessedMessagesCounter int64 | ||
totalProcessedMessagesCounter int64 | ||
totalErrorCountDuringFetchingMessage int64 | ||
} | ||
|
||
func (cm *ConsumerMetric) IncrementTotalUnprocessedMessagesCounter() { | ||
cm.totalUnprocessedMessagesCounter++ | ||
} | ||
|
||
func (cm *ConsumerMetric) IncrementTotalProcessedMessagesCounter() { | ||
cm.totalProcessedMessagesCounter++ | ||
} | ||
|
||
func (cm *ConsumerMetric) IncrementTotalErrorCountDuringFetchingMessage() { | ||
cm.totalErrorCountDuringFetchingMessage++ | ||
TotalUnprocessedMessagesCounter int64 | ||
TotalProcessedMessagesCounter int64 | ||
TotalErrorCountDuringFetchingMessage int64 | ||
} |