Add metric for DISCONNECT packet
This commit is contained in:
parent
917eb8e29f
commit
f95c82e37a
|
@ -58,7 +58,8 @@
|
|||
{counter, 'packets/unsuback'}, % UNSUBACK Packets sent
|
||||
{counter, 'packets/pingreq'}, % PINGREQ packets received
|
||||
{counter, 'packets/pingresp'}, % PINGRESP Packets sent
|
||||
{counter, 'packets/disconnect'}, % DISCONNECT Packets received
|
||||
{counter, 'packets/disconnect/received'}, % DISCONNECT Packets received
|
||||
{counter, 'packets/disconnect/sent'}, % DISCONNECT Packets sent
|
||||
{counter, 'packets/auth'} % Auth Packets received
|
||||
]).
|
||||
|
||||
|
@ -194,7 +195,7 @@ received2(?UNSUBSCRIBE) ->
|
|||
received2(?PINGREQ) ->
|
||||
inc('packets/pingreq');
|
||||
received2(?DISCONNECT) ->
|
||||
inc('packets/disconnect');
|
||||
inc('packets/disconnect/received');
|
||||
received2(_) ->
|
||||
ignore.
|
||||
qos_received(?QOS_0) ->
|
||||
|
@ -233,6 +234,8 @@ sent2(?UNSUBACK) ->
|
|||
inc('packets/unsuback');
|
||||
sent2(?PINGRESP) ->
|
||||
inc('packets/pingresp');
|
||||
sent2(?DISCONNECT) ->
|
||||
inc('packets/disconnect/sent');
|
||||
sent2(_Type) ->
|
||||
ignore.
|
||||
qos_sent(?QOS_0) ->
|
||||
|
|
Loading…
Reference in New Issue