MetricsConfig constructor

const MetricsConfig({
  1. bool enabled = true,
  2. int collectionIntervalSeconds = 60,
  3. bool collectSystemMetrics = true,
  4. bool collectNetworkMetrics = true,
  5. bool collectStorageMetrics = true,
  6. bool enablePrometheusExport = false,
  7. String prometheusEndpoint = '/metrics',
})

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,
  this.collectSystemMetrics = true,
  this.collectNetworkMetrics = true,
  this.collectStorageMetrics = true,
  this.enablePrometheusExport = false,
  this.prometheusEndpoint = '/metrics',
});