Commit Graph

19 Commits

Author SHA1 Message Date
Spencer Gibb
860d7b8446 Log warning if ServoMonitorCache size exceeds threshold.
Fixes gh-947
2016-05-02 12:27:33 -06:00
Dave Syer
24579f67e2 Revert to snapshots 2016-04-18 14:07:42 +01:00
Dave Syer
d99196aeb1 Update to RC2 2016-04-18 14:02:49 +01:00
Marcin Grzejszczak
3f9e76b876 Revert to snapshots 2016-03-23 12:43:41 +01:00
Marcin Grzejszczak
29988b5f58 Bump for 1.1.0.RC1 2016-03-23 12:38:05 +01:00
Dave Syer
443406f75f Revert to snapshots 2016-02-05 07:24:05 +00:00
Dave Syer
61ef6dd511 Update to 1.1.0.M5 2016-02-05 07:23:28 +00:00
Brian Harrington
63b0c8c67d fix registration bug in SpectatorMetricServices
The primary change is to fix a memory leak reported in
Netflix/spectator#264. Each time a gauge was updated it
was creating a new registration and because the map holds
a strong reference these would never get collected.
Further, the aggregate value created by the multiple
registrations was not correct.

In addition I added some test cases around the various
inputs and checked that the results were reflected as
expected in the registry. I noticed the timer values
had a unit of milliseconds, but it isn't immediately
clear if the reported value can ever less than 1.0. The
conversion to long is now delayed until after converting
to nanoseconds so duration values less than 1.0 will now
work instead of just recording 0.

For the histogram I changed to just using a cast to `long`
to avoid boxing to a `Double`. As an FYI for the future,
there is a DoubleDistributionSummary we have experimented
with in spectator-ext-sandbox that might be more appropriate
for this use-case.
2016-02-01 12:20:01 -07:00
Jon Schneider
af5c2360ea Servo and Spectator metrics defer to other Counter/GaugeService implementations 2015-12-28 14:31:10 -06:00
Spencer Gibb
8938aa4621 Revert "Update SNAPSHOT to MILESTONE 1.1.0.M4"
This reverts commit 721fdc5918.
2015-12-22 11:25:47 -07:00
Spencer Gibb
721fdc5918 Update SNAPSHOT to MILESTONE 1.1.0.M4 2015-12-22 11:21:20 -07:00
Spencer Gibb
a61c18c69c polish 2015-12-18 10:50:31 -07:00
Jon Schneider
33d651847d Deconflict GaugeService provided by Servo/Spectator integration 2015-12-18 09:07:41 -08:00
Jon Schneider
1cd363f33f Add Servo metric poller and @EnableAtlas test 2015-12-15 23:20:07 -08:00
Dave Syer
06b50c9fe0 Revert to snapshots 2015-11-17 12:27:43 +00:00
Dave Syer
05f75e70da Update to 1.1.0.M3 2015-11-17 12:27:01 +00:00
Jon Schneider
7bf6a85bd3 Fix flaky Servo tests by avoiding DefaultMonitorRegistry 2015-11-10 09:20:37 -07:00
Spencer Gibb
679e659cbc remove findbugs 2015-11-10 09:03:41 -07:00
Jon Schneider
c61a48735d Expanded metrics support to include Servo, Spectator, and Atlas
* For Java 8 users, Spectator is the recommended metrics library as Servo is now deprecated in favor of Spectator
* Servo support now needs to be specifically enabled via @EnableServo, even if servo-core is included on the classpath
* Added starter modules for both Spectator and Atlas support
* ServoMetricReader defines a convention for mapping tag-based metrics to hiearchical names for rendering by the Actuator /metrics endpoint
2015-11-09 14:10:44 -07:00