Class MeterFactory
- java.lang.Object
-
- com.github.dbmdz.flusswerk.framework.monitoring.MeterFactory
-
public class MeterFactory extends Object
Convenience factory to simplify the creation ofCounter
meters.
-
-
Constructor Summary
Constructors Constructor Description MeterFactory(String basename, io.micrometer.core.instrument.MeterRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micrometer.core.instrument.Counter
counter(String metric, Status status, String... tags)
io.micrometer.core.instrument.Counter
counter(String metric, String... tags)
io.micrometer.core.instrument.Counter
frameworkCounter(String name, Status status)
-
-
-
Constructor Detail
-
MeterFactory
public MeterFactory(String basename, io.micrometer.core.instrument.MeterRegistry registry)
- Parameters:
basename
- The prefix for the created metrics ("e.g. flusswerk for flusswerk.items.total")registry
- the Micrometer registry to create the counters
-
-