Skip to content

Commit 01ee77c

Browse files
committed
fixup for getMetricsAsArray
1 parent ac4ecdb commit 01ee77c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/server/src/monitoring-endpoints.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ export class MonitoringEndpointsApp {
2222
// Append redis metrics to default registry
2323
redisMetricsRegistry()
2424
.getMetricsAsArray()
25-
.then((metrics) => {
26-
metrics.forEach((metric) => registry.registerMetric(metric as any));
27-
})
28-
.catch(console.error);
25+
.forEach((metric) => registry.registerMetric(metric as any));
2926

3027
const monApp = express();
3128
monApp.get("/metrics", async (req, res) => {

0 commit comments

Comments
 (0)