From c9dc352f626cf14563511822936ba012364aff98 Mon Sep 17 00:00:00 2001 From: hyperdefined Date: Sun, 1 Jun 2025 20:09:33 -0400 Subject: [PATCH] api/core: redirect all other requests to metrics --- api/src/core/api.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/core/api.js b/api/src/core/api.js index 762b71e4..91370fe6 100644 --- a/api/src/core/api.js +++ b/api/src/core/api.js @@ -399,6 +399,10 @@ export const runAPI = async (express, app, __dirname, isPrimary = true) => { metricsApp.listen(env.metricsPort, () => { console.log(`${Green('[✓]')} prometheus metrics running on 127.0.0.1:${env.metricsPort}/metrics`); }); + + metricsApp.get('/*', (req, res) => { + res.redirect('/metrics'); + }) } });