Module ep_cluster_monitor

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

Copyright © (C) 2019, Maxim Fedorov

Behaviours: gen_server.

Authors: Maxim Fedorov (maximfca@gmail.com).

Description

Logs monitoring events for the entire cluster, to file or device. Requires cluster_history service running, fails otherwise.

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/0 Starts additional cluster monitor, printing selected fields (sched_util, running job characteristics) to group_leader().
start/2 Starts additional cluster-wide monitor.
start_link/2 Starts cluster-wide monitor with the specified handler, and links it to the caller.
stop/1 Stops the cluster-wide monitor instance.

Function Details

handle_call/3

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

handle_cast/2

handle_cast(Request, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

init/1

init(X1) -> any()

start/0

start() -> {ok, Pid::pid()} | {error, Reason::term()}

Starts additional cluster monitor, printing selected fields (sched_util, running job characteristics) to group_leader(). User is responsible for stopping the server.

start/2

start(Handler::handler(), Fields::[atom()]) -> {ok, Pid::pid()} | {error, Reason::term()}

Starts additional cluster-wide monitor. User is responsible for stopping the server.

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.

stop/1

stop(Pid::pid()) -> ok

Stops the cluster-wide monitor instance.


Generated by EDoc