Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

$SYS topic support #89

Merged
merged 15 commits into from
Feb 18, 2014
Merged

$SYS topic support #89

merged 15 commits into from
Feb 18, 2014

Conversation

mcollina
Copy link
Collaborator

I think it's time to add $SYS topic support to Mosca.

This will require:

  • avoid forwarding $SYS to # and + subscriptions.
  • Add some decent stats, like the number of concurrent connections, total number of messages published, ecc...
  • Reduce the amount of INFO logs

Here are the stats that Mosquitto is producing:

$SYS/broker/uptime 640136 seconds
$SYS/broker/load/messages/received/1min 1067.02
$SYS/broker/load/messages/sent/1min 1591.33
$SYS/broker/load/publish/received/1min 141.26
$SYS/broker/load/publish/sent/1min 1152.79
$SYS/broker/load/bytes/received/1min 103503.81
$SYS/broker/load/bytes/sent/1min 121049.43
$SYS/broker/load/sockets/1min 28.40
$SYS/broker/load/connections/1min 28.40
$SYS/broker/load/messages/received/5min 1079.17
$SYS/broker/load/messages/sent/5min 1478.08
$SYS/broker/load/publish/received/5min 146.06
$SYS/broker/load/publish/sent/5min 1037.63
$SYS/broker/load/bytes/received/5min 104751.88
$SYS/broker/load/bytes/sent/5min 116918.81
$SYS/broker/load/sockets/5min 27.99
$SYS/broker/load/connections/5min 27.72
$SYS/broker/load/messages/received/15min 1077.66
$SYS/broker/load/messages/sent/15min 1436.28
$SYS/broker/load/publish/received/15min 149.14
$SYS/broker/load/publish/sent/15min 997.53
$SYS/broker/load/bytes/received/15min 107626.15
$SYS/broker/load/bytes/sent/15min 123038.30
$SYS/broker/load/sockets/15min 27.28
$SYS/broker/load/connections/15min 26.72
$SYS/broker/messages/stored 3751
$SYS/broker/heap/current 8335876
$SYS/broker/messages/received 10443777
$SYS/broker/messages/sent 15771287
$SYS/broker/publish/messages/received 3165576
$SYS/broker/publish/messages/sent 13552599
$SYS/broker/bytes/received 1151828279
$SYS/broker/bytes/sent 2053672529

Closes #37.
Closes #64.

mcollina added a commit that referenced this pull request Feb 18, 2014
@mcollina mcollina merged commit 717e8a5 into master Feb 18, 2014
@mcollina mcollina deleted the monitoring branch February 18, 2014 09:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add logging to topic Add a timer logging
1 participant