Monitorex.Collector (monitorex v0.6.0)

Copy Markdown

GenServer that owns ETS tables, attaches telemetry handlers, and runs periodic maintenance for the Monitorex monitoring system.

Event data is written through the configured storage backend (Monitorex.Storage.Backend). By default this is Monitorex.Storage.ETS, which writes to the ETS tables created here.

Summary

Functions

Returns a specification to start this module under a supervisor.

Handles a telemetry event by writing it through the storage backend. Called by telemetry handlers.

Starts the Collector GenServer.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

handle_event(event, pid \\ __MODULE__)

Handles a telemetry event by writing it through the storage backend. Called by telemetry handlers.

start_link(opts \\ [])

Starts the Collector GenServer.