Skip to content

Commit

Permalink
System message statistics are not collected
Browse files Browse the repository at this point in the history
  • Loading branch information
rmqtt committed Aug 9, 2023
1 parent dd0015d commit 0caf0e6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions rmqtt-plugins/rmqtt-counter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,15 @@ impl Handler for CounterHandler {
// }
self.metrics.messages_publish_inc();
}
Parameter::MessageDelivered(_session, _client, _f, _p) => {
self.metrics.messages_delivered_inc();
Parameter::MessageDelivered(_session, _client, from, _p) => {
if !from.is_system() {
self.metrics.messages_delivered_inc();
}
}
Parameter::MessageAcked(_session, _client, _f, _p) => {
self.metrics.messages_acked_inc();
Parameter::MessageAcked(_session, _client, from, _p) => {
if !from.is_system() {
self.metrics.messages_acked_inc();
}
}
Parameter::MessageDropped(_to, _from, _p, _r) => {
self.metrics.messages_dropped_inc(); //@TODO ... elaboration
Expand Down

0 comments on commit 0caf0e6

Please sign in to comment.