public class Metrics
extends java.lang.Object
Constructor and Description |
---|
Metrics() |
Modifier and Type | Method and Description |
---|---|
static void |
counter(Topology t)
Add counter metrics to all the topology's streams.
|
static <T> TStream<T> |
counter(TStream<T> stream)
Increment a counter metric when peeking at each tuple.
|
static <T> TStream<T> |
rateMeter(TStream<T> stream)
Measure current tuple throughput and calculate one-, five-, and
fifteen-minute exponentially-weighted moving averages.
|
public static <T> TStream<T> counter(TStream<T> stream)
T
- TStream tuple typestream
- to stream to instrumentTStream
containing the input tuplespublic static <T> TStream<T> rateMeter(TStream<T> stream)
T
- TStream tuple typestream
- to stream to instrumentTStream
containing the input tuplespublic static void counter(Topology t)
CounterOp
oplets are inserted between every two graph
vertices with the following exceptions:
CounterOp
oplet (but they are inserted upstream from one.)t
- The topologyGraph.peekAll()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641