Skip to content

Commit

Permalink
change writer retries stat from summary to counter (#1008)
Browse files Browse the repository at this point in the history
* change writer retries stat from summary to counter

* set retries metric type to counter
  • Loading branch information
Achille authored Oct 28, 2022
1 parent eb07fa4 commit 464e3a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ type WriterStats struct {
BatchTime DurationStats `metric:"kafka.writer.batch.seconds"`
WriteTime DurationStats `metric:"kafka.writer.write.seconds"`
WaitTime DurationStats `metric:"kafka.writer.wait.seconds"`
Retries SummaryStats `metric:"kafka.writer.retries.count"`
Retries int64 `metric:"kafka.writer.retries.count" type:"counter"`
BatchSize SummaryStats `metric:"kafka.writer.batch.size"`
BatchBytes SummaryStats `metric:"kafka.writer.batch.bytes"`

Expand Down Expand Up @@ -403,7 +403,7 @@ type writerStats struct {
batchTime summary
writeTime summary
waitTime summary
retries summary
retries counter
batchSize summary
batchSizeBytes summary
}
Expand Down

0 comments on commit 464e3a4

Please sign in to comment.