View Source erlperf_cluster_monitor (erlperf v2.1.0)

Logs monitoring events for the entire cluster, to file or device. Requires erlperf_history service running, fails otherwise. Uses completely different to erlperf_monitor approach; instead of waiting for new samples to come, cluster monitor just outputs existing samples periodically.

Link to this section Summary

Functions

Starts cluster-wide monitor with the specified handler, and links it to the caller. Use 'record_info(fields, monitor_sample)' to fetch all fields.

Link to this section Types

-type handler() :: {module(), atom(), term()} | file:filename_all() | {fd, io:device()} | io:device().

Link to this section Functions

Link to this function

handle_call(Request, From, State)

View Source
Link to this function

handle_cast(Request, State)

View Source
Link to this function

start_link(Handler, Fields)

View Source
-spec start_link(handler(), [atom()]) -> {ok, Pid :: pid()} | {error, Reason :: term()}.
Starts cluster-wide monitor with the specified handler, and links it to the caller. Use 'record_info(fields, monitor_sample)' to fetch all fields.