client_golang/prometheus
beorn7 606b8f85e5 - Point from Inc and Dec to Add and Sub in doc comments.
- Deprecate Untyped for direct instrumentation.

- Add a SetToCurrentTime method to Gauge

Note that adding the SetToCurrentTime method is not really following
Go's principle of lean interfaces. However, the Gauge interface is
already quite fat. (The only methods really required are Set and
Add. Everything else could be expressed in terms of those two.) So we
have already quite a few "convenience" methods traditionally, so I
think we should stay consistent here.

The alternatives would be:

- Not support SetToCurrentTime at all (it's only a SHOULD in the
  guidelines).

- A top level function `SetToCurrentTime(Gauge)`.

- Just a helper `CurrentTime()` that returns the curent unix time in
  seconds as a float (which is pretty verbose using the standard
  library, see code in this commit). This would allow
  `myGauge.Set(CurrentTime)`.

Weighing all circumstances, I believe the way in this commit is the
least evil. Issue #223 could be used to rework interfaces more
fundamentally in a breaking change if feasible.
2016-11-18 19:32:10 +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 Remove local REs for label and metric names and use fast checks 2016-11-11 16:59:23 +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
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
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.