Class MeterFactory


  • public class MeterFactory
    extends Object
    Convenience factory to simplify the creation of Counter meters.
    • 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 metrics
        registry - the Micrometer registry to create the counters
    • Method Detail

      • counter

        public io.micrometer.core.instrument.Counter counter​(String metric,
                                                             String... tags)