Closed tobypinder closed 5 years ago
Any interest in this? We've been using it in production for over a year without issues on our PR fork.
We used it to publish metrics to Datadog as mentioned in the example above - this proves useful for alerting / monitoring etc
Thanks!
Description
See discussion on #50
Adds
on_calculation
callback which can be used to perform custom functionality every time PWK calculates memory usage. The configured lambda receives the memory used in megabytes as an argument.Usage
An example usage in the config is
which works similar to the default
reaper_status_logs
. In my case, I can use this function to record application usage to eg DatadogThis principle extends to any logging/monitoring solutions.