-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a basic package for BullMQ that we can import and use
It doesn't actually do anything yet other than start the reporter. No metrics collected. No singleton reporter (BullMQ and Express each start their own reporter).
- Loading branch information
Showing
5 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
const { mergeConfig, Reporter, MetricsStore, requestMetrics, WebMetricsCollector } = require('judoscale-node-core') | ||
const Adapter = require('./adapter') | ||
const { mergeConfig, Reporter } = require('judoscale-node-core') | ||
const Adapter = require('./Adapter') | ||
// const BullMQMetricsCollector = require('./BullMQMetricsCollector') | ||
|
||
module.exports = function initJudoscaleBullMQ(config = {}) { | ||
const finalConfig = mergeConfig(config) | ||
// const collectors = [new BullMQMetricsCollector()] | ||
const collectors = [] | ||
const reporter = new Reporter() | ||
|
||
reporter.start(finalConfig, collectors, Adapter) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters