.baseUnit("subscribers") .description("Counts how many Reactor sequences have been subscribed to") .register(registry);
.baseUnit("subscribers") .description("Counts how many Reactor sequences have been subscribed to") .register(registry);
@Override protected Counter newResponseCounterFor(final MethodDescriptor<?, ?> method) { return this.counterCustomizer.apply( prepareCounterFor(method, METRIC_NAME_CLIENT_RESPONSES_RECEIVED, "The total number of responses received")) .register(this.registry); }
.description("cumulative amount of messages received") .tag("transport", transport) .register(registryInstance); this.messagesDropped = Counter.builder("zipkin_collector.messages_dropped") .description("cumulative amount of messages received that were later dropped") .tag("transport", transport) .register(registryInstance); .tag("transport", transport) .baseUnit("bytes") .register(registryInstance); this.spans = Counter.builder("zipkin_collector.spans") .description("cumulative amount of spans received") .tag("transport", transport) .register(registryInstance); this.spansDropped = Counter.builder("zipkin_collector.spans_dropped") .description("cumulative amount of spans received that were later dropped") .tag("transport", transport) .register(registryInstance);
.baseUnit("subscribers") .description("Counts how many Reactor sequences have been subscribed to") .register(registry);
.tag("code", "1xx") .tag("area", "http") .register(registry); successResponseCounter = Counter.builder("che.server.api.response") .tag("code", "2xx") .tag("area", "http") .register(registry); redirectResponseCounter = Counter.builder("che.server.api.response") .tag("code", "3xx") .tag("area", "http") .register(registry); clientErrorResponseCounter = Counter.builder("che.server.api.response") .tag("code", "4xx") .tag("area", "http") .register(registry); serverErrorResponseCounter = Counter.builder("che.server.api.response") .tag("code", "5xx") .tag("area", "http") .register(registry);
@Override public CounterFacade build() { return new MicroCounter(this.builder.register(this.meterRegistry), this.meterRegistry); }
public MicrometerCounter(MeterRegistry meterRegistry, MetricId id) { super(id); counter = io.micrometer.core.instrument.Counter.builder(id.getName()) .description(id.getDescription()) .tags(id.getTags().stream().map(tag -> Tag.of(tag.getKey(), tag.getValue())) .collect(Collectors.toList())).register(meterRegistry); }
@Override protected Counter newResponseCounterFor(final MethodDescriptor<?, ?> method) { return this.counterCustomizer.apply( prepareCounterFor(method, METRIC_NAME_CLIENT_RESPONSES_RECEIVED, "The total number of responses received")) .register(this.registry); }
@Override public void action(StateMachine<S, E> stateMachine, Action<S, E> action, long duration) { String actionName = actionToName(action); getActionCounterBuilder(action).register(meterRegistry).increment(); getActionTimerBuilder(action).register(meterRegistry).record(duration, TimeUnit.MILLISECONDS); Map<String, Object> traceInfo = new HashMap<>(); traceInfo.put("action", actionName); traceInfo.put("duration", duration); traceInfo.put("machine", stateMachine.getId()); traceRepository.add(traceInfo); }
@Override public void transition(StateMachine<S, E> stateMachine, Transition<S, E> transition, long duration) { getTransitionCounterBuilder(transition).register(meterRegistry).increment(); getTransitionTimerBuilder(transition).register(meterRegistry).record(duration, TimeUnit.MILLISECONDS); Map<String, Object> traceInfo = new HashMap<>(); traceInfo.put("transition", transitionToName(transition)); traceInfo.put("duration", duration); traceInfo.put("machine", stateMachine.getId()); traceRepository.add(traceInfo); }
@Override protected Counter newResponseCounterFor(final MethodDescriptor<?, ?> method) { return this.counterCustomizer.apply( prepareCounterFor(method, METRIC_NAME_SERVER_RESPONSES_SENT, "The total number of responses sent")) .register(this.registry); }
public Counter get(String... values) { // Get or create the Counter return Counter.builder(name) .description(description) .tags(Labels.toTags(keys, values)) .register(registry); } }
@Override protected Counter newRequestCounterFor(final MethodDescriptor<?, ?> method) { return this.counterCustomizer.apply( prepareCounterFor(method, METRIC_NAME_SERVER_REQUESTS_RECEIVED, "The total number of requests received")) .register(this.registry); }
@Override protected Counter newRequestCounterFor(final MethodDescriptor<?, ?> method) { return this.counterCustomizer.apply( prepareCounterFor(method, METRIC_NAME_CLIENT_REQUESTS_SENT, "The total number of requests sent")) .register(this.registry); }
@Override public CounterFacade build() { return new MicroCounter(this.builder.register(this.meterRegistry), this.meterRegistry); }
@Override protected Counter newResponseCounterFor(final MethodDescriptor<?, ?> method) { return this.counterCustomizer.apply( prepareCounterFor(method, METRIC_NAME_SERVER_RESPONSES_SENT, "The total number of responses sent")) .register(this.registry); }
@Override protected Counter newRequestCounterFor(final MethodDescriptor<?, ?> method) { return this.counterCustomizer.apply( prepareCounterFor(method, METRIC_NAME_SERVER_REQUESTS_RECEIVED, "The total number of requests received")) .register(this.registry); }
@Override protected Counter newRequestCounterFor(final MethodDescriptor<?, ?> method) { return this.counterCustomizer.apply( prepareCounterFor(method, METRIC_NAME_CLIENT_REQUESTS_SENT, "The total number of requests sent")) .register(this.registry); }
.description("Connection timeout total count") .tags(METRIC_CATEGORY, poolName) .register(meterRegistry);