.tags(commonTags) .baseUnit("subscribers") .description("Counts how many Reactor sequences have been subscribed to") .register(registry);
.tags(commonTags) .baseUnit("subscribers") .description("Counts how many Reactor sequences have been subscribed to") .register(registry);
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); }
.tags(commonTags) .baseUnit("subscribers") .description("Counts how many Reactor sequences have been subscribed to") .register(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); .description("cumulative amount of bytes received") .tag("transport", transport) .baseUnit("bytes") 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);
.tags(commonTags) .baseUnit("subscribers") .description("Counts how many Reactor sequences have been subscribed to") .register(registry);
informationalResponseCounter = Counter.builder("che.server.api.response") .description("Che Server Tomcat informational responses (1xx responses)") .tag("code", "1xx") .tag("area", "http") successResponseCounter = Counter.builder("che.server.api.response") .description("Che Server Tomcat success responses (2xx responses)") .tag("code", "2xx") .tag("area", "http") redirectResponseCounter = Counter.builder("che.server.api.response") .description("Che Server Tomcat redirect responses (3xx responses)") .tag("code", "3xx") .tag("area", "http") clientErrorResponseCounter = Counter.builder("che.server.api.response") .description("Che Server Tomcat client errors (4xx responses)") .tag("code", "4xx") .tag("area", "http") serverErrorResponseCounter = Counter.builder("che.server.api.response") .description("Che Server Tomcat server errors (5xx responses)") .tag("code", "5xx") .tag("area", "http")
/** * Creates a new counter builder for the given method. By default the base unit will be messages. * * @param method The method the counter will be created for. * @param name The name of the counter to use. * @param description The description of the counter to use. * @return The newly created counter builder. */ public static Counter.Builder prepareCounterFor(final MethodDescriptor<?, ?> method, final String name, final String description) { return Counter.builder(name) .description(description) .baseUnit("messages") .tag(TAG_SERVICE_NAME, extractServiceName(method)) .tag(TAG_METHOD_NAME, extractMethodName(method)); }
private Counter.Builder getTransitionCounterBuilder(Transition<S, E> transition) { String transitionName = transitionToName(transition); Counter.Builder builder = Counter.builder("ssm.transition.transit") .tags("transitionName", transitionName) .description("Counter of Transition"); return builder; }
public Counter get(String... values) { // Get or create the Counter return Counter.builder(name) .description(description) .tags(Labels.toTags(keys, values)) .register(registry); } }
private Counter.Builder getActionCounterBuilder(Action<S, E> action) { String actionName = actionToName(action); Counter.Builder builder = Counter.builder("ssm.action.execute") .tags("actionName", actionName) .description("Counter of Action"); return builder; }
@Override public CounterBuilder description(String desc) { this.builder.description(desc); return this; }
/** * Creates a new counter builder for the given method. By default the base unit will be messages. * * @param method The method the counter will be created for. * @param name The name of the counter to use. * @param description The description of the counter to use. * @return The newly created counter builder. */ public static Counter.Builder prepareCounterFor(final MethodDescriptor<?, ?> method, final String name, final String description) { return Counter.builder(name) .description(description) .baseUnit("messages") .tag(TAG_SERVICE_NAME, extractServiceName(method)) .tag(TAG_METHOD_NAME, extractMethodName(method)); }
@Override public CounterBuilder description(String desc) { this.builder.description(desc); return this; }
.description("Connection timeout total count") .tags(METRIC_CATEGORY, poolName) .register(meterRegistry);