-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix entry count metric for lookup caches (#4558)
* Fix entry count metric for lookup caches The way the `LookupCache#entryCount()` method was defined, caused implementers to write incorrect implementations. For example `GuavaLookupCache#entryCount()` returned a constant `Gauge<Long>` on the first call (in the constructor of `LookupCache`) which was never updated. Additionally, the `CacheTableEntry` tried to access the entry count metric through an invalid object path which resulted in the metric always being displayed as "NaN" in the web interface. Fixes #4540 * Make entry count Gauge compatible with Graylog 2.4.x Refs #4499 Refs #4541 (cherry picked from commit 0ddbeac)
- Loading branch information
Showing
3 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters