Ejemplo n.º 1
0
 public MetricsService(IDiagnosticServices services,
                       IOptionsMonitor <MetricsOptions> optionsMonitor,
                       MetricsStoreService metricsStore)
 {
     _store          = metricsStore;
     _services       = services;
     _optionsMonitor = optionsMonitor;
 }
Ejemplo n.º 2
0
 public MetricsService(IDiagnosticServices services,
                       IOptions <MetricsOptions> metricsOptions,
                       MetricsStoreService metricsStore)
 {
     _store    = metricsStore;
     _services = services;
     _options  = metricsOptions.Value;
 }
Ejemplo n.º 3
0
        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;
        }