SyntropyWeb.Telemetry (syntropy v0.2.0)

Copy Markdown

Telemetry supervisor: periodic VM measurements plus the in-process Prometheus reporter backing GET /metrics.

Metrics cover the BEAM (memory, run queues), Phoenix endpoint latency, Ecto query timing (only emitted when persistence is enabled), and the custom runtime events defined in Syntropy.Telemetry — task runs, LLM requests and token usage, webhook deliveries, and event recorder batch flushes.

Summary

Functions

Returns a specification to start this module under a supervisor.

Renders the current metric values in Prometheus text exposition format.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

metrics()

@spec metrics() :: [Telemetry.Metrics.t()]

scrape()

@spec scrape() :: String.t()

Renders the current metric values in Prometheus text exposition format.

start_link(opts)

@spec start_link(keyword()) :: Supervisor.on_start()