Skip to content

Commit

Permalink
forwarder: fix processed prometheus counter
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalaydrus committed Dec 12, 2023
1 parent 6ff8853 commit ca14110
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions forwarder/forwarder.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func (b *Base) Get() (*snmp.Message, error) {

// Send snmp message to forwarder
func (b *Base) Send(message *snmp.Message) {
b.ctrProcessed.Inc()
if b.config.QueueSize == 0 || b.queue.Len() < b.config.QueueSize {
err := b.queue.Put(message)
if err != nil {
Expand Down

0 comments on commit ca14110

Please sign in to comment.