Moleculer has a statistics module that collects and aggregates the count & latency info of the requests.
You can enable it in the broker options with statistics: true
.
The data is stored only in memory. If you would like to store it, you have to do it!
You can access the statistics data if you call the internal$node.stats
action.
The result looks like the following:
{ |