go metrics library
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
riemann Remove unused import Nov 5, 2013
std-logger Add metrics logging Nov 4, 2013
LICENSE Add MIT license Feb 25, 2014
Makefile Initial commit Aug 20, 2013
README Update README Aug 27, 2013
metrics.go Remove import Nov 5, 2013

README


    metrics

    go metrics client


* rationale

  To avoid coupling code with a specific metrics backend (ex: riemann), we provide
  a simple abstraction over backends, which is configurable via the command-line.

* synopsis

  // Import the metrics library and register the "stdout" and
  // "stderr" backends.
  import (
      metrics "github.com/readmill/metrics"
      _       "github.com/readmill/metrics/std-logger"
  )

  func main() {
      metrics.SetPrefix("mysrv.")
      metrics.Use("stdout")
      metrics.Publish(&metrics.Event{
          Service: "inbound.requests",
          Metric:  1,
          Tags:    []string{"http"},
      })
  }

* backends

  - "stdout"
  - "stderr"
  - "riemann"

* docs

  go doc

* author

  Alexis Sellier <alexis@readmill.com>