You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/03/26 23:57:00 UTC

[jira] [Commented] (GEODE-6558) Provide user with way to add meter subregistry to CacheFactory

    [ https://issues.apache.org/jira/browse/GEODE-6558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16802285#comment-16802285 ] 

ASF subversion and git services commented on GEODE-6558:
--------------------------------------------------------

Commit abbba679666312696b4a9754d08e3d0f19514f49 in geode's branch refs/heads/develop from Kirk Lund
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=abbba67 ]

GEODE-6558: Add addMeterSubregistry to CacheFactory (#3352)

Provides an API to add meter registries to the cache's composite
registry for publishing cache metrics to external monitoring systems.

Include example in javadocs for CacheFactory.addMeterRegistry.

Update the Javadocs of all metrics APIs.

Co-authored-by: Dale Emery <de...@pivotal.io>
Co-authored-by: Kirk Lund <kl...@apache.org>


> Provide user with way to add meter subregistry to CacheFactory
> --------------------------------------------------------------
>
>                 Key: GEODE-6558
>                 URL: https://issues.apache.org/jira/browse/GEODE-6558
>             Project: Geode
>          Issue Type: New Feature
>          Components: statistics
>            Reporter: Kirk Lund
>            Assignee: Kirk Lund
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Provide user with way to add meter subregistry to CacheFactory. This approach is an alternative to using MetricsPublishingService with Java's ServiceLoader.
> Example:
> {noformat}
> MeterRegistry prometheusRegistry = new PrometheusMeterRegistry(...);
> Cache cache = new CacheFactory()
>     .addMeterSubregistry(prometheusRegistry)
>     .create();
> {noformat}
> The API should also allow the user to add multiple meter subregistries:
> {noformat}
> MeterRegistry prometheusRegistry = new PrometheusMeterRegistry(...);
> MeterRegistry influxRegistry = new StatsdMeterRegistry(...);
> MeterRegistry newRelicRegistry = new NewRelicMeterRegistry(...);
> Cache cache = new CacheFactory()
>     .addMeterSubregistry(prometheusRegistry)
>     .addMeterSubregistry(influxRegistry)
>     .addMeterSubregistry(newRelicRegistry)
>     .create();
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)