Skip to content

Commit

Permalink
Merge pull request rcrowley#122 from rcrowley/deprecatelibrato
Browse files Browse the repository at this point in the history
deprecate librato client + add reference to new home
  • Loading branch information
mihasya committed Jul 12, 2015
2 parents a1a1322 + 15886a6 commit a56a530
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,13 @@ go influxdb.Influxdb(metrics.DefaultRegistry, 10e9, &influxdb.Config{
})
```

Periodically upload every metric to Librato:
Periodically upload every metric to Librato using the [Librato client](https://github.com/mihasya/go-metrics-librato):

**Note**: the client included with this repository under the `librato` package
has been deprecated and moved to the repository linked above.

```go
import "github.com/rcrowley/go-metrics/librato"
import "github.com/mihasya/go-metrics-librato"

go librato.Librato(metrics.DefaultRegistry,
10e9, // interval
Expand Down Expand Up @@ -102,3 +105,10 @@ StatHat support additionally requires their Go client:
```sh
go get github.com/stathat/go
```

Publishing Metrics
------------------

Clients are available for the following destinations:

* Librato - [https://github.com/mihasya/go-metrics-librato](https://github.com/mihasya/go-metrics-librato)
1 change: 1 addition & 0 deletions librato/librato.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func Librato(r metrics.Registry, d time.Duration, e string, t string, s string,
}

func (self *Reporter) Run() {
log.Printf("WARNING: This client has been DEPRECATED! It has been moved to https://github.com/mihasya/go-metrics-librato and will be removed from rcrowley/go-metrics on August 5th 2015")
ticker := time.Tick(self.Interval)
metricsApi := &LibratoClient{self.Email, self.Token}
for now := range ticker {
Expand Down

0 comments on commit a56a530

Please sign in to comment.