Renders Telemetry.Metrics definitions in Livebook.
Mix.install([
{:kino_telemetry, github: "mcrumm/kino_telemetry"},
{:telemetry_poller, "~> 1.0"}
])
{:ok, _} = :telemetry_poller.start_link(measurements: [], period: 5_000)
Telemetry.Metrics.last_value("vm.memory.binary", unit: :byte)
|> KinoTelemetry.Metric.new()
If available in Hex, the package can be installed
by adding kino_telemetry
to your list of dependencies in mix.exs
:
def deps do
[
{:kino_telemetry, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/kino_telemetry.