Skip to content

newroyker/meter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meter

Custom metrics source example.

There are two ways to register a Source:

  • during start let MetricsSystem use Utils to load the class and register a newInstance.
  • otherwise, registerSource an instance to MetricsSystem.

demo

sbt run output will contain:

-- Counters --------------------------------------------------------------------
...
local-1548106767177.driver.MySource.fooCounter
             count = 100
            
-- Histograms ------------------------------------------------------------------
...
local-1548106767177.driver.MySource.fooHistory
             count = 100
               min = 1
               max = 1
              mean = 1.00
            stddev = 0.00
            median = 1.00
              75% <= 1.00
              95% <= 1.00
              98% <= 1.00
              99% <= 1.00
            99.9% <= 1.00
             

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages