Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Provide user with way to add meter subregistry to CacheFactory. This approach is an alternative to using MetricsPublishingService with Java's ServiceLoader.
Example:
MeterRegistry prometheusRegistry = new PrometheusMeterRegistry(...); Cache cache = new CacheFactory() .addMeterSubregistry(prometheusRegistry) .create();
The API should also allow the user to add multiple meter subregistries:
MeterRegistry prometheusRegistry = new PrometheusMeterRegistry(...); MeterRegistry influxRegistry = new StatsdMeterRegistry(...); MeterRegistry newRelicRegistry = new NewRelicMeterRegistry(...); Cache cache = new CacheFactory() .addMeterSubregistry(prometheusRegistry) .addMeterSubregistry(influxRegistry) .addMeterSubregistry(newRelicRegistry) .create();
Attachments
Issue Links
- is duplicated by
-
GEODE-6531 Add ability to pass in MeterRegistry when creating Cache
- Closed
- links to