use of org.apache.beam.sdk.testutils.metrics.IOITMetrics in project beam by apache.
the class JdbcIOIT method gatherAndPublishMetrics.
private void gatherAndPublishMetrics(PipelineResult writeResult, PipelineResult readResult) {
String uuid = UUID.randomUUID().toString();
String timestamp = Timestamp.now().toString();
Set<Function<MetricsReader, NamedTestResult>> metricSuppliers = getWriteMetricSuppliers(uuid, timestamp);
IOITMetrics writeMetrics = new IOITMetrics(metricSuppliers, writeResult, NAMESPACE, uuid, timestamp);
writeMetrics.publishToInflux(settings);
IOITMetrics readMetrics = new IOITMetrics(getReadMetricSuppliers(uuid, timestamp), readResult, NAMESPACE, uuid, timestamp);
readMetrics.publishToInflux(settings);
}
use of org.apache.beam.sdk.testutils.metrics.IOITMetrics in project beam by apache.
the class AvroIOIT method collectAndPublishMetrics.
private void collectAndPublishMetrics(PipelineResult result) {
String uuid = UUID.randomUUID().toString();
String timestamp = Timestamp.now().toString();
Set<Function<MetricsReader, NamedTestResult>> metricSuppliers = fillMetricSuppliers(uuid, timestamp);
final IOITMetrics metrics = new IOITMetrics(metricSuppliers, result, AVRO_NAMESPACE, uuid, timestamp);
metrics.publishToInflux(settings);
}
use of org.apache.beam.sdk.testutils.metrics.IOITMetrics in project beam by apache.
the class ParquetIOIT method collectAndPublishMetrics.
private void collectAndPublishMetrics(PipelineResult result) {
String uuid = UUID.randomUUID().toString();
String timestamp = Timestamp.now().toString();
Set<Function<MetricsReader, NamedTestResult>> metricSuppliers = fillMetricSuppliers(uuid, timestamp);
final IOITMetrics metrics = new IOITMetrics(metricSuppliers, result, PARQUET_NAMESPACE, uuid, timestamp);
metrics.publishToInflux(settings);
}
Aggregations