client_golang/prometheus
Bjoern Rabenstein bf1f4e4a24 Make TestCounterAddLarge more robust
The previous `float64(math.MaxUint64 + 1)` is too close to
`float64(math.MaxUint64)` to actually overflow as indended.

The counter code is actually converting forward and backward and
compare the original and twice-converted value. On most platform, this
will create a deviation and thus trigger the expected behavior. By
sheer "luck", one might end up with the same value and thus still use
the uint64 representation. Which is OK within the precision we can
expect. But it breaks the test. With this change, the next
representable floating point value greater than the floating point
value used to represent math.MaxUint64 is used.

Signed-off-by: Bjoern Rabenstein <bjoern@rabenste.in>
2019-05-03 22:25:32 +02:00
..
graphite *: replace golang.org/x/net/context by context 2019-04-09 15:10:51 +02:00
internal Create an internal package 2018-09-03 00:18:11 +02:00
promauto promauto: add NewCounterFunc and NewGaugeFunc 2018-03-17 14:01:36 -07:00
promhttp Increase minimum required Go version to 1.9 2019-04-28 23:28:57 +02:00
push fix(push): incorporate changes from review 2019-02-24 15:15:35 -08:00
testutil Revert "Fix tests to adhere to the recent change in prometheus/common" 2019-01-27 23:18:44 +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 Add a benchmark for concurrent counter increments 2018-01-19 15:15:10 -08:00
collector.go fix typo 2019-01-04 21:14:10 +01:00
collector_test.go Add a DescribeByCollect helper 2018-09-05 14:10:51 +02:00
counter.go Remove fmt from import 2018-11-02 09:21:12 -07:00
counter_test.go Make TestCounterAddLarge more robust 2019-05-03 22:25:32 +02:00
desc.go Update the label is not valid error message to include the fqName 2018-11-19 16:51:57 -08:00
desc_test.go Add missing license headers 2018-08-22 13:53:56 +02:00
doc.go Fix some spelling errors (#523) 2018-12-30 21:31:21 +01:00
example_clustermanager_test.go Nitpicking a doc comment 2018-11-20 13:41:38 +01:00
example_timer_complex_test.go fix spelling typo 2017-08-28 08:57:51 +08: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 Update the ExampleRegister test 2018-11-02 09:46:03 -07: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 Simplify if expr in ExampleNewExpvarCollector() 2018-04-13 23:23:52 +02:00
fnv.go Add missing license headers 2018-08-22 13:53:56 +02:00
gauge.go Update code based on the PR feedback 2018-11-02 09:01:14 -07:00
gauge_test.go Iterate on a proposed performance improvement for counters 2018-01-19 19:06:43 +01:00
go_collector.go Add missing license headers 2018-08-22 13:53:56 +02:00
go_collector_test.go Add missing license headers 2018-08-22 13:53:56 +02:00
histogram.go Fix some comment and naming nits as leftover from #536 2019-02-11 18:52:52 +01:00
histogram_test.go fix exponential buckets failure message 2018-09-25 17:42:06 -06:00
http.go Add .golangci.yml 2019-04-25 10:38:07 +02:00
http_test.go Fix three shadow variable warnings (govet -shadow) 2018-04-13 23:25:14 +02:00
labels.go Update code based on the PR feedback 2018-11-02 09:01:14 -07:00
metric.go Make Help strings optional 2018-09-17 12:07:31 +02:00
metric_test.go Change "Prometheus Team" to "The Prometheus Authors". 2015-02-02 15:14:36 +01:00
observer.go Pull currying methods up into ObserverVec interface 2017-12-22 16:11:58 +01:00
process_collector.go Rework process collector 2018-09-07 12:09:26 +02:00
process_collector_test.go Rework process collector 2018-09-07 12:09:26 +02:00
registry.go Fix doc comment typo 2018-12-18 16:30:34 +01:00
registry_test.go Revert "Fix tests to adhere to the recent change in prometheus/common" 2019-01-27 23:18:44 +01:00
summary.go Port histogram improvements into noObjectivesSummary 2019-02-11 19:10:17 +01:00
summary_test.go Provide lock-free implementation for Summary without objectives 2018-12-24 11:23:13 +01:00
timer.go Return observed duration from Timer.ObserveDuration 2018-12-03 21:10:34 +01:00
timer_test.go new handler instrumentation (#285) 2017-04-24 15:13:19 -04:00
untyped.go Remove the deprecated uses of Untyped metrics 2017-08-29 17:31:45 +02:00
value.go Let NewConst... functions detect invalid Desc 2018-09-17 11:50:42 +02:00
value_test.go Add missing license headers 2018-08-22 13:53:56 +02:00
vec.go Fix unprotected write in metricMap 2018-04-09 10:10:15 -04:00
vec_test.go Allow currying of metric vec's 2017-12-22 15:56:11 +01:00
wrap.go Discourage prefixing every metris with WrapRegistererWithPrefix 2018-09-14 11:59:13 +02:00
wrap_test.go fix: fix a typo 2019-05-01 17:50:23 +08:00

README.md

See go-doc.