Просмотр исходного кода

(#22) Document StatHat support.

Richard Crowley 12 лет назад
Родитель
Сommit
abab30538f
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      README.md

+ 14 - 0
README.md

@@ -54,9 +54,23 @@ addr, _ := net.ResolveTCPAddr("tcp", "127.0.0.1:2003")
 go metrics.Graphite(metrics.DefaultRegistry, 10e9, "metrics", addr)
 ```
 
+Periodically emit every metric to StatHat:
+
+```go
+import "github.com/rcrowley/go-metrics/stathat"
+
+stathat.Stathat(metrics.DefaultRegistry, 10e9, "example@example.com")
+```
+
 Installation
 ------------
 
 ```sh
 go get github.com/rcrowley/go-metrics
 ```
+
+StatHat support additionally requires their Go client:
+
+```sh
+go get github.com/stathat/go
+```