Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

librato

Librato client library for go

Subscribe to updates I use librato


Statistics on librato

Number of watchers on Github 1
Number of open issues 0
Main language Go
Open pull requests 0+
Closed pull requests 0+
Last commit over 2 years ago
Repo Created over 2 years ago
Repo Last Updated over 2 years ago
Size 14 KB
Organization / Authorstitchfix
Contributors1
Page Updated
Do you use librato? Leave a review!
View librato activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating librato for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

librato

This package provides an api for publishing gauges and counters to librato asynchonously.

Usage

From Go:


  // Configure the authentication credentials
  // See struct docs for additional options
  config := Config{
    Email:  os.Getenv("LIBRATO_EMAIL"),
    APIKey: os.Getenv("LIBRATO_APIKEY"),
  }

  // Create a new librato instance
  // Each instance publishes independently of others, and
  // may be used to connect to multiple accounts
  l := librato.New(config)

  // Add a new gauge measurement.
  l.AddGauge(Gauge{Name: "reticulated.splines", Value: 1, Source: "add-gauge"})

  // add a new counter measurement
  l.AddCounter(Counter{Name: "reticulated.splines.counter", Value: 7, Source: "add-counter"})

  // Create and add an aggregate gauge
  a := Aggregate{Name: "reticulated.splines", Source: "add-aggregate"}
  a.Add(12).Add(6).Add(5).Add(4).Add(5).Add(10).Add(3)
  l.AddGauge(a.ToGauge())

  // When done, call Shutdown().
  // This operation is synchronous and will wait for the last
  // publish of metrics to complete
  l.Shutdown()

Installation

To install as a library, you can use go get:

go get github.com/stitchfix/librato

Additional Documentation

For further documentation, please refer to godocs at

GoDoc

librato questions on Stackoverflow (View All Questions)
  • How do I create an Apdex score in Librato?
  • Librato > Composite Metrics: Subtract two meters
  • How can i count the total number of sources my metric has with Librato?
  • Adding a Source to Librato Data When Sending through Segment
  • Add Librato Annotation on Heroku Deployment
  • Log changes to a model with Librato
librato list of languages used
Other projects in Go