use of com.palantir.tritium.metrics.registry.TaggedMetricRegistry in project atlasdb by palantir.
the class TimeLockServerLauncher method initialize.
@Override
public void initialize(Bootstrap<TimeLockServerConfiguration> bootstrap) {
MetricRegistry metricRegistry = SharedMetricRegistries.getOrCreate("AtlasDbTest" + UUID.randomUUID().toString());
TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
AtlasDbMetrics.setMetricRegistries(metricRegistry, taggedMetricRegistry);
bootstrap.setMetricRegistry(metricRegistry);
bootstrap.getObjectMapper().registerSubtypes(NonBlockingFileAppenderFactory.class);
bootstrap.getObjectMapper().registerModule(new Jdk8Module());
super.initialize(bootstrap);
}
use of com.palantir.tritium.metrics.registry.TaggedMetricRegistry in project atlasdb by palantir.
the class TimelockBenchmarkServerLauncher method initialize.
@Override
public void initialize(Bootstrap<TimelockBenchmarkServerConfig> bootstrap) {
MetricRegistry metricRegistry = MetricRegistries.createWithHdrHistogramReservoirs();
TaggedMetricRegistry taggedMetricRegistry = DefaultTaggedMetricRegistry.getDefault();
AtlasDbMetrics.setMetricRegistries(metricRegistry, taggedMetricRegistry);
bootstrap.setMetricRegistry(metricRegistry);
bootstrap.getObjectMapper().registerModule(new Jdk8Module());
bootstrap.getObjectMapper().registerSubtypes(NonBlockingFileAppenderFactory.class);
super.initialize(bootstrap);
}
use of com.palantir.tritium.metrics.registry.TaggedMetricRegistry in project atlasdb by palantir.
the class TimelockBenchmarkClientLauncher method initialize.
@Override
public void initialize(Bootstrap<TimelockBenchmarkClientConfig> bootstrap) {
MetricRegistry metricRegistry = MetricRegistries.createWithHdrHistogramReservoirs();
TaggedMetricRegistry taggedMetricRegistry = DefaultTaggedMetricRegistry.getDefault();
AtlasDbMetrics.setMetricRegistries(metricRegistry, taggedMetricRegistry);
bootstrap.setMetricRegistry(metricRegistry);
bootstrap.getObjectMapper().registerModule(new Jdk8Module());
bootstrap.getObjectMapper().registerSubtypes(NonBlockingFileAppenderFactory.class);
super.initialize(bootstrap);
}
use of com.palantir.tritium.metrics.registry.TaggedMetricRegistry in project atlasdb by palantir.
the class AtlasDbMetricsTest method setMetricRegistry.
private MetricRegistry setMetricRegistry() {
MetricRegistry metrics = SharedMetricRegistries.getOrCreate("AtlasDbTest");
TaggedMetricRegistry taggedMetrics = DefaultTaggedMetricRegistry.getDefault();
AtlasDbMetrics.setMetricRegistries(metrics, taggedMetrics);
return metrics;
}
Aggregations