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

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

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

origin: allegro/hermes

  private String metricPath(String pattern, TopicName topicName) {
    return String.format(pattern, metricsPaths.prefix(), escapeDots(topicName.getGroupName()), escapeDots(topicName.getName()));
  }
}
origin: allegro/hermes

private String subscriptionNameToPath(SubscriptionName name) {
  return String.format(SUBSCRIPTION_PATH,
      escapeDots(name.getTopicName().getGroupName()), name.getTopicName().getName(), escapeDots(name.getName())
  );
}
origin: allegro/hermes

private void registerLatencyPerBrokerGauge(Producer<byte[], byte[]> producer,
                      HermesMetrics metrics,
                      String metricName,
                      String producerName,
                      Node node) {
  String gauge = Gauges.JMX_PREFIX + "." + producerName + "-" + metricName + "." + escapeDots(node.host());
  registerGauge(producer, metrics, gauge,
      entry -> entry.getKey().group().equals("producer-node-metrics")
          && entry.getKey().name().equals(metricName)
          && entry.getKey().tags().containsValue("node-" + node.id()));
}
origin: allegro/hermes

public Meter oAuthSubscriptionTokenRequestMeter(Subscription subscription, String oAuthProviderName) {
  PathContext pathContext = pathContext()
      .withGroup(escapeDots(subscription.getTopicName().getGroupName()))
      .withTopic(escapeDots(subscription.getTopicName().getName()))
      .withSubscription(escapeDots(subscription.getName()))
      .withOAuthProvider(escapeDots(oAuthProviderName))
      .build();
  return metricRegistry.meter(pathCompiler.compile(Meters.OAUTH_SUBSCRIPTION_TOKEN_REQUEST, pathContext));
}
origin: allegro/hermes

private String metricRegistryName(String metricDisplayName, TopicName topicName, String subscription) {
  PathContext pathContext = PathContext.pathContext()
      .withGroup(escapeDots(topicName.getGroupName()))
      .withTopic(escapeDots(topicName.getName()))
      .withSubscription(escapeDots(subscription))
      .build();
  return pathCompiler.compile(metricDisplayName, pathContext);
}
origin: allegro/hermes

public Timer oAuthProviderLatencyTimer(String oAuthProviderName) {
  PathContext pathContext = pathContext()
      .withOAuthProvider(escapeDots(oAuthProviderName))
      .build();
  return metricRegistry.timer(pathCompiler.compile(Timers.OAUTH_PROVIDER_TOKEN_REQUEST_LATENCY, pathContext));
}
origin: allegro/hermes

public void registerConsumerHttpAnswer(Subscription subscription, int statusCode) {
  PathContext pathContext = pathContext()
      .withGroup(escapeDots(subscription.getTopicName().getGroupName()))
      .withTopic(escapeDots(subscription.getTopicName().getName()))
      .withSubscription(escapeDots(subscription.getName()))
      .withHttpCode(statusCode)
      .withHttpCodeFamily(httpStatusFamily(statusCode))
      .build();
  metricRegistry.meter(pathCompiler.compile(Meters.ERRORS_HTTP_BY_FAMILY, pathContext)).mark();
  metricRegistry.meter(pathCompiler.compile(Meters.ERRORS_HTTP_BY_CODE, pathContext)).mark();
}
origin: allegro/hermes

public Meter consumerErrorsOtherMeter(Subscription subscription) {
  PathContext pathContext = pathContext()
      .withGroup(escapeDots(subscription.getTopicName().getGroupName()))
      .withTopic(escapeDots(subscription.getTopicName().getName()))
      .withSubscription(escapeDots(subscription.getName()))
      .build();
  return metricRegistry.meter(pathCompiler.compile(Meters.ERRORS_OTHER, pathContext));
}
origin: allegro/hermes

public Meter consumerErrorsTimeoutMeter(Subscription subscription) {
  PathContext pathContext = pathContext()
      .withGroup(escapeDots(subscription.getTopicName().getGroupName()))
      .withTopic(escapeDots(subscription.getTopicName().getName()))
      .withSubscription(escapeDots(subscription.getName()))
      .build();
  return metricRegistry.meter(pathCompiler.compile(Meters.ERRORS_TIMEOUTS, pathContext));
}
origin: allegro/hermes

private String metricRegistryName(String metricDisplayName, TopicName topicName) {
  PathContext pathContext = PathContext.pathContext()
      .withGroup(escapeDots(topicName.getGroupName()))
      .withTopic(escapeDots(topicName.getName())).build();
  return pathCompiler.compile(metricDisplayName, pathContext);
}
origin: allegro/hermes

public Histogram messageContentSizeHistogram(TopicName topic) {
  return metricRegistry.histogram(pathCompiler.compile(Histograms.MESSAGE_SIZE, pathContext()
      .withGroup(escapeDots(topic.getGroupName()))
      .withTopic(escapeDots(topic.getName()))
      .build()));
}
origin: allegro/hermes

public Histogram inflightTimeHistogram(Subscription subscription) {
  return metricRegistry.histogram(pathCompiler.compile(Histograms.INFLIGHT_TIME, pathContext()
      .withGroup(escapeDots(subscription.getTopicName().getGroupName()))
      .withTopic(escapeDots(subscription.getTopicName().getName()))
      .withSubscription(escapeDots(subscription.getName()))
      .build()));
}
pl.allegro.tech.hermes.common.metricHermesMetricsescapeDots

Popular methods of HermesMetrics

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Permission (java.security)
    Legacy security code; do not use.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JOptionPane (javax.swing)
  • Top 12 Jupyter Notebook extensions
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