View Source exometer_admin (exometer_core v1.7.1)

Summary

Functions

Link to this function

ensure(Name, Type, Opts)

View Source
Link to this function

find_auto_template(Name)

View Source
-spec find_auto_template(exometer:name()) ->
                      #exometer_entry{name :: term(),
                                      type :: term(),
                                      behaviour :: term(),
                                      module :: term(),
                                      status :: term(),
                                      cache :: term(),
                                      value :: term(),
                                      timestamp :: term(),
                                      options :: term(),
                                      ref :: term()} |
                      false.
Convenience function for testing which template will apply to Name. See set_default/2 and exometer:update_or_create/2.
Link to this function

handle_call(Req, From, S)

View Source
Link to this function

make_patterns(Type, Name)

View Source
Link to this function

monitor(Name, Pid, OnError)

View Source
Link to this function

new_entry(Name, Type, Opts)

View Source
Link to this function

propose(Name, Type, Opts)

View Source
Link to this function

re_register_entry(Name, Type, Opts)

View Source
Link to this function

register_application(App)

View Source
Link to this function

set_default(NamePattern0, Type, Exometer_entry)

View Source
-spec set_default([atom()],
            atom(),
            #exometer_entry{name :: term(),
                            type :: term(),
                            behaviour :: term(),
                            module :: term(),
                            status :: term(),
                            cache :: term(),
                            value :: term(),
                            timestamp :: term(),
                            options :: term(),
                            ref :: term()} |
            [{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.