Interface MetricsSettings.Builder

    • Field Detail

      • ENABLED_CONFIG_KEY

        static final String ENABLED_CONFIG_KEY
        Config key within the config metrics section controlling whether metrics are enabled.
        See Also:
        Constant Field Values
      • METRICS_CONFIG_KEY

        static final String METRICS_CONFIG_KEY
        The config key containing settings for all of metrics.
        See Also:
        Constant Field Values
      • BASE_CONFIG_KEY

        static final String BASE_CONFIG_KEY
        Config key within the config metrics section controlling the base registry.
        See Also:
        Constant Field Values
      • REGISTRIES_CONFIG_KEY

        static final String REGISTRIES_CONFIG_KEY
        Config key within the config metrics section containing settings for individual registries.
        See Also:
        Constant Field Values
      • EXEMPLARS_STRICT_CONFIG_KEY

        static final String EXEMPLARS_STRICT_CONFIG_KEY
        Config key within metrics for strict (vs. lax) exemplar behavior.
        See Also:
        Constant Field Values
    • Method Detail

      • enabled

        MetricsSettings.Builder enabled​(boolean value)
        Sets whether metrics should be enabled.
        Parameters:
        value - true if metrics should be enabled; false if not
        Returns:
        updated builder
      • config

        MetricsSettings.Builder config​(Config config)
        Updates the builder using the provided metrics config.
        Parameters:
        config - the component's or the overall metrics config from the configuration
        Returns:
        updated builder
      • baseMetricsSettings

        MetricsSettings.Builder baseMetricsSettings​(BaseMetricsSettings.Builder baseMetricsSettingsBuilder)
        Set the base metrics settings.
        Parameters:
        baseMetricsSettingsBuilder - base metrics settings to use
        Returns:
        updated builder
      • registrySettings

        MetricsSettings.Builder registrySettings​(MetricRegistry.Type registryType,
                                                 RegistrySettings registrySettings)
        Sets the registry settings for the specified registry type.
        Parameters:
        registryType - type of registry for which to assign settings
        registrySettings - assigned registry settings
        Returns:
        updated builder