Mobius (mobius v0.2.0) View Source
Localized metrics reporter
Link to this section Summary
Types
Arguments to Mobius
The name of the Mobius instance
The time resolution of the metrics being collected
Link to this section Types
Specs
arg() :: {:name, name()} | {:metrics, [Telemetry.Metrics.t()]} | {:persistence_dir, binary()}
Arguments to Mobius
:name
- the name of the mobius instance (defaults to:mobius
):metrics
- list of telemetry metrics for Mobius to track:persistence_dir
- the top level directory where mobius will persist metric information
Specs
metric_name() :: [atom()]
Specs
metric_type() :: :counter | :last_value
Specs
name() :: atom()
The name of the Mobius instance
This is used to store data for a particular set of mobius metrics.
Specs
resolution() :: :month | :week | :day | :hour | :minute
The time resolution of the metrics being collected
:month
- metrics over the last 31 days:week
- metrics over the last 7 days:day
- metrics over the last 24 hours:hour
- metrics over the last 60 minutes:minute
- metrics over the last 60 seconds
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Start Mobius