Components
Mix.install([
{:telemetry_poller, "~> 1.0"},
{:kino_telemetry, github: "mcrumm/kino_telemetry"}
])
:telemetry_poller.start_link(measurements: [], period: 5_000)
Kinos
KinoTelemetry
This integration automatically renders a Telemetry.Metrics definition as a chart:
LastValue
Telemetry.Metrics.last_value("vm.memory.binary", unit: {:byte, :kilobyte})
|> KinoTelemetry.new()
Counter
Telemetry.Metrics.counter("vm.memory.binary")
|> KinoTelemetry.new()
Sum
Telemetry.Metrics.sum("vm.memory.binary", unit: {:byte, :kilobyte})
|> KinoTelemetry.new()
Summary and Distribution metrics are not supported.