client_golang/prometheus
beorn7 14730c70c0 promhttp: Bite the bullet and implement all 32 possible interface combos
As it turned out, it's not that esay to guess "common" combination of
interface upgrades. So I decided to just implement all 32 possible
combination of interface upgrades. (Only 16 with Go 1.7 and earlier.)

Clearly, this calls for code generation. But right now, we still need
to find out what's the best form of the code. For later additions,
implementing code generation might be useful.

Note that newDelegator is called for each HTTP request. Thus, this
commit aims to make the upgrade selection quick. (After the type
checks, it's just directly accessing an element in a slice.)
2017-06-02 19:03:08 +02:00
..
graphite graphite: Adjust ExtractSamples call to new interface 2017-01-08 20:55:34 +01:00
promhttp promhttp: Bite the bullet and implement all 32 possible interface combos 2017-06-02 19:03:08 +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 Allow Summaries with empty objectives and deprecate DefObjectives 2016-11-23 18:35:02 +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 Import "log", it is required for log.Fatal(... (#305) 2017-05-31 15:00:54 +02:00
example_clustermanager_test.go Fix a number of doc comments and similar nits 2016-08-03 12:23:37 +02:00
example_timer_complex_test.go Improve timer examples 2016-11-21 19:16:56 +01:00
example_timer_gauge_test.go Fix invalid Timer (gauge) example 2017-02-28 11:13:17 -04:00
example_timer_test.go Change the Timer API 2016-11-18 20:32:18 +01:00
examples_test.go Allow Summaries with empty objectives and deprecate DefObjectives 2016-11-23 18:35:02 +01: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 Adding GCCPUFraction metric to goCollector 2017-02-22 17:26:08 +01:00
go_collector_test.go goCollector: change goroutines and treads type 2017-02-15 13:06:22 +08:00
histogram.go new handler instrumentation (#285) 2017-04-24 15:13:19 -04:00
histogram_test.go new handler instrumentation (#285) 2017-04-24 15:13:19 -04:00
http.go Point to promhttp in deprecation notices 2017-05-09 18:54:33 +02:00
http_test.go Allow Summaries with empty objectives and deprecate DefObjectives 2016-11-23 18:35:02 +01: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
observer.go new handler instrumentation (#285) 2017-04-24 15:13:19 -04: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 Fix typo 2017-02-23 10:28:41 +01:00
registry_test.go Remove deprecated features that are esay to replace 2016-10-25 18:28:15 +02:00
summary.go new handler instrumentation (#285) 2017-04-24 15:13:19 -04:00
summary_test.go new handler instrumentation (#285) 2017-04-24 15:13:19 -04:00
timer.go new handler instrumentation (#285) 2017-04-24 15:13:19 -04:00
timer_test.go new handler instrumentation (#285) 2017-04-24 15:13:19 -04: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 Fix typo 2017-03-22 21:29:18 +08: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.