Class CsvReporterFactory

  • All Implemented Interfaces:
    Discoverable, ReporterFactory

    public class CsvReporterFactory
    extends BaseFormattedReporterFactory
    A factory for configuring and building CsvReporter instances.

    Configuration Parameters:

    Name Default Description
    file No default. You must define a directory. The directory where the csv metrics will be written. If the directory does not exist on startup, an attempt will be made to create it and any parent directories as necessary. If this operation fails dropwizard will fail on startup, but it may have succeeded in creating some of the necessary parent directories.
    See BaseFormattedReporterFactory for more options.
    See BaseReporterFactory for more options.
    • Constructor Detail

      • CsvReporterFactory

        public CsvReporterFactory()
    • Method Detail

      • getFile

        public @Nullable File getFile()
      • setFile

        public void setFile​(@Nullable File file)
      • build

        public com.codahale.metrics.ScheduledReporter build​(com.codahale.metrics.MetricRegistry registry)
        Description copied from interface: ReporterFactory
        Configures and builds a ScheduledReporter instance for the given registry.
        Parameters:
        registry - the metrics registry to report metrics from.
        Returns:
        a reporter configured for the given metrics registry.