Search in sources :

Example 1 with TaggedMetricRegistry

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);
}
Also used : Jdk8Module(com.fasterxml.jackson.datatype.jdk8.Jdk8Module) MetricRegistry(com.codahale.metrics.MetricRegistry) DefaultTaggedMetricRegistry(com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry) TaggedMetricRegistry(com.palantir.tritium.metrics.registry.TaggedMetricRegistry) DefaultTaggedMetricRegistry(com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry) TaggedMetricRegistry(com.palantir.tritium.metrics.registry.TaggedMetricRegistry) DefaultTaggedMetricRegistry(com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry)

Example 2 with TaggedMetricRegistry

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);
}
Also used : Jdk8Module(com.fasterxml.jackson.datatype.jdk8.Jdk8Module) MetricRegistry(com.codahale.metrics.MetricRegistry) DefaultTaggedMetricRegistry(com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry) TaggedMetricRegistry(com.palantir.tritium.metrics.registry.TaggedMetricRegistry) DefaultTaggedMetricRegistry(com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry) TaggedMetricRegistry(com.palantir.tritium.metrics.registry.TaggedMetricRegistry)

Example 3 with TaggedMetricRegistry

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);
}
Also used : Jdk8Module(com.fasterxml.jackson.datatype.jdk8.Jdk8Module) MetricRegistry(com.codahale.metrics.MetricRegistry) DefaultTaggedMetricRegistry(com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry) TaggedMetricRegistry(com.palantir.tritium.metrics.registry.TaggedMetricRegistry) DefaultTaggedMetricRegistry(com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry) TaggedMetricRegistry(com.palantir.tritium.metrics.registry.TaggedMetricRegistry)

Example 4 with TaggedMetricRegistry

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;
}
Also used : MetricRegistry(com.codahale.metrics.MetricRegistry) DefaultTaggedMetricRegistry(com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry) TaggedMetricRegistry(com.palantir.tritium.metrics.registry.TaggedMetricRegistry) DefaultTaggedMetricRegistry(com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry) TaggedMetricRegistry(com.palantir.tritium.metrics.registry.TaggedMetricRegistry)

Aggregations

MetricRegistry (com.codahale.metrics.MetricRegistry)4 DefaultTaggedMetricRegistry (com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry)4 TaggedMetricRegistry (com.palantir.tritium.metrics.registry.TaggedMetricRegistry)4 Jdk8Module (com.fasterxml.jackson.datatype.jdk8.Jdk8Module)3