esl / MongoosePush

MongoosePush is a simple Elixir RESTful service allowing to send push notification via FCM and/or APNS.
Apache License 2.0
108 stars 24 forks source link

Metrics based on telemetry events generated by sparrow #175

Closed janciesla8818 closed 4 years ago

janciesla8818 commented 4 years ago

This PR adds new metrics based on sparrow telemetry events. The changes include:

Last three metrics are gathered using :wpool.stats to get the information from worker pool.

Telemetry poller is added to the project to collect periodic metrics. Counters of pools and workers are collected as events generated during telemetry poller events. The period for gathering metrics is 5 seconds which is the default value for telemetry poller.