Examples of MetricName


Examples of com.custardsource.parfait.dxm.MetricName

    @Override
    protected void startMonitoring(Collection<Monitorable<?>> monitorables) {
        try {
            for (Monitorable<?> monitorable : monitorables) {
              monitorable.attachMonitor(monitor);
              MetricName metricName = mapper.map(monitorable.getName());
                pcpWriter.addMetric(metricName,
                        convertToPcpSemantics(monitorable.getSemantics()), monitorable.getUnit(),
                        monitorable.get());
                pcpWriter.setMetricHelpText(metricName.getMetric(), shortTextSource.getText(
                        monitorable, metricName), longTextSource.getText(monitorable, metricName));
            }
            pcpWriter.start();

            LOG.info("PCP monitoring bridge started for writer [" + pcpWriter + "]");
View Full Code Here

Examples of com.espertech.esper.metrics.codahale_metrics.metrics.core.MetricName

            }
        }
    }

    private synchronized void startEngineMetrics(EPServicesContext services, EPRuntime runtime) {
        MetricName filterName = MetricNameFactory.name(services.getEngineURI(), "filter");
        CommonJMXUtil.registerMbean(services.getFilterService(), filterName);
        MetricName scheduleName = MetricNameFactory.name(services.getEngineURI(), "schedule");
        CommonJMXUtil.registerMbean(services.getSchedulingService(), scheduleName);
        MetricName runtimeName = MetricNameFactory.name(services.getEngineURI(), "runtime");
        CommonJMXUtil.registerMbean(runtime, runtimeName);
    }
View Full Code Here

Examples of com.streamreduce.analytics.MetricName

     * @param metadata the event's metadata
     */
    private void handleObjectCounts(String id, Long timestamp, EventId eventId, String accountId, String userId,
                                    String targetId, String targetType, Map<String, Object> metadata) {
        Float eventValue = getEventValue(eventId);
        MetricName metricName = getEventMetricName(eventId, targetType);

        // Nothing we can do if we cannot figure out the event type or there is no value
        if (Float.isNaN(eventValue) || metricName == null) {
            LOGGER.debug("Unable to calculate built-in metrics: (eventValue=" + eventValue +
                                 ", metricName=" + metricName + ")");
View Full Code Here

Examples of com.yammer.metrics.core.MetricName

      tearDown();
      System.setProperty(StatsCollectorFactoryCoda.environmentPrefixSystemPropertyName,"Hello.");
      setUp();
      StatsCollectorFactoryCoda.MetricNamingStrategy strategy = statsCollectorFactory.getNamingStrategy();
      ClusterId clusterId = new ClusterId("app","cluster");
      MetricName name = strategy.createName(clusterId, "metric");

      assertEquals("metric", name.getName());
      assertEquals("app-cluster", name.getGroup());
      assertTrue(strategy.buildPrefix(clusterId, new Destination() { @Override public String toString() { return "destination"; } }).startsWith("Hello."));

      // make sure setting the environment prefix doesn't effect the -D option
      statsCollectorFactory.setEnvironmentPrefix("otherEnvPrefix");
      assertTrue(strategy.buildPrefix(clusterId, new Destination() { @Override public String toString() { return "destination"; } }).startsWith("Hello."));
View Full Code Here

Examples of com.yammer.metrics.core.MetricName

    Class<?> sourceClass = metricKey.getSourceClass();

    String[] path = metricKey.getPath();
    String name = Joiner.on('.').join(path);

    return new MetricName(sourceClass, name);
  }
View Full Code Here

Examples of com.yammer.metrics.core.MetricName

    return new MetricName(sourceClass, name);
  }

  @Override
  public MetricTimer getTimer(MetricKey metricKey) {
    MetricName metricName = toMetricName(metricKey);
    return new MetricTimerAdapter(registry.newTimer(metricName, TimeUnit.MILLISECONDS, TimeUnit.SECONDS));
  }
View Full Code Here

Examples of com.yammer.metrics.core.MetricName

    return new MetricTimerAdapter(registry.newTimer(metricName, TimeUnit.MILLISECONDS, TimeUnit.SECONDS));
  }

  @Override
  public MetricHistogram getHistogram(MetricKey metricKey) {
    MetricName metricName = toMetricName(metricKey);
    boolean biased = true;
    return new MetricHistogramAdapter(registry.newHistogram(metricName, biased));
  }
View Full Code Here

Examples of com.yammer.metrics.core.MetricName

    return new MetricHistogramAdapter(registry.newHistogram(metricName, biased));
  }

  @Override
  public MetricMeter getCounter(MetricKey metricKey) {
    MetricName metricName = toMetricName(metricKey);
    String eventType = "events";
    return new MetricMeterAdapter(registry.newMeter(metricName, eventType, TimeUnit.SECONDS));
  }
View Full Code Here

Examples of com.yammer.metrics.core.MetricName

            }
        }
    }
   
    public static final MetricName newMetricName(String scope, String name) {
        return new MetricName("com.urbanairship.statshtable", "StatsHTable", name, scope);
    }
View Full Code Here

Examples of com.yammer.metrics.core.MetricName

     */
    public SHTimerMetric newSHTimerMetric(String scope, String name) {
        if(scope == null) {
            scope = "";
        }
        MetricName metricName = StatsHTable.newMetricName(scope + scopeSuffix, name);
        SHTimerMetric existingMetric = (SHTimerMetric)allMetrics().get(metricName);
        if(existingMetric != null) {
            return existingMetric;
        }
        SHTimerMetric newMetric = new SHTimerMetric(TimeUnit.MILLISECONDS,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.