Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Netflix/metrics-client-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A go client for the Atlasd sidecar API on localhost. This package requires that you install Atlasd on the given system, and that Atlasd is running on the expected port.

Metrics

Usage:

ctx, cancel := context.WithCancel(context.Background())
// see WithURLInterval for customizations
m := metrics.New(ctx, log.New(ioutil.Discard, "metrics: ", log.LstdFlags))

m.Gauge("gauge.name", tags, 15)
m.Counter("counter.name", tags, 1)
m.Timer("foo.elapsed", tags, 5*time.Minute)

// ...

// later:
m.Flush()
cancel() // stops all metrics processing, all operations become a noop

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published