Package com.yammer.metrics.reporting

Examples of com.yammer.metrics.reporting.ConsoleReporter


   *
   * @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


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

    allTimerContext.stop();

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

  @Argument public Integer metricsPrintPeriodSecs = 0;

  public Joiner joiner;

  public static ConsoleReporter metricsReporter() {
    return new ConsoleReporter(Metrics.defaultRegistry(), System.err, MetricPredicate.ALL);
  }
View Full Code Here

      bytesSoFar = bytesTillFlush.get();
    }
  }

  public static ConsoleReporter metricsReporter() {
    return new ConsoleReporter(Metrics.defaultRegistry(), System.err, MetricPredicate.ALL);
  }
View Full Code Here

  @Argument public Integer metricsUpdatePeriodRows = 1000;
  @Argument public Integer metricsPrintPeriodSecs = 0;

  public static ConsoleReporter metricsReporter() {
    return new ConsoleReporter(Metrics.defaultRegistry(), System.err, MetricPredicate.ALL);
  }
View Full Code Here

  public boolean systemMetricsEnabled() {
    return systemMetrics;
  }

  public void dumpMetricsToStderr() {
    new ConsoleReporter(System.err).run();
  }
View Full Code Here

      bytesSoFar = bytesTillFlush.get();
    }
  }

  public static ConsoleReporter metricsReporter() {
    return new ConsoleReporter(Metrics.defaultRegistry(), System.err, MetricPredicate.ALL);
  }
View Full Code Here

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

    allTimerContext.stop();

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

     * @param period   The reporting interval.
     * @param timeunit The TimeUnit for the reporting interval.
     */
    public YammerMetricsAssembler( PrintStream out, long period, TimeUnit timeunit )
    {
        reporter = new ConsoleReporter( out );
        try
        {
            reporter.start( period, timeunit );
        }
        catch( RuntimeException e )
View Full Code Here

    @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

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.