Keep telemetry metrics history
This commit is contained in:
@@ -9,6 +9,7 @@ defmodule MusicLibraryWeb.Telemetry do
|
||||
@impl true
|
||||
def init(_arg) do
|
||||
children = [
|
||||
{MusicLibraryWeb.Telemetry.Storage, metrics()},
|
||||
# Telemetry poller will execute the given period measurements
|
||||
# every 10_000ms. Learn more here: https://hexdocs.pm/telemetry_metrics
|
||||
{:telemetry_poller, measurements: periodic_measurements(), period: 10_000}
|
||||
|
||||
Reference in New Issue
Block a user