Eric Callahan
e05aeac884
proc_stats: report system memory usage
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 17:18:50 -04:00
Eric Callahan
9b5b3cc506
proc_stats: report system uptime in API request
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-03-31 16:44:39 -04:00
Eric Callahan
a04e91c046
proc_stats: track the loop blocked count
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-02-05 20:24:00 -05:00
Eric Callahan
a5eff12131
proc_stats: start timers in component init
...
Avoid adding event loop callbacks in a component's "__init__()" method.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-02-05 06:56:29 -05:00
Eric Callahan
9b6161a6b0
proc_stats: add stat callback registration
...
This allows other components to be register callbacks that will
be executed in the stat update timer. This is useful for methods
that wish to poll subprocess commands, as its desireable to
prevent multiple subprocesses from running simultaneously.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-28 18:00:21 -05:00
Eric Callahan
4c99f99cf0
proc_stats: report system cpu usage
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-12 19:58:49 -05:00
Eric Callahan
a652845843
moonraker: add register_component() method
...
Allow base modules to register themselves as components during
initialization. This makes them accessible via lookup_component()
across the entire application.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-01-12 08:05:17 -05:00
Eric Callahan
df674ae476
proc_stats: replace PeriodicCallback
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-10 11:37:51 -05:00
Eric Callahan
ccb86ea039
proc_stats: check for network updates every 10 seconds
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-25 08:18:24 -05:00
Eric Callahan
97522947ec
proc_stats: update service state in the proc_stat timer
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-10-23 10:20:07 -04:00
Eric Callahan
d6fafef902
proc_stats: report websocket connection count
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-09-21 14:19:01 -04:00
Eric Callahan
c684b063b2
proc_stats: report network stats for all interfaces
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-18 08:49:38 -04:00
Eric Callahan
8f8d780c72
proc_stats: fix stat logging when the event loop is blocked
...
Convert the deque to a list before slicing.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-15 11:03:07 -04:00
Eric Callahan
78e10cf7f8
proc_stats: Use the EventLoop to run blocking calls in in a background thread
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-12 06:16:18 -04:00
Eric Callahan
df43aca222
proc_stats: fix erroneous timer handle assignment
...
The delayed callback to "log_last_stats()" in the Watchdog shold not have its return value assigned to the watchdog handle.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-09 08:01:27 -04:00
Eric Callahan
fb9206aa8f
proc_stats: read system files in another thread
...
This should prevent the event loop from getting blocked by a system call.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-09 05:53:11 -04:00
Eric Callahan
3529acfeec
proc_stats: report a blocked event loop
...
Use the PeriodicCallback in proc_stats to check if the event loop was blocked for a More than 5 seconds. If this is detected, log
Moonraker's CPU usage over that time.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-06-27 17:10:49 -04:00
Arksine
12246029ef
proc_stats: add annotations
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-05-18 19:16:49 -04:00
Arksine
f705f1145a
proc_stats: add notify_proc_stat_update websocket notifcation
...
Report CPU temp in addition to moonraker stats in this notification and the proc_stat request.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-05-02 20:42:19 -04:00
Arksine
80707d1734
proc_stats: send cpu_throttled event when throttled state changes
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-04-26 12:35:40 -04:00
Arksine
37615d4790
proc_stats: add CPU throttled flags to log rollover
...
Don't continuously log a change in throttled state, only log when a new throttled flag is detected.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-04-23 07:03:17 -04:00
Arksine
1dc920019c
moonraker: rename the "plugins" package to "components"
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-18 08:29:31 -04:00