Skip to content

An additional page to live_dashboard that shows a barchart of your DB insertions by date

Notifications You must be signed in to change notification settings

askasp/live_analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiveAnalytics

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.

![Alt text](Supervisor tree)

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}}

About

An additional page to live_dashboard that shows a barchart of your DB insertions by date

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages