Class CollectorRegistry


  • public class CollectorRegistry
    extends Object
    A registry of Collectors.

    The majority of users should use the defaultRegistry, rather than instantiating their own.

    Creating a registry other than the default is primarily useful for unittests, or pushing a subset of metrics to the Pushgateway from batch jobs.