Package com.yammer.metrics.reporting

Examples of com.yammer.metrics.reporting.ConsoleReporter


    @Test
    public void givenMetricsEnabledQi4jWhenManyEntityChangesExpectCounterToBeOneOrZeroAndChangeRateHigh()
        throws UnitOfWorkCompletionException
    {
        ConsoleReporter reporter = new ConsoleReporter( Metrics.defaultRegistry(), System.out, MetricPredicate.ALL );
        reporter.start( 100, TimeUnit.MILLISECONDS );
        for( int i=0; i < 20000; i++ )
        {
            createEntity(i);
        }
        for( int i=0; i < 20000; i++ )
View Full Code Here


    return systemMetrics;
  }

  /** Dump metrics to stderr */
  public void dumpMetricsToStderr() {
    new ConsoleReporter(System.err).run();
  }
View Full Code Here

    System.err.println("Parsed " + numRows + " rows");

    allTimerContext.stop();

    new ConsoleReporter(System.err).run();
  }
View Full Code Here

   * Get metrics reporter
   *
   * @return ConsoleReporter
   */
  public static ConsoleReporter metricsReporter() {
    return new ConsoleReporter(Metrics.defaultRegistry(), System.err, MetricPredicate.ALL);
  }
View Full Code Here

      @Override
      public boolean matches(MetricName name, Metric metric) {
        return name.getType().equals(getType());
      }
    };
    new ConsoleReporter(getInternalRegistry(), out, superstepFilter).run();
  }
View Full Code Here

   *
   * @param out PrintStream to write metrics to.
   */
  public void printToStream(PrintStream out) {
    out.println("");
    new ConsoleReporter(registry, out, MetricPredicate.ALL).run();
  }
View Full Code Here

    Timer allTime = Metrics.newTimer(InputBenchmark.class, "all-time", TimeUnit.MILLISECONDS, TimeUnit.MILLISECONDS);
    TimerContext allTimerContext = allTime.time();
    run(parsedArgs.get());
    allTimerContext.stop();

    new ConsoleReporter(System.err).run();
  }
View Full Code Here

            }

            // static enable() methods omit the option of specifying a
            // predicate.  Calling constructor and starting manually
            // instead
            final ConsoleReporter reporter = new ConsoleReporter(Metrics.defaultRegistry(),
                                                                 stream,
                                                                 getMetricPredicate());
            reporter.start(getPeriod(), getRealTimeunit());

        }
        catch (Exception e)
        {
            log.error("Failure while enabling console reporter", e);
View Full Code Here

    Timer allTime = Metrics.newTimer(InputBenchmark.class, "all-time", TimeUnit.MILLISECONDS, TimeUnit.MILLISECONDS);
    TimerContext allTimerContext = allTime.time();
    run(parsedArgs.get());
    allTimerContext.stop();

    new ConsoleReporter(System.err).run();
  }
View Full Code Here

TOP

Related Classes of com.yammer.metrics.reporting.ConsoleReporter

Copyright © 2018 www.massapicom. 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.