Search in sources :

Example 6 with MetricsOptions

use of org.apache.beam.sdk.metrics.MetricsOptions in project beam by apache.

the class SparkMetricsPusherTest method init.

@Before
public void init() {
    TestMetricsSink.clear();
    MetricsOptions options = pipeline.getOptions().as(MetricsOptions.class);
    options.setMetricsSink(TestMetricsSink.class);
}
Also used : MetricsOptions(org.apache.beam.sdk.metrics.MetricsOptions) Before(org.junit.Before)

Aggregations

MetricsOptions (org.apache.beam.sdk.metrics.MetricsOptions)6 CountDownLatch (java.util.concurrent.CountDownLatch)4 MetricQueryResults (org.apache.beam.sdk.metrics.MetricQueryResults)4 Test (org.junit.Test)4 Before (org.junit.Before)2