-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME
More file actions
44 lines (29 loc) · 779 Bytes
/
README
File metadata and controls
44 lines (29 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
metrics
go metrics client
* rationale
To avoid coupling code with a specific metrics backend (ex: riemann), we provide
a simple abstraction over backends, which is configurable via the command-line.
* synopsis
// Import the metrics library and register the "stdout" and
// "stderr" backends.
import (
metrics "github.com/readmill/metrics"
_ "github.com/readmill/metrics/std-logger"
)
func main() {
metrics.SetPrefix("mysrv.")
metrics.Use("stdout")
metrics.Publish(&metrics.Event{
Service: "inbound.requests",
Metric: 1,
Tags: []string{"http"},
})
}
* backends
- "stdout"
- "stderr"
- "riemann"
* docs
go doc
* author
Alexis Sellier <alexis@readmill.com>