Summary: | ASTERISK-28117: stasis: Add statistics for usage when in developer mode | ||
Reporter: | Joshua C. Colp (jcolp) | Labels: | |
Date Opened: | 2018-10-18 08:49:18 | Date Closed: | 2018-12-12 13:09:35.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/Stasis |
Versions: | 16.0.0 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | We don't currently have statistics on Stasis usage, and as its used throughout Asterisk now it would be nice to, as a developer, get statistics to understand the actual usage patterns internally.
Here's what I think would be useful: How many messages were created for each message type How many subscribers there are on a topic How many messages a subscriber did not receive due to filtering How many messages a subscriber received How many messages were created but did not get published to any subscriber (per message type) | ||
Comments: | By: Corey Farrell (coreyfarrell) 2018-10-18 09:17:10.568-0500 I wonder if these statistics could be produced by REF_DEBUG logging. This would not require Asterisk to be compiled any special way to enable (just restart with refdebug=yes in asterisk.conf). On the other hand it would not lend well to live statistics from Asterisk CLI, though I don't see why you wouldn't be able to run the tool against the refs log while Asterisk is still running. The only one we probably wouldn't be able to see from refs log is how many messages a subscriber did not receive due to filtering. By: Joshua C. Colp (jcolp) 2018-12-04 08:03:50.729-0600 [~coreyfarrell] I ended up going the CLI route, it was quicker for me to dive into and get the data I think would be valuable. By: Friendly Automation (friendly-automation) 2018-12-12 13:09:36.654-0600 Change 10766 merged by Friendly Automation: stasis: Add statistics gathering in developer mode. [https://gerrit.asterisk.org/10766|https://gerrit.asterisk.org/10766] By: Friendly Automation (friendly-automation) 2018-12-12 13:10:09.749-0600 Change 10764 merged by Friendly Automation: stasis: Add statistics gathering in developer mode. [https://gerrit.asterisk.org/10764|https://gerrit.asterisk.org/10764] By: Friendly Automation (friendly-automation) 2018-12-12 13:13:15.236-0600 Change 10765 merged by Friendly Automation: stasis: Add statistics gathering in developer mode. [https://gerrit.asterisk.org/10765|https://gerrit.asterisk.org/10765] |