コード例 #1
0
ファイル: MetricsService.cs プロジェクト: rise-x/diagnostics
 public MetricsService(IDiagnosticServices services,
                       IOptionsMonitor <MetricsOptions> optionsMonitor,
                       MetricsStoreService metricsStore)
 {
     _store          = metricsStore;
     _services       = services;
     _optionsMonitor = optionsMonitor;
 }
コード例 #2
0
 public MetricsService(IDiagnosticServices services,
                       IOptions <MetricsOptions> metricsOptions,
                       MetricsStoreService metricsStore)
 {
     _store    = metricsStore;
     _services = services;
     _options  = metricsOptions.Value;
 }
コード例 #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;
        }