ObserverWeb.Telemetry.Consumer (Observer Web v0.1.5)

A reporter that sends the events and metrics to Observer Web consumer

References:

Summary

Types

option()

@type option() ::
  {:name, String.t()} | {:device, atom()} | {:metrics, [Telemetry.Metrics.t()]}

options()

@type options() :: [option()]

t()

@type t() :: %ObserverWeb.Telemetry.Consumer{
  info: String.t(),
  name: String.t(),
  tags: list(),
  type: String.t(),
  unit: String.t(),
  value: integer() | float()
}

Functions

child_spec(init_arg)

@spec child_spec(options()) :: Supervisor.child_spec()

Reporter's child spec.

This function allows you to start the reporter under a supervisor like this:

children = [
  {ObserverWeb.Telemetry.Consumer, options}
]

See start_link/1 for a list of available options.

start_link(options)

@spec start_link(options()) :: GenServer.on_start()