Module erlperf_cluster_monitor

Logs monitoring events for the entire cluster, to file or device.

Copyright © (C) 2019-2022, Maxim Fedorov

Behaviours: gen_server.

Description

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.

Data Types

handler()

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

Function Index

handle_call/3
handle_cast/2
handle_info/2
init/1
start_link/2 Starts cluster-wide monitor with the specified handler, and links it to the caller.

Function Details

handle_call/3

handle_call(Request, From, State) -> any()

handle_cast/2

handle_cast(Request, State) -> any()

handle_info/2

handle_info(X1, State) -> any()

init/1

init(X1) -> any()

start_link/2

start_link(Handler::handler(), Fields::[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.


Generated by EDoc