https://github.com/marctc/tetsuo
Configurable Go library for metrics and events reporting
https://github.com/marctc/tetsuo
Last synced: 3 months ago
JSON representation
Configurable Go library for metrics and events reporting
- Host: GitHub
- URL: https://github.com/marctc/tetsuo
- Owner: marctc
- License: mit
- Created: 2018-06-11T22:07:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-18T10:39:13.000Z (almost 7 years ago)
- Last Synced: 2025-01-07T07:44:28.528Z (5 months ago)
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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:.. code-block:: go
package main
import (
"github.com/marctc/tetsuo/backends"
)
func main() {
mb := backends.NewMongoBackend("webserver", "users")
m := Metrics{mb}
m.Gauge("user_vists", 5)
}