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, String app, 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, FlowInfo.Status status, String... tags)
io.micrometer.core.instrument.Counter
counter(String metric, String... tags)
-
-
-
Constructor Detail
-
MeterFactory
public MeterFactory(String basename, String app, io.micrometer.core.instrument.MeterRegistry registry)
- Parameters:
basename
- The prefix for the created metrics ("e.g. flusswerk for flusswerk.items.total")app
- The app name to add as a tag to all metricsregistry
- the Micrometer registry to create the counters
-
-
Method Detail
-
counter
public io.micrometer.core.instrument.Counter counter(String metric, FlowInfo.Status status, String... tags)
-
-