public RtqMonitoringEventBulkIndexer(ILog logger, RtqElasticsearchIndexerSettings indexerSettings, IRtqElasticsearchClient elasticsearchClient, RemoteTaskQueue remoteTaskQueue, IStatsDClient statsDClient) { this.indexerSettings = indexerSettings; eventSource = new RtqEventSource(remoteTaskQueue.EventLogRepository); offsetInterpreter = new RtqEventLogOffsetInterpreter(); var perfGraphiteReporter = new RtqMonitoringPerfGraphiteReporter(statsDClient, graphitePathPrefix: $"{indexerSettings.RtqGraphitePathPrefix}.ElasticsearchBulkIndexer.Perf"); this.logger = logger.ForContext("CassandraDistributedTaskQueue").ForContext(nameof(RtqMonitoringEventBulkIndexer)); taskMetaProcessor = new TaskMetaProcessor(this.logger, indexerSettings, elasticsearchClient, remoteTaskQueue, perfGraphiteReporter); }
public RtqMonitoringEventFeeder(ILog logger, RtqElasticsearchIndexerSettings indexerSettings, IRtqElasticsearchClient elasticsearchClient, IGraphiteClient graphiteClient, IStatsDClient statsDClient, IRtqPeriodicJobRunner rtqPeriodicJobRunner, RemoteTaskQueue remoteTaskQueue) { this.logger = logger.ForContext("CassandraDistributedTaskQueue").ForContext(nameof(RtqMonitoringEventFeeder)); this.indexerSettings = indexerSettings; this.elasticsearchClient = elasticsearchClient; GlobalTime = remoteTaskQueue.GlobalTime; eventSource = new RtqEventSource(remoteTaskQueue.EventLogRepository); var eventFeedPeriodicJobRunner = new RtqEventFeedPeriodicJobRunner(rtqPeriodicJobRunner, graphiteClient, indexerSettings.EventFeedGraphitePathPrefix); eventFeedFactory = new EventFeedFactory(new RtqEventFeedGlobalTimeProvider(GlobalTime), eventFeedPeriodicJobRunner); var perfGraphiteReporter = new RtqMonitoringPerfGraphiteReporter(statsDClient, indexerSettings.PerfGraphitePathPrefix); var taskMetaProcessor = new TaskMetaProcessor(this.logger, indexerSettings, elasticsearchClient, remoteTaskQueue, perfGraphiteReporter); eventConsumer = new RtqMonitoringEventConsumer(indexerSettings, taskMetaProcessor); }
public RtqMonitoringEventConsumer(RtqElasticsearchIndexerSettings settings, TaskMetaProcessor taskMetaProcessor) { this.settings = settings; this.taskMetaProcessor = taskMetaProcessor; }