heph
heph copied to clipboard
Tracking issue for monitoring/metrics
Since Heph is intended for building large, distributed services, having good insights into the processes is key. Various types, such as ActorSystem
, should provide data to give insights as to what is happening in the system.
I'm currently unsure on how to expose this data.
Related #13.
Also related #31.
Pr #330 collects some metrics, but it's closed.
Also see https://github.com/Thomasdezeeuw/heph/issues/31#issuecomment-734459185.
PR #462 implements some metrics, but they're just dumped out currently.
Some more metrics I want to monitor:
Memory usage:
- Heap size
- Usage per worker/coordinator.
Per actor:
- name
- supervisor (?)
- inbox/message queue size
- priority
- state: { Runnable, Paused } // NOTE: currently running are excluded.
- uptime: Duration
- polled/ran: usize
- restarts: usize
- time last run: Instant/SystemTime.
Maybe group the actors by name?
Same for Future
s?