Skip to content

Commit

Permalink
wipppppppppp
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed May 10, 2024
1 parent deeb712 commit 8ee47c1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions utils/monitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ async function metricsHandler(req, res) {
}

try {
// const [registerMetrics, clusterMetrics] = await Promise.all([
// promClient.register.metrics(),
// aggregatorRegistry.clusterMetrics(),
// ]);
// const promMetrics = `${registerMetrics}\n${clusterMetrics}`;
const promResgisties = Registry.merge([promClient.register, aggregatorRegistry]);
const promMetrics = await promResgisties.metrics();
const [registerMetrics, clusterMetrics] = await Promise.all([
promClient.register.metrics(),
aggregatorRegistry.clusterMetrics(),
]);
const promMetrics = `${registerMetrics}\n${clusterMetrics}`;
// const promResgisties = Registry.merge([promClient.register, aggregatorRegistry]);
// const promMetrics = await promResgisties.metrics();
console.log(`prom metrics ${promMetrics}`);

Check failure on line 81 in utils/monitoring.js

View workflow job for this annotation

GitHub Actions / tests

Unexpected console statement
const contentLen = Buffer.byteLength(promMetrics, 'utf8');
return res.writeHead(200, {
Expand Down

0 comments on commit 8ee47c1

Please sign in to comment.