Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-6558

Provide user with way to add meter subregistry to CacheFactory

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0
    • statistics
    • 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

          Activity

            People

              klund Kirk Lund
              klund Kirk Lund
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m