MetricsConfig constructor
- bool enabled = true,
- int collectionIntervalSeconds = 60,
- @Deprecated('System metrics collection is not implemented; ' 'this option is ignored.') bool collectSystemMetrics = true,
- bool collectNetworkMetrics = true,
- bool collectStorageMetrics = true,
- bool enablePrometheusExport = false,
- String prometheusEndpoint = '/metrics',
- bool enableOpenTelemetry = false,
- String otlpEndpoint = 'http://localhost:4318/v1/metrics',
- Map<
String, String> otlpHeaders = const {}, - int exportIntervalSeconds = 60,
Creates a metrics configuration with the given options. Creates a new MetricsConfig with the given collection options.
Implementation
const MetricsConfig({
this.enabled = true,
this.collectionIntervalSeconds = 60,
@Deprecated(
'System metrics collection is not implemented; '
'this option is ignored.',
)
this.collectSystemMetrics = true,
this.collectNetworkMetrics = true,
this.collectStorageMetrics = true,
this.enablePrometheusExport = false,
this.prometheusEndpoint = '/metrics',
this.enableOpenTelemetry = false,
this.otlpEndpoint = 'http://localhost:4318/v1/metrics',
this.otlpHeaders = const {},
this.exportIntervalSeconds = 60,
});