Tabnine Logo
HermesMetrics.registerDyingConsumerProcessesCountGauge
Code IndexAdd Tabnine to your IDE (free)

How to use
registerDyingConsumerProcessesCountGauge
method
in
pl.allegro.tech.hermes.common.metric.HermesMetrics

Best Java code snippets using pl.allegro.tech.hermes.common.metric.HermesMetrics.registerDyingConsumerProcessesCountGauge (Showing top 2 results out of 315)

origin: allegro/hermes

public ConsumerProcessSupervisor(ConsumersExecutorService executor,
                 Clock clock,
                 HermesMetrics metrics,
                 ConfigFactory configs,
                 ConsumerProcessSupplier processFactory) {
  this.executor = executor;
  this.clock = clock;
  this.metrics = metrics;
  this.taskQueue = new MonitoredMpscQueue<>(metrics, "signalQueue",
      configs.getIntProperty(Configs.CONSUMER_SIGNAL_PROCESSING_QUEUE_SIZE));
  this.signalsFilter = new SignalsFilter(taskQueue, clock);
  this.runningConsumerProcesses = new RunningConsumerProcesses(clock);
  this.processKiller = new ConsumerProcessKiller(
      configs.getIntProperty(Configs.CONSUMER_BACKGROUND_SUPERVISOR_KILL_AFTER), clock);
  this.processFactory = processFactory;
  metrics.registerRunningConsumerProcessesCountGauge(runningConsumerProcesses::count);
  metrics.registerDyingConsumerProcessesCountGauge(processKiller::countDying);
}
origin: pl.allegro.tech.hermes/hermes-consumers

public ConsumerProcessSupervisor(ConsumersExecutorService executor,
                 Clock clock,
                 HermesMetrics metrics,
                 ConfigFactory configs,
                 ConsumerProcessSupplier processFactory) {
  this.executor = executor;
  this.clock = clock;
  this.metrics = metrics;
  this.taskQueue = new MonitoredMpscQueue<>(metrics, "signalQueue",
      configs.getIntProperty(Configs.CONSUMER_SIGNAL_PROCESSING_QUEUE_SIZE));
  this.signalsFilter = new SignalsFilter(taskQueue, clock);
  this.runningConsumerProcesses = new RunningConsumerProcesses(clock);
  this.processKiller = new ConsumerProcessKiller(
      configs.getIntProperty(Configs.CONSUMER_BACKGROUND_SUPERVISOR_KILL_AFTER), clock);
  this.processFactory = processFactory;
  metrics.registerRunningConsumerProcessesCountGauge(runningConsumerProcesses::count);
  metrics.registerDyingConsumerProcessesCountGauge(processKiller::countDying);
}
pl.allegro.tech.hermes.common.metricHermesMetricsregisterDyingConsumerProcessesCountGauge

Popular methods of HermesMetrics

  • counter
  • meter
  • timer
  • consumerErrorsOtherMeter
  • escapeDots
  • latencyTimer
  • registerGauge
  • consumerErrorsTimeoutMeter
  • consumersWorkloadRebalanceDurationTimer
  • decrementInflightCounter
  • incrementInflightCounter
  • inflightTimeHistogram
  • incrementInflightCounter,
  • inflightTimeHistogram,
  • maxRateFetchFailuresCounter,
  • oAuthProviderLatencyTimer,
  • oAuthSubscriptionTokenRequestMeter,
  • rateHistoryFailuresCounter,
  • registerConsumerHttpAnswer,
  • registerConsumersThreadGauge,
  • registerMaxRateGauge

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now