public class Log4JMetrics extends Object implements io.micrometer.core.instrument.binder.MeterBinder, AutoCloseable
Constructor and Description |
---|
Log4JMetrics()
Initializes metrics with no additional tags.
|
Log4JMetrics(Iterable<io.micrometer.core.instrument.Tag> tags)
Initializes metrics with additional tags.
|
Modifier and Type | Method and Description |
---|---|
void |
bindTo(io.micrometer.core.instrument.MeterRegistry meterRegistry)
Binds the metrics to registry.
|
void |
close()
Clears all metrics filters.
|
public Log4JMetrics()
public Log4JMetrics(Iterable<io.micrometer.core.instrument.Tag> tags)
tags
- the additional tags.public void bindTo(@NotNull io.micrometer.core.instrument.MeterRegistry meterRegistry)
bindTo
in interface io.micrometer.core.instrument.binder.MeterBinder
meterRegistry
- the meter registry to bind to.public void close() throws Exception
close
in interface AutoCloseable
Exception
- if an issue.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.