client_golang/prometheus
beorn7 89ca0458cb Change the Timer API
This finally makes the (presumably) common simple case as simple as it
gets.

The still quite common (but less common) case of using a Gauge is
slightly more verbose now, but not needing to provide a separate
constructor is totally worth it.

Finally, the advanced use case is not really more verbose as in my
original suggestion. However, the logic to decide which Observer to
use is now all in the ObserverFunc handed in at construction
time. This is deliberate and desired. It makes sure the selection
mechanism is all spelled out there. No surprises buried deep in the
function code somewhere.
2016-11-18 20:32:18 +01:00
..
graphite Graphite bridge (#244) 2016-11-14 14:43:07 +01:00
promhttp Fix doc comment typo 2016-08-15 15:54:18 +02:00
push Extend the example for pushing to pushgateway 2016-11-18 20:22:35 +01:00
.gitignore Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
README.md Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
benchmark_test.go concurrency benchmark 2015-11-09 14:34:37 +01:00
collector.go Fix a number of doc comments and similar nits 2016-08-03 12:23:37 +02:00
counter.go - Point from Inc and Dec to Add and Sub in doc comments. 2016-11-18 19:32:10 +01:00
counter_test.go Use non-rewritten Godep imports. 2015-02-27 16:49:40 +01:00
desc.go Remove local REs for label and metric names and use fast checks 2016-11-11 16:59:23 +01:00
doc.go [docs] enhanced the basic example 2016-11-02 10:48:36 +01:00
example_clustermanager_test.go Fix a number of doc comments and similar nits 2016-08-03 12:23:37 +02:00
example_timer_batch_test.go Change the Timer API 2016-11-18 20:32:18 +01:00
example_timer_complex_test.go Change the Timer API 2016-11-18 20:32:18 +01:00
example_timer_test.go Change the Timer API 2016-11-18 20:32:18 +01:00
examples_test.go Add goreport card and remove warnings where feasible 2016-09-16 19:59:04 +02:00
expvar_collector.go Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
expvar_collector_test.go Add goreport card and remove warnings where feasible 2016-09-16 19:59:04 +02:00
fnv.go use local fnv hash everywhere 2015-11-12 14:07:23 +01:00
gauge.go - Point from Inc and Dec to Add and Sub in doc comments. 2016-11-18 19:32:10 +01:00
gauge_test.go - Point from Inc and Dec to Add and Sub in doc comments. 2016-11-18 19:32:10 +01:00
go_collector.go Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
go_collector_test.go Fix minor typos in comment. 2015-08-17 12:58:16 +02:00
histogram.go Bring back zero-alloc label-value access for metric vecs 2016-08-17 14:01:11 +02:00
histogram_test.go Adding a test for non-monotonic buckets 2016-10-17 13:57:02 +02:00
http.go Remove deprecated features that are esay to replace 2016-10-25 18:28:15 +02:00
http_test.go Remove deprecated features that are esay to replace 2016-10-25 18:28:15 +02:00
metric.go Create a "merge gatherer" 2016-08-12 21:34:17 +02:00
metric_test.go Change "Prometheus Team" to "The Prometheus Authors". 2015-02-02 15:14:36 +01:00
process_collector.go Fix namespace of process collector metrics 2016-11-02 14:09:24 -04:00
process_collector_test.go Fix namespace of process collector metrics 2016-11-02 14:09:24 -04:00
registry.go Remove deprecated features that are esay to replace 2016-10-25 18:28:15 +02:00
registry_test.go Remove deprecated features that are esay to replace 2016-10-25 18:28:15 +02:00
summary.go Bring back zero-alloc label-value access for metric vecs 2016-08-17 14:01:11 +02:00
summary_test.go Add goreport card and remove warnings where feasible 2016-09-16 19:59:04 +02:00
timer.go Change the Timer API 2016-11-18 20:32:18 +01:00
timer_test.go Change the Timer API 2016-11-18 20:32:18 +01:00
untyped.go - Point from Inc and Dec to Add and Sub in doc comments. 2016-11-18 19:32:10 +01:00
value.go - Point from Inc and Dec to Add and Sub in doc comments. 2016-11-18 19:32:10 +01:00
vec.go Bring back zero-alloc label-value access for metric vecs 2016-08-17 14:01:11 +02:00
vec_test.go Add goreport card and remove warnings where feasible 2016-09-16 19:59:04 +02:00

README.md

See go-doc.