Poll metrics every 30 seconds

This commit is contained in:
Claudio Ortolina
2025-09-20 09:51:46 +03:00
parent dd09fb907b
commit 056aef97cc
+2 -2
View File
@@ -12,8 +12,8 @@ defmodule MusicLibraryWeb.Telemetry 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}
# every 30 seconds. Learn more here: https://hexdocs.pm/telemetry_metrics
{:telemetry_poller, measurements: periodic_measurements(), period: 30_000}
# Add reporters as children of your supervision tree.
# {Telemetry.Metrics.ConsoleReporter, metrics: metrics()}
]