Skip to content

Latest commit

 

History

History
197 lines (104 loc) · 5.69 KB

exometer_admin.md

File metadata and controls

197 lines (104 loc) · 5.69 KB

Module exometer_admin

Behaviours: gen_server.

Function Index

auto_create_entry/1
code_change/3
delete_entry/1
demonitor/1
ensure/3
find_auto_template/1Convenience function for testing which template will apply to Name.
handle_call/3
handle_cast/2
handle_info/2
init/1
load_defaults/0
load_predefined/0
make_patterns/2
monitor/2
monitor/3
new_entry/3
normalize_name/1
prefixes/1
preset_defaults/0
propose/3
re_register_entry/3
register_application/1
repair_entry/1
set_default/3Sets a default definition for a metric type, possibly using wildcards.
start_link/0
terminate/2

Function Details

auto_create_entry/1

auto_create_entry(Name) -> any()

code_change/3

code_change(X1, S, X3) -> any()

delete_entry/1

delete_entry(Name) -> any()

demonitor/1

demonitor(Pid) -> any()

ensure/3

ensure(Name, Type, Opts) -> any()

find_auto_template/1


find_auto_template(Name::exometer:name()) -> #exometer_entry{} | false

Convenience function for testing which template will apply to Name. See set_default/2 and exometer:update_or_create/2.

handle_call/3

handle_call(Req, From, S) -> any()

handle_cast/2

handle_cast(X1, S) -> any()

handle_info/2

handle_info(X1, S) -> any()

init/1

init(X1) -> any()

load_defaults/0

load_defaults() -> any()

load_predefined/0

load_predefined() -> any()

make_patterns/2

make_patterns(Type, Name) -> any()

monitor/2

monitor(Name, Pid) -> any()

monitor/3

monitor(Name, Pid, OnError) -> any()

new_entry/3

new_entry(Name, Type, Opts) -> any()

normalize_name/1

normalize_name(N) -> any()

prefixes/1

prefixes(L) -> any()

preset_defaults/0

preset_defaults() -> any()

propose/3

propose(Name, Type, Opts) -> any()

re_register_entry/3

re_register_entry(Name, Type, Opts) -> any()

register_application/1

register_application(App) -> any()

repair_entry/1

repair_entry(Name) -> any()

set_default/3


set_default(NamePattern0::[atom()], Type::atom(), Exometer_entry::#exometer_entry{} | [{atom(), any()}]) -> true

Sets a default definition for a metric type, possibly using wildcards.

Names are lists of atoms, where '_' is a wildcard. For example, [a, b, c, '_'] matches all children and grandchildren of [a, b, c], whereas [a, b, c, d] specifies a single name.

The longest match will be selected, unless an exact match is found. The definition can be given either as an #exometer_entry{} record, or a list of {Key, Value} tuples, where each Key matches an attribute of the #exometer_entry{} record.

start_link/0

start_link() -> any()

terminate/2

terminate(X1, X2) -> any()