-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from jcoene/config-env-vars
Support configuration with environment variables
- Loading branch information
Showing
6 changed files
with
77 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
statsd_darwin_amd64 | ||
statsd_linux_amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
language: go | ||
|
||
go: | ||
- 1.2 | ||
|
||
install: | ||
- export PATH=$PATH:$HOME/gopath/bin | ||
- go get code.google.com/p/go.tools/cmd/cover | ||
- go get -t | ||
|
||
script: | ||
- go test -cover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
default: fmt run | ||
|
||
fmt: | ||
go fmt *.go | ||
|
||
test: | ||
go test -cover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
# StatsD Server for Librato | ||
|
||
This is an implementation of Etsy's StatsD written in Go that submits data to Librato Metrics. | ||
[![Build Status](https://secure.travis-ci.org/jcoene/statsd-librato.png?branch=master)](http://travis-ci.org/jcoene/statsd-librato) | ||
|
||
This was forked from [jbuchbinder/statsd-go](https://github.com/jbuchbinder/statsd-go) and altered to provide support for Librato as a submission backend. | ||
This is an implementation of Etsy's StatsD written in Go that submits data to Librato Metrics. | ||
|
||
# Usage | ||
|
||
``` | ||
Usage of statsd: | ||
-address="0.0.0.0:8125": UDP service address | ||
-debug=false: Enable Debugging | ||
-flush=30: Flush Interval (seconds) | ||
-percentiles="": Percentiles to track (eg. "95,99.5") | ||
-token="": Librato API Token | ||
-user="": Librato Username | ||
-address="0.0.0.0:8125": udp listen address | ||
-debug=false: enable logging of inputs and submissions | ||
-flush=60: interval at which data is sent to librato (in seconds) | ||
-percentiles="": comma separated list of percentiles to calculate for timers (eg. "95,99.5") | ||
-source="": librato api source (LIBRATO_SOURCE) | ||
-token="": librato api token (LIBRATO_TOKEN) | ||
-user="": librato api username (LIBRATO_USER) | ||
``` | ||
|
||
## Credits | ||
|
||
This was forked from [jbuchbinder/statsd-go](https://github.com/jbuchbinder/statsd-go) and altered to provide support for Librato as a submission backend. | ||
|
||
## License | ||
|
||
MIT License, see LICENSE for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package main | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestBuilds(t *testing.T) { | ||
return | ||
} |