mirror of
https://github.com/edumeet/edumeet.git
synced 2026-01-23 02:34:58 +00:00
added missing metrics arguments
This commit is contained in:
parent
06a0a1bdd6
commit
1583b779c2
4 changed files with 5 additions and 5 deletions
|
|
@ -968,7 +968,7 @@
|
|||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "Scores",
|
||||
"title": "Input scores",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ const Logger = require('../Logger');
|
|||
const logger = new Logger('metrics:aggregated');
|
||||
|
||||
//
|
||||
module.exports = function(workers, config)
|
||||
module.exports = function(workers, rooms, peers, config)
|
||||
{
|
||||
const register = new promClient.Registry();
|
||||
promClient.collectDefaultMetrics({ prefix: 'mediasoup_', register });
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ const metadata = {
|
|||
'score' : { metricType: prom.Gauge }
|
||||
};
|
||||
|
||||
module.exports = async function(workers, registry, config)
|
||||
module.exports = async function(workers, rooms, peers, registry, config)
|
||||
{
|
||||
const newMetrics = function(subsystem)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ module.exports = async function(rooms, peers, config)
|
|||
logger.debug(`GET ${req.originalUrl}`);
|
||||
const registry = new promClient.Registry();
|
||||
|
||||
await collectDefaultMetrics(workers, registry, config);
|
||||
await collectDefaultMetrics(workers, rooms, peers, registry, config);
|
||||
res.set('Content-Type', registry.contentType);
|
||||
const data = await registry.metrics();
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ module.exports = async function(rooms, peers, config)
|
|||
});
|
||||
|
||||
// aggregated register
|
||||
const registerAggregated = RegisterAggregated(workers, config);
|
||||
const registerAggregated = RegisterAggregated(workers, rooms, peers, config);
|
||||
|
||||
app.get('/metrics', async (req, res) =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue