Skip to content

Commit b1294f4

Browse files
committed
Changed all armon to rogueloop
1 parent d98b751 commit b1294f4

File tree

7 files changed

+21
-24
lines changed

7 files changed

+21
-24
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2013 Armon Dadgar
3+
Copyright (c) 2013 rogueloop Dadgar
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

README.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,27 @@
1-
go-metrics
2-
==========
1+
# go-metrics
32

43
This library provides a `metrics` package which can be used to instrument code,
54
expose application metrics, and profile runtime performance in a flexible manner.
65

7-
Current API: [![GoDoc](https://godoc.org/github.com/armon/go-metrics?status.svg)](https://godoc.org/github.com/armon/go-metrics)
6+
Current API: [![GoDoc](https://godoc.org/github.com/rogueloop/go-metrics?status.svg)](https://godoc.org/github.com/rogueloop/go-metrics)
87

9-
Sinks
10-
-----
8+
## Sinks
119

1210
The `metrics` package makes use of a `MetricSink` interface to support delivery
1311
to any type of backend. Currently the following sinks are provided:
1412

15-
* StatsiteSink : Sinks to a [statsite](https://github.com/armon/statsite/) instance (TCP)
16-
* StatsdSink: Sinks to a [StatsD](https://github.com/etsy/statsd/) / statsite instance (UDP)
17-
* PrometheusSink: Sinks to a [Prometheus](http://prometheus.io/) metrics endpoint (exposed via HTTP for scrapes)
18-
* InmemSink : Provides in-memory aggregation, can be used to export stats
19-
* FanoutSink : Sinks to multiple sinks. Enables writing to multiple statsite instances for example.
20-
* BlackholeSink : Sinks to nowhere
13+
- StatsiteSink : Sinks to a [statsite](https://github.com/rogueloop/statsite/) instance (TCP)
14+
- StatsdSink: Sinks to a [StatsD](https://github.com/etsy/statsd/) / statsite instance (UDP)
15+
- PrometheusSink: Sinks to a [Prometheus](http://prometheus.io/) metrics endpoint (exposed via HTTP for scrapes)
16+
- InmemSink : Provides in-memory aggregation, can be used to export stats
17+
- FanoutSink : Sinks to multiple sinks. Enables writing to multiple statsite instances for example.
18+
- BlackholeSink : Sinks to nowhere
2119

2220
In addition to the sinks, the `InmemSignal` can be used to catch a signal,
2321
and dump a formatted output of recent metrics. For example, when a process gets
2422
a SIGUSR1, it can dump to stderr recent performance metrics for debugging.
2523

26-
Labels
27-
------
24+
## Labels
2825

2926
Most metrics do have an equivalent ending with `WithLabels`, such methods
3027
allow to push metrics with labels and use some features of underlying Sinks
@@ -34,15 +31,14 @@ Since some of these labels may increase greatly cardinality of metrics, the
3431
library allow to filter labels using a blacklist/whitelist filtering system
3532
which is global to all metrics.
3633

37-
* If `Config.AllowedLabels` is not nil, then only labels specified in this value will be sent to underlying Sink, otherwise, all labels are sent by default.
38-
* If `Config.BlockedLabels` is not nil, any label specified in this value will not be sent to underlying Sinks.
34+
- If `Config.AllowedLabels` is not nil, then only labels specified in this value will be sent to underlying Sink, otherwise, all labels are sent by default.
35+
- If `Config.BlockedLabels` is not nil, any label specified in this value will not be sent to underlying Sinks.
3936

4037
By default, both `Config.AllowedLabels` and `Config.BlockedLabels` are nil, meaning that
4138
no tags are filetered at all, but it allow to a user to globally block some tags with high
4239
cardinality at application level.
4340

44-
Examples
45-
--------
41+
## Examples
4642

4743
Here is an example of using the package:
4844

@@ -88,4 +84,4 @@ When a signal comes in, output like the following will be dumped to stderr:
8884
[2014-01-28 14:57:33.04 -0800 PST][G] 'foo': 42.000
8985
[2014-01-28 14:57:33.04 -0800 PST][P] 'bar': 30.000
9086
[2014-01-28 14:57:33.04 -0800 PST][C] 'baz': Count: 3 Min: 1.000 Mean: 41.000 Max: 80.000 Stddev: 39.509
91-
[2014-01-28 14:57:33.04 -0800 PST][S] 'method.wow': Count: 3 Min: 22.000 Mean: 54.667 Max: 100.000 Stddev: 40.513
87+
[2014-01-28 14:57:33.04 -0800 PST][S] 'method.wow': Count: 3 Min: 22.000 Mean: 54.667 Max: 100.000 Stddev: 40.513

circonus/circonus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ package circonus
55
import (
66
"strings"
77

8-
"github.com/armon/go-metrics"
98
cgm "github.com/circonus-labs/circonus-gometrics"
9+
"github.com/rogueloop/go-metrics"
1010
)
1111

1212
// CirconusSink provides an interface to forward metrics to Circonus with

datadog/dogstatsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66

77
"github.com/DataDog/datadog-go/statsd"
8-
"github.com/armon/go-metrics"
8+
"github.com/rogueloop/go-metrics"
99
)
1010

1111
// DogStatsdSink provides a MetricSink that can be used

datadog/dogstatsd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"reflect"
66
"testing"
77

8-
"github.com/armon/go-metrics"
8+
"github.com/rogueloop/go-metrics"
99
)
1010

1111
var EmptyTags []metrics.Label

prometheus/prometheus.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build go1.9
12
// +build go1.9
23

34
package prometheus
@@ -10,9 +11,9 @@ import (
1011
"sync"
1112
"time"
1213

13-
"github.com/armon/go-metrics"
1414
"github.com/prometheus/client_golang/prometheus"
1515
"github.com/prometheus/client_golang/prometheus/push"
16+
"github.com/rogueloop/go-metrics"
1617
)
1718

1819
var (

prometheus/prometheus_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import (
1515
"github.com/golang/protobuf/proto"
1616
dto "github.com/prometheus/client_model/go"
1717

18-
"github.com/armon/go-metrics"
1918
"github.com/prometheus/client_golang/prometheus"
2019
"github.com/prometheus/common/expfmt"
20+
"github.com/rogueloop/go-metrics"
2121
)
2222

2323
const (

0 commit comments

Comments
 (0)