Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit f2e5e9f

Browse files
committed
Docs, readme, Travis-CI.
1 parent 58a3f5d commit f2e5e9f

File tree

4 files changed

+62
-1
lines changed

4 files changed

+62
-1
lines changed

.travis.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: go
2+
go:
3+
- 1.3.1
4+
- tip
5+
notifications:
6+
# See http://about.travis-ci.org/docs/user/build-configuration/ to learn more
7+
# about configuring notification recipients and more.
8+
email:
9+
recipients:
10+

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Coda Hale
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
metrics
2+
=======
3+
4+
[![Build Status](https://travis-ci.org/codahale/metrics.png?branch=master)](https://travis-ci.org/codahale/metrics)
5+
6+
A Go library which provides light-weight instrumentation for your application.
7+
8+
For documentation, check [godoc](http://godoc.org/github.com/codahale/metrics).

metrics.go

+23-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,29 @@
11
// Package metrics provides minimalist instrumentation for your applications in
22
// the form of counters and gauges.
33
//
4-
// Measurements from counters and gauges are available as expvars.
4+
// Counters
5+
//
6+
// A counter is a monotonically-increasing, unsigned, 64-bit integer used to
7+
// represent the number of times an event has occurred. By tracking the deltas
8+
// between measurements of a counter over intervals of time, an aggregation
9+
// layer can derive rates, acceleration, etc.
10+
//
11+
// Gauges
12+
//
13+
// A gauge returns instantaneous measurements of something using 64-bit floating
14+
// point values.
15+
//
16+
// Histograms
17+
//
18+
// A histogram tracks the distribution of a stream of values (e.g. the number of
19+
// milliseconds it takes to handle requests), adding gauges for the values at
20+
// meaningful quantiles: 50th, 75th, 90th, 95th, 99th, 99.9th.
21+
//
22+
// Reporting
23+
//
24+
// Measurements from counters and gauges are available as expvars. Your service
25+
// should return its expvars from an HTTP endpoint (i.e., /debug/vars) as a JSON
26+
// object.
527
package metrics
628

729
import (

0 commit comments

Comments
 (0)