Keep telemetry metrics history

This commit is contained in:
Claudio Ortolina
2024-11-25 10:02:34 +00:00
parent 5cee7db630
commit edb24dc932
5 changed files with 70 additions and 0 deletions
+1
View File
@@ -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}