Interface MetricsRenderer

  • All Superinterfaces:
    io.micrometer.core.instrument.binder.MeterBinder
    All Known Implementing Classes:
    MetricsBinderRendererAdapter

    public interface MetricsRenderer
    extends io.micrometer.core.instrument.binder.MeterBinder
    An updatedable MeterBinder that allows updates of metrics beyond MeterBinder.bindTo(MeterRegistry) This allows encapsulation of logic for doing things like calling Counter.increment()
    Author:
    Adam Gibson
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      MetricsConfig config()
      The configuration for the metrics
      void updateMetrics​(java.lang.Object... args)
      Updates the metrics based on given arguments.
      • Methods inherited from interface io.micrometer.core.instrument.binder.MeterBinder

        bindTo
    • Method Detail

      • config

        MetricsConfig config()
        The configuration for the metrics
        Returns:
      • updateMetrics

        void updateMetrics​(java.lang.Object... args)
        Updates the metrics based on given arguments.
        Parameters:
        args -