A small tool to add an ecto repo analytics tab to live dashboard. It queries the database at configurable interval and present inserts per day.
In it's current form it's not very scaleable and results from previous days should be cached.
Install with:
{:live_analytics, git: "https://github.com/askasp-lang/live_analytics.git"}
In your router.ex put
live_dashboard("/dashboard",
metrics: MartinstestWeb.Telemetry,
---> additional_pages: [live_analytics: LiveAnalytics] <-----
)
and in your config.exs put
config :live_analytics, :app_name, {{your_app_name}}
config :live_analytics, :poll_interval_ms, {{your_chosen, default is 15000}}