public MetricsService(IDiagnosticServices services, IOptionsMonitor <MetricsOptions> optionsMonitor, MetricsStoreService metricsStore) { _store = metricsStore; _services = services; _optionsMonitor = optionsMonitor; }
public MetricsService(IDiagnosticServices services, IOptions <MetricsOptions> metricsOptions, MetricsStoreService metricsStore) { _store = metricsStore; _services = services; _options = metricsOptions.Value; }
public MetricsService(IDiagnosticServices services, IOptions <PrometheusConfiguration> metricsConfiguration, MetricsStoreService metricsStore) { _store = metricsStore; _pipeProcessor = new DiagnosticsEventPipeProcessor(PipeMode.Metrics, metricLoggers: new[] { new MetricsLogger(_store.MetricsStore) }, metricIntervalSeconds: metricsConfiguration.Value.UpdateIntervalSeconds); _services = services; }