marctc / tetsuo

Configurable Go library for metrics and events reporting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tetsuo

Tetsuo is an experimental Go library that allows to report events and metrics of your applications. It's like Kaneda but for Go.

Usage

First of all, you need to install Kaneda package:

go get github.com/marctc/tetsuo

Then you need a backend in order to keep data in a persistent storage. The following example it shows how to send metrics with Elasticsearch as a backend:

package main

import (
    "github.com/marctc/tetsuo/backends"
)

func main() {
    mb := backends.NewMongoBackend("webserver", "users")
    m := Metrics{mb}
    m.Gauge("user_vists", 5)
}

About

Configurable Go library for metrics and events reporting

License:MIT License


Languages

Language:Go 100.0%