You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A library that provides an interface for sending metrics from your script, application, or service. Metrics consist of a name, value, and optionally some tags that are made up of key/value pairs.
4
6
5
7
Multiple implementations are provided to allow for production, local development, and testing use cases. The following clients are available:
@@ -13,7 +15,17 @@ Client | Description
13
15
14
16
## Example Usage
15
17
16
-
Generally you will instantiate one of the above clients and then write metrics to it:
18
+
Generally you will instantiate one of the above clients and then write metrics to it. First, install the library:
19
+
20
+
```sh
21
+
# If using dep, glide, godep, etc then use that tool. For example:
The above code would result in `myprefix.requests.count` with a value of `1` showing up in DataDog. See the [`Client`](https://godoc.org/github.com/istreamlabs/go-metrics/#Client) interface for a list of available metrics methods.
44
+
The above code would result in `myprefix.requests.count` with a value of `1` showing up in DataDog if you have [`dogstatsd`](https://docs.datadoghq.com/guides/dogstatsd/) running locally. See the [`Client`](https://godoc.org/github.com/istreamlabs/go-metrics/#Client) interface for a list of available metrics methods.
33
45
34
46
Also provided are useful clients for testing. For example, the following asserts that a metric with the given name, value, and tag was emitted during a test:
0 commit comments