Module katja_vmstats_collector

The katja_vmstats_collector module is responsible for collecting metrics and sending them to Riemann.

Copyright © 2014-2016 Daniel Kempkens

Version: 0.8.2

Behaviours: gen_server.

Authors: Daniel Kempkens (daniel@kempkens.io).

Description

The katja_vmstats_collector module is responsible for collecting metrics and sending them to Riemann.

Function Index

collect/1Collects the specified metrics and sends them to Riemann.
get_collection/1Returns a list of all collections registered under the given Name.
start_collection/2Registers a new collection under the given Name.
start_link/0Starts a collector server process and registers it as katja_vmstats_collector.
stop/0Stops a collector server process.
stop_collection/1Stops all collections registered under the given Name.

Function Details

collect/1

collect(Metrics::[katja_vmstats:metric()]) -> ok

Collects the specified metrics and sends them to Riemann.

get_collection/1

get_collection(Name::atom()) -> [katja_vmstats:collection()]

Returns a list of all collections registered under the given Name. Setting Name to all will return all registered collections.

start_collection/2

start_collection(Name::atom(), MetricsIntervals::[katja_vmstats:collection()]) -> ok

Registers a new collection under the given Name.
MetricsIntervals has to be a list like the collector configuration option.

start_link/0

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

Starts a collector server process and registers it as katja_vmstats_collector.

stop/0

stop() -> ok

Stops a collector server process.

stop_collection/1

stop_collection(Name::atom()) -> ok

Stops all collections registered under the given Name. Setting Name to all will stop all registered collections.


Generated by EDoc