Module erlperf_history

Collects, accumulates & filters cluster-wide monitoring events.

Copyright © (C) 2019-2022, Maxim Fedorov

Behaviours: gen_server.

Description

Collects, accumulates & filters cluster-wide monitoring events. Essentially a simple in-memory database for quick cluster overview. Started only when the application is configured for running in a primary node.

Function Index

get/1 Returns cluster history from time From (all fields), sorted by time.
get/2 Returns records between From and To (inclusive) Both From and To are Erlang system time in milliseconds.
handle_call/3
handle_cast/2
handle_info/2
init/1
start_link/0 Starts the server.

Function Details

get/1

get(From::integer()) -> [{node(), erlperf_monitor:monitor_sample()}]

Returns cluster history from time From (all fields), sorted by time.

get/2

get(From::integer(), To::integer()) -> [{node(), erlperf_monitor:monitor_sample()}]

Returns records between From and To (inclusive) Both From and To are Erlang system time in milliseconds.

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/0

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

Starts the server


Generated by EDoc