Search in sources :

Example 1 with ConsumerMeters

use of org.apache.servicecomb.metrics.core.meter.ConsumerMeters in project incubator-servicecomb-java-chassis by apache.

the class DefaultMetricsInitializer method init.

@Override
public void init(CompositeRegistry globalRegistry, EventBus eventBus, MetricsBootstrapConfig config) {
    registry = createRegistry(config);
    this.consumerMeters = new ConsumerMeters(registry);
    this.producerMeters = new ProducerMeters(registry);
    globalRegistry.add(registry);
    eventBus.register(this);
}
Also used : ConsumerMeters(org.apache.servicecomb.metrics.core.meter.ConsumerMeters) ProducerMeters(org.apache.servicecomb.metrics.core.meter.ProducerMeters)

Example 2 with ConsumerMeters

use of org.apache.servicecomb.metrics.core.meter.ConsumerMeters in project java-chassis by ServiceComb.

the class InvocationMetersInitializer method init.

@Override
public void init(GlobalRegistry globalRegistry, EventBus eventBus, MetricsBootstrapConfig config) {
    Registry registry = globalRegistry.getDefaultRegistry();
    consumerMeters = new ConsumerMeters(registry);
    producerMeters = new ProducerMeters(registry);
    edgeMeters = new EdgeMeters(registry);
    eventBus.register(this);
}
Also used : ConsumerMeters(org.apache.servicecomb.metrics.core.meter.ConsumerMeters) EdgeMeters(org.apache.servicecomb.metrics.core.meter.EdgeMeters) GlobalRegistry(org.apache.servicecomb.foundation.metrics.registry.GlobalRegistry) Registry(com.netflix.spectator.api.Registry) ProducerMeters(org.apache.servicecomb.metrics.core.meter.ProducerMeters)

Example 3 with ConsumerMeters

use of org.apache.servicecomb.metrics.core.meter.ConsumerMeters in project incubator-servicecomb-java-chassis by apache.

the class InvocationMetersInitializer method init.

@Override
public void init(GlobalRegistry globalRegistry, EventBus eventBus, MetricsBootstrapConfig config) {
    Registry registry = globalRegistry.getDefaultRegistry();
    consumerMeters = new ConsumerMeters(registry);
    producerMeters = new ProducerMeters(registry);
    edgeMeters = new EdgeMeters(registry);
    eventBus.register(this);
}
Also used : ConsumerMeters(org.apache.servicecomb.metrics.core.meter.ConsumerMeters) EdgeMeters(org.apache.servicecomb.metrics.core.meter.EdgeMeters) GlobalRegistry(org.apache.servicecomb.foundation.metrics.registry.GlobalRegistry) Registry(com.netflix.spectator.api.Registry) ProducerMeters(org.apache.servicecomb.metrics.core.meter.ProducerMeters)

Aggregations

ConsumerMeters (org.apache.servicecomb.metrics.core.meter.ConsumerMeters)3 ProducerMeters (org.apache.servicecomb.metrics.core.meter.ProducerMeters)3 Registry (com.netflix.spectator.api.Registry)2 GlobalRegistry (org.apache.servicecomb.foundation.metrics.registry.GlobalRegistry)2 EdgeMeters (org.apache.servicecomb.metrics.core.meter.EdgeMeters)2