Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
/ beamwork Public archive

SpawnFest 2020 - Your description here..!

Notifications You must be signed in to change notification settings

spawnfest/beamwork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotlight Logo

Phoenix Response Time Graphs

✔️ Very very low overhead (powered by DogSketch)

✔️ Cluster-wide performance charts (not just a single node!)

✔️ No external dependencies (runs 100% in-BEAM)

✔️ Accurate p50, p90, p99 and throughput

✔️ Linear and Log scale

Linear Scale

Spotlight linear scale

Log Scale

Spotlight log scale

Caveat

To our knowledge nobody is running this in production yet. BUT, in theory, it should be able to track an obscene number of requests without slowing down your system. I suspect it will handle at least 100k requests per second per node with ease. Give it a try and let us know!

Installation

  1. Add spotlight to your list of dependencies
  2. Configure LiveView (if you haven't already)
  3. Add spotlight to your Phoenix router

1. Add spotlight to your list of dependencies

Add to mix.exs:

def deps do
  [
    {:spotlight, "~> 0.1.0"}
  ]
end

Then run mix deps.get.

3. Add spotlight to your Phoenix router

# lib/my_app_web/router.ex
use MyAppWeb, :router
import SpotlightWeb.Router

...

scope "/" do
  pipe_through :browser
  spotlight("/spotlight")
end

We heavily recommend that you put Spotlight behind some kind of authentication before adding it to your production servers.

About

SpawnFest 2020 - Your description here..!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published