Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Oct 31, 2024
1 parent 6694ca8 commit 226f219
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 403 deletions.
234 changes: 0 additions & 234 deletions lib/MetricsConsumer.js

This file was deleted.

77 changes: 0 additions & 77 deletions lib/MetricsProducer.js

This file was deleted.

43 changes: 0 additions & 43 deletions lib/queuePopulator/IngestionPopulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ const Logger = require('werelogs').Logger;
const config = require('../Config');
const IngestionReader = require('./IngestionReader');
const BackbeatProducer = require('../BackbeatProducer');
const MetricsConsumer = require('../MetricsConsumer');
const MetricsProducer = require('../MetricsProducer');
const { metricsExtension } = require('../../extensions/ingestion/constants');

Check failure on line 12 in lib/queuePopulator/IngestionPopulator.js

View workflow job for this annotation

GitHub Actions / tests

'metricsExtension' is assigned a value but never used
const IngestionPopulatorMetrics = require('./IngestionPopulatorMetrics');
const {
Expand Down Expand Up @@ -79,11 +77,6 @@ class IngestionPopulator {
// shared producer across readers
this._producer = null;

// metrics clients
this._mProducer = null;
this._mConsumer = null;
this._redis = null;

// all ingestion readers (including paused ones)
// i.e.: { zenko-bucket-name: IngestionReader() }
this._ingestionSources = {};
Expand Down Expand Up @@ -152,17 +145,6 @@ class IngestionPopulator {
});
}

_setupMetricsClients(cb) {
// Metrics Consumer
this._mConsumer = new MetricsConsumer(this.rConfig, this.mConfig,
this.kafkaConfig, metricsExtension);
this._mConsumer.start();

// Metrics Producer
this._mProducer = new MetricsProducer(this.kafkaConfig, this.mConfig);
this._mProducer.setupProducer(cb);
}

_setupProducer(cb) {
if (this._producer) {
return process.nextTick(cb);
Expand Down Expand Up @@ -580,7 +562,6 @@ class IngestionPopulator {
logger: this.log,
extensions: [this._extension],
producer: this._producer,
metricsProducer: this._mProducer,
qpConfig: this.qpConfig,
s3Config: this.s3Config,
});
Expand Down Expand Up @@ -662,30 +643,6 @@ class IngestionPopulator {
*/
close(done) {
async.series([
next => {
if (this._mProducer) {
this.log.debug('closing metrics producer', {
method: 'IngestionPopulator.close',
});
return this._mProducer.close(next);
}
this.log.debug('no metrics producer to close', {
method: 'IngestionPopulator.close',
});
return next();
},
next => {
if (this._mConsumer) {
this.log.debug('closing metrics consumer', {
method: 'IngestionPopulator.close',
});
return this._mConsumer.close(next);
}
this.log.debug('no metrics consumer to close', {
method: 'IngestionPopulator.close',
});
return next();
},
next => {
if (this._producer) {
this.log.debug('closing producer', {
Expand Down
Loading

0 comments on commit 226f219

Please sign in to comment.