From 77c4e134c7222226c702b98308c7ade27a3af30b Mon Sep 17 00:00:00 2001 From: hyperdefined Date: Sun, 1 Jun 2025 21:29:52 -0400 Subject: [PATCH] api/core: bind on localhost --- api/src/core/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/core/api.js b/api/src/core/api.js index 91370fe6..eb93563a 100644 --- a/api/src/core/api.js +++ b/api/src/core/api.js @@ -396,7 +396,7 @@ export const runAPI = async (express, app, __dirname, isPrimary = true) => { res.set('Content-Type', registry.contentType); res.send(await registry.metrics()); }); - metricsApp.listen(env.metricsPort, () => { + metricsApp.listen(env.metricsPort, '127.0.0.1', () => { console.log(`${Green('[✓]')} prometheus metrics running on 127.0.0.1:${env.metricsPort}/metrics`); });