Collect runtime metrics for your Go application.
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.
clients/statsd
.gitignore
.travis.yml
LICENSE
README.md
client.go
collector.go
collector_test.go
options.go
options_test.go
stats.go

README.md

Stats

Build Status GoDoc

Stats is a statistics collection library for your Go applications. It collects data on a regular, configurable interval and sends it to a configurable collections client.

Supported statistics

  • Memory usage
  • Goroutines
  • Garbage Collection
  • CGO Calls

Supported collector clients

  • statsd

Example

package main

import (
    "github.com/jelmersnoeck/stats"
    "github.com/jelmersnoeck/stats/clients/statsd"
)

func main() {
    cl, err := statsd.New()
    if err != nil {
        // error connecting to statsd
    }

    s := stats.New(stats.Client(cl))
    go s.Collect()
}