Class MetricsInitializer

java.lang.Object
org.frankframework.statistics.MetricsInitializer
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class MetricsInitializer extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
  • Field Details

    • PARENT_CHILD_NAME_FORMAT

      public static final String PARENT_CHILD_NAME_FORMAT
      See Also:
    • log

      protected org.apache.logging.log4j.Logger log
  • Constructor Details

    • MetricsInitializer

      public MetricsInitializer()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • createCounter

      public io.micrometer.core.instrument.Counter createCounter(@Nonnull IConfigurationAware frankElement, @Nonnull FrankMeterType type)
    • createTimerResource

      public io.micrometer.core.instrument.Timer.ResourceSample createTimerResource(@Nonnull IConfigurationAware frankElement, @Nonnull FrankMeterType type, String... tags)
    • createSubDistributionSummary

      public io.micrometer.core.instrument.DistributionSummary createSubDistributionSummary(@Nonnull IConfigurationAware parentFrankElement, @Nonnull INamedObject subFrankElement, @Nonnull FrankMeterType type)
      This DistributionSummary is suffixed under a pipe
    • createSubDistributionSummary

      public io.micrometer.core.instrument.DistributionSummary createSubDistributionSummary(@Nonnull IConfigurationAware parentFrankElement, @Nonnull String subFrankElement, @Nonnull FrankMeterType type)
    • createDistributionSummary

      public io.micrometer.core.instrument.DistributionSummary createDistributionSummary(@Nonnull IConfigurationAware frankElement, @Nonnull FrankMeterType type)
    • createThreadBasedDistributionSummary

      public io.micrometer.core.instrument.DistributionSummary createThreadBasedDistributionSummary(Receiver<?> receiver, FrankMeterType type, int threadNumber)
    • createGauge

      public io.micrometer.core.instrument.Gauge createGauge(@Nonnull IConfigurationAware frankElement, @Nonnull FrankMeterType type, Supplier<Number> numberSupplier)
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • setMeterRegistry

      public void setMeterRegistry(io.micrometer.core.instrument.MeterRegistry meterRegistry)