Barograph.Ingest.Graphite (barograph v0.2.0)

Copy Markdown View Source

Graphite plaintext line protocol listener (spec §10.1).

Only compiled when the optional :thousand_island dependency is present — see Barograph.Ingest.Supervisor for the runtime guard that applies when :ingest is configured but it's absent.

Summary

Functions

Returns a specification to start this module under a supervisor.

Bound port for a database's Graphite listener. Mainly useful for tests using port: 0.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

port(db)

@spec port(Barograph.db()) :: {:ok, :inet.port_number()} | :error

Bound port for a database's Graphite listener. Mainly useful for tests using port: 0.

start_link(arg)

@spec start_link({handler_options :: term(), GenServer.options()}) ::
  GenServer.on_start()