system_monitor events.
Behaviours: gen_server.
Filtering/rate-limiting mechanism for the Erlang virtual machine's
system_monitor events.
README.md file at the top of the source repository for details.
| add_custom_handler/2 | Add a custom handler module to the riak_sysmon. |
| call_custom_handler/2 | |
| call_custom_handler/3 | Make a synchronous call to a riak_sysmon specific custom
event handler. |
| start_link/0 | Start the riak_sysmon filter process, monitoring all supported events. |
| start_link/1 | Start the riak_sysmon filter process, monitoring specified events. |
| start_timer/0 | |
| stop_timer/0 |
add_custom_handler(Module, Args) -> any()
Add a custom handler module to the riak_sysmon.
riak_sysmon_example_handler:add_handler/0 function for
a usage example.
call_custom_handler(Module, Call) -> any()
call_custom_handler(Module, Call, Timeout) -> any()
Make a synchronous call to a riak_sysmon specific custom
event handler.
riak_sysmon_example_handler:get_call_count/0 function for
a usage example.
start_link() -> {ok, Pid} | ignore | {error, Error}
Start the riak_sysmon filter process, monitoring all supported events.
start_link(MonitorProps) -> any()
Start the riak_sysmon filter process, monitoring specified events.
TheMonitorProps arg is a property list that may contain zero or more
of the following atoms, descibed in detail in the documentation fo the
erlang:system_monitor/2 function:
busy_port events.
This can be explicitly disabled by setting the riak_sysmon
environment variable busy_port to false.
busy_dist_port events.
This can be explicitly disabled by setting the riak_sysmon
environment variable busy_dist_port to false.
large_heap events.
The default minimum size (in machine words) can be overridden with the
application riak_sysmon environment variable process_heap_limit.
long_gc (long garbage collection) events.
The default minimum time (in milliseconds) can be overridden with the
application riak_sysmon environment variable gc_ms_limit.
long_schedule events.
The default minimum time (in milliseconds) can be overridden with the
application riak_sysmon environment variable schedule_ms_limit.
This option is only supported on Erlang/OTP R16B01 and later, it is
silently ignored on earlier releases.
start_timer() -> any()
stop_timer() -> any()
Generated by EDoc