Bjoern Rabenstein
7cf0955421
Handle long ReadMemStats duration in Go collector
...
tl;dr: Return previous memstats if reading new ones takes longer than
1s.
See the doc comment of NewGoCollector for details.
Signed-off-by: beorn7 <bjoern@rabenste.in>
2019-05-06 23:28:31 +02:00
beorn7
547c945a62
Replace fmt.Sprintf by simple concatenation
...
In this simple case, it's the fastest and easiest.
Signed-off-by: beorn7 <bjoern@rabenste.in>
2019-05-06 23:28:31 +02:00
beorn7
016273b1f9
Fix and tweak Go collector tests
...
Signed-off-by: beorn7 <bjoern@rabenste.in>
2019-05-06 23:28:31 +02:00
Björn Rabenstein
f1d50bcc55
Merge pull request #559 from nghialt/master
...
Add HTTPClient interface to Pusher struct
2019-05-06 01:31:30 +02:00
NghiaLT
6ea6f07918
Replace HTTPClient with HTTPDoer; Update document accordingly
...
Signed-off-by: NghiaLT <nghialt.11@gmail.com>
2019-05-06 04:28:14 +07:00
Björn Rabenstein
19d9302912
Merge pull request #569 from prometheus/makefile_common
...
Synchronize Makefile.common from prometheus/prometheus
2019-05-04 19:25:12 +02:00
Björn Rabenstein
906d2976cb
Merge pull request #567 from prometheus/beorn7/counter
...
Make TestCounterAddLarge more robust
2019-05-04 18:08:04 +02:00
Björn Rabenstein
e11546c7ec
Merge pull request #566 from prometheus/beorn7/go-requirement
...
Remove remaining traces of pre-go-1.8 handling
2019-05-04 18:06:53 +02:00
prombot
da0c9e549a
makefile: update Makefile.common with newer version
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2019-05-04 00:00:58 +00:00
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
Bjoern Rabenstein
57f7bd35fd
Remove remaining traces of pre-go-1.8 handling
...
Signed-off-by: Bjoern Rabenstein <bjoern@rabenste.in>
2019-05-03 21:30:30 +02:00
Björn Rabenstein
6aba2189eb
Merge pull request #564 from KevinBetterQ/fix-misspell
...
fix: fix a typo
2019-05-02 00:05:34 +02:00
KevinBetterQ
a325fb7566
fix: fix a typo
...
Signed-off-by: KevinBetterQ <1093850932@qq.com>
2019-05-01 17:50:23 +08:00
Thomas Jackson
3f6cbd9560
Remove encode of params in query before DoGetFallback ( #563 )
...
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2019-05-01 09:28:05 +03:00
Thomas Jackson
a4daf0098c
Implement POST with get fallback for Query/QueryRange ( #557 )
...
* Implement POST with get fallback for Query/QueryRange
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2019-04-30 10:13:48 +03:00
Björn Rabenstein
f951755f07
Merge pull request #561 from prometheus/beorn7/go-requirement
...
Increase minimum required Go version to 1.9
2019-04-29 15:00:59 +02:00
Bjoern Rabenstein
1173d73405
Increase minimum required Go version to 1.9
...
This allows us to simplify a bunch of code while still supporting the
last four Go minor versions.
We have also run into minor annoyances a couple of times by now to
keep supporting 1.7 and 1.8.
It's time to pull the plug!
Signed-off-by: Bjoern Rabenstein <bjoern@rabenste.in>
2019-04-28 23:28:57 +02:00
NghiaLT
c9d77912ac
Add HTTPClient interface to Pusher struct
...
Signed-off-by: NghiaLT <nghialt.11@gmail.com>
2019-04-26 16:53:21 +07:00
Björn Rabenstein
deade0365a
Merge pull request #558 from prometheus/makefile_common
...
Synchronize Makefile.common from prometheus/prometheus
2019-04-25 12:40:51 +02:00
Simon Pasquier
6894bb3c7c
Add .golangci.yml
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2019-04-25 10:38:07 +02:00
prombot
53800fb9d3
makefile: update Makefile.common with newer version
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2019-04-25 00:00:38 +00:00
Björn Rabenstein
65d3a96fba
Merge pull request #556 from prometheus/makefile_common
...
Synchronize Makefile.common from prometheus/prometheus
2019-04-16 10:58:48 +02:00
prombot
9a98fd8405
makefile: update Makefile.common with newer version
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2019-04-16 00:00:39 +00:00
Björn Rabenstein
b8ed8f100e
Merge pull request #555 from prometheus/beorn7/modules
...
Update dependencies
2019-04-15 13:21:11 +02:00
Bjoern Rabenstein
2d69188b26
Update dependencies
...
Mostly to use the new module support for prometheus/common and
beorn7/perks.
Signed-off-by: Bjoern Rabenstein <bjoern@rabenste.in>
2019-04-15 00:16:44 +02:00
Björn Rabenstein
5a3ec6a883
Merge pull request #554 from prometheus/makefile_common
...
Synchronize Makefile.common from prometheus/prometheus
2019-04-12 02:37:33 +02:00
prombot
deac34f26f
makefile: update Makefile.common with newer version
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2019-04-12 00:00:36 +00:00
Björn Rabenstein
8b8c870c30
Merge pull request #553 from simonpasquier/remove-x-net-context
...
*: replace golang.org/x/net/context by context
2019-04-10 00:42:05 +02:00
Simon Pasquier
15da21f1e4
*: replace golang.org/x/net/context by context
...
The context package is available since Go 1.7 which is the minimal version
supported by client_golang.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2019-04-09 15:10:51 +02:00
Roald Nefs
7490f0a745
Add alerts endpoint to API client ( #552 )
...
Add alerts endpoint to API client. The alerts endpoint returns a list of all active alerts.
Signed-off-by: Roald Nefs <info@roaldnefs.com>
2019-03-25 10:23:28 +02:00
Björn Rabenstein
fa4aa9000d
Merge pull request #548 from simonpasquier/update-makefilecommon
...
Update Makefile.common
2019-03-13 12:21:43 +01:00
Simon Pasquier
a2c4da068f
Update Makefile.common
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2019-03-13 09:43:07 +01:00
Björn Rabenstein
c5e14697ea
Merge pull request #544 from s-urbaniak/observe-example
...
prometheus/promhttp: actually observe values in trace in example
2019-03-07 15:53:37 +01:00
Sergiusz Urbaniak
60728f445d
prometheus/promhttp: actually observe values in trace in example
...
This is similar to
https://github.com/prometheus/client_golang/pull/535 fixing ExampleInstrumentRoundTripperDuration.
Signed-off-by: Sergiusz Urbaniak <sergiusz.urbaniak@gmail.com>
2019-03-06 13:59:53 +01:00
Björn Rabenstein
9a369d2d38
Merge pull request #541 from simonpasquier/add-go-1.12
...
Add Go 1.12 to Travis CI
2019-03-05 14:46:41 +01:00
Simon Pasquier
e490cf5202
Add Go 1.12 to Travis CI
...
Also update to the latest version of Makefile.common.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2019-03-04 14:17:42 +01:00
Björn Rabenstein
2daed26f63
Merge pull request #540 from FrankSpitulski/feat/push/add-format-parameter
...
feat(push): add format builder option
2019-02-25 13:35:56 +01:00
Frank Spitulski
10e34c668f
fix(push): incorporate changes from review
...
Signed-off-by: Frank Spitulski <fspituls@ucsd.edu>
2019-02-24 15:15:35 -08:00
Frank Spitulski
7b127b3fe5
feat(push): add format builder option
...
Allow users to specify which format the pusher should push in.
Signed-off-by: Frank Spitulski <fspituls@ucsd.edu>
2019-02-24 12:51:45 -08:00
beorn7
4c99dd6630
Port histogram improvements into noObjectivesSummary
...
Signed-off-by: beorn7 <beorn@soundcloud.com>
2019-02-11 19:10:17 +01:00
beorn7
295f7e4861
Fix some comment and naming nits as leftover from #536
...
Signed-off-by: beorn7 <beorn@soundcloud.com>
2019-02-11 18:52:52 +01:00
Pascal S. de Kloe
19ff277483
Save memory on histograms: slightly faster with less code ( #536 )
...
Use the highest bit for buffer switch tracking in histograms
Signed-off-by: Pascal S. de Kloe <pascal@quies.net>
2019-02-11 18:29:02 +01:00
Björn Rabenstein
df7545b48d
Merge pull request #538 from prometheus/beorn7/ci
...
Pull in new Makefile.common from prometheus/prometheus
2019-02-11 16:30:49 +01:00
beorn7
069235ab8c
Pull in new Makefile.common from prometheus/prometheus
...
This should fix the currently broken Travis builds for Go versions
before 1.11.
Signed-off-by: beorn7 <beorn@soundcloud.com>
2019-02-11 16:24:22 +01:00
Björn Rabenstein
7190de1ef2
Merge pull request #535 from kklipsch/client_example_fix
...
fix client trace examples to actually capture metrics
2019-02-05 00:33:00 +01:00
kklipsch
a11607d7ae
fix client trace examples to actually capture metrics
...
Signed-off-by: kklipsch <kklipsch@example.com>
2019-02-04 20:30:19 +00:00
Louis DeLosSantos
12af604cf2
wait for done before writing to shared resp body ( #532 )
...
Signed-off-by: Louis Delossantos <ldelossa.ld@gmail.com>
2019-01-28 11:53:16 +03:00
Björn Rabenstein
fc06704084
Merge pull request #533 from prometheus/beorn7/vendoring
...
Re-adjust to the old float formatting in prometheus/common
2019-01-28 00:02:28 +01:00
beorn7
8785922956
Revert "Fix tests to adhere to the recent change in prometheus/common"
...
This reverts commit 2c9811f88e
.
This is necessary because the changes in prometheus/common got reverted.
Signed-off-by: beorn7 <beorn@soundcloud.com>
2019-01-27 23:18:44 +01:00
beorn7
3c4408c8b8
Update dependencies
...
This includes the infamous rollback of prometheus/common
Signed-off-by: beorn7 <beorn@soundcloud.com>
2019-01-27 23:13:11 +01:00