Skip to content

Basic Librato client library with batching of events

License

Notifications You must be signed in to change notification settings

nyaruka/librato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cfde8e2 · Oct 12, 2023

History

21 Commits
Oct 12, 2023
Oct 12, 2023
Oct 12, 2023
Aug 27, 2018
Oct 12, 2023
Aug 27, 2018
Aug 27, 2018
Oct 12, 2023
Oct 12, 2023
Oct 12, 2023
Aug 27, 2018

Repository files navigation

librato Build Status codecov Go Report Card

Basic Librato client library with batching of events. Thus far it only supports sending gauge values because that's all we need, but contributions welcome.

Usage

You can either instantiate a collector and use that:

import "github.com/nyaruka/librato"

collector := librato.NewCollector(...)
collector.Start()
collector.Gauge("awesomeness.level", 10)
collector.Gauge("foo.count", 123.45)
collector.Stop()

Or configure the default collector and use it like:

librato.Configure(...)
librato.Start()
librato.Gauge("awesomeness.level", 10)
librato.Gauge("foo.count", 123.45)
librato.Stop()