client_golang/prometheus
beorn7 9c3fe750dd Expose the registry implementation and add two interfaces.
Registry is now a struct, which implements two interfaces, Registrerer
and Deliverer. The latter is particularly important as it is now the
argument type for pushes and HTTP handler construction (i.e. it is
easy to implement a custom Deliverer for testing or other
purposes). The Registerer interface is not used as a parameter type
but can (and should) be used by users of custom registries so that
they can easily do things like mocking it out for testing purposes.

With the broken up interfaces, adding MustRegister to the interface is
not such a big deal anymore (interface is still small). And since
setting the injection hook is such a rare thing to happen, it is
acceptable to not have it in any of the interfaces.

The renaming from `Collect` to `Deliver` was done to avoid confusion
with Collectors. (The registry _collects_ from the Collectors, and
then _delivers_ to the exposition mechanism.)
2016-08-03 01:02:34 +02:00
..
push Expose the registry implementation and add two interfaces. 2016-08-03 01:02:34 +02: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 Expose the registry implementation and add two interfaces. 2016-08-03 01:02:34 +02:00
counter.go Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
counter_test.go Use non-rewritten Godep imports. 2015-02-27 16:49:40 +01:00
desc.go Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
doc.go Expose the registry implementation and add two interfaces. 2016-08-03 01:02:34 +02:00
example_clustermanager_test.go Expose the registry implementation and add two interfaces. 2016-08-03 01:02:34 +02:00
example_selfcollector_test.go Use non-rewritten Godep imports. 2015-02-27 16:49:40 +01:00
examples_test.go Expose the registry implementation and add two interfaces. 2016-08-03 01:02:34 +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 Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
fnv.go use local fnv hash everywhere 2015-11-12 14:07:23 +01:00
gauge.go Inline hash/fnv. 2015-11-09 15:16:26 +01:00
gauge_test.go Use non-rewritten Godep imports. 2015-02-27 16:49:40 +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 Inline hash/fnv. 2015-11-09 15:16:26 +01:00
histogram_test.go Inline hash/fnv. 2015-11-09 15:16:26 +01:00
http.go Expose the registry implementation and add two interfaces. 2016-08-03 01:02:34 +02:00
http_test.go Expose the registry implementation and add two interfaces. 2016-08-03 01:02:34 +02:00
metric.go Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
metric_test.go Change "Prometheus Team" to "The Prometheus Authors". 2015-02-02 15:14:36 +01:00
pool.go Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
process_collector.go Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
process_collector_test.go Expose the registry implementation and add two interfaces. 2016-08-03 01:02:34 +02:00
registry.go Expose the registry implementation and add two interfaces. 2016-08-03 01:02:34 +02:00
registry_test.go Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
summary.go Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
summary_test.go Create a public registry interface and separate out HTTP exposition 2016-08-02 18:46:22 +02:00
untyped.go Inline hash/fnv. 2015-11-09 15:16:26 +01:00
value.go Ensure alignment of struct members used in sync.atomic functions. 2015-05-21 12:19:38 +02:00
vec.go try getting metrics with a read lock, first 2015-11-09 15:16:26 +01:00
vec_test.go Inline hash/fnv. 2015-11-09 15:16:26 +01:00

README.md

See go-doc.