瀏覽代碼

Added librato example to README.

Mark Wolfe 11 年之前
父節點
當前提交
d8e7b03f77
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      README.md

+ 15 - 0
README.md

@@ -75,6 +75,21 @@ go influxdb.Influxdb(metrics.DefaultRegistry, 10e9, &influxdb.Config{
 })
 ```
 
+Periodically upload metrics to librato.
+
+```go
+import "github.com/rcrowley/go-metrics/librato"
+
+go librato.Librato(metrics.DefaultRegistry,
+    10e9,          // interval
+    "me@here.com", // account email addres
+    "1231231231",  // auth token
+    "server1",     // source
+    []float64{95}, // precentiles to send
+    time.Millisecond) // time units
+  
+```
+
 Installation
 ------------