mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 01:18:27 +00:00
api/core: redirect all other requests to metrics
This commit is contained in:
parent
69ca909e7d
commit
c9dc352f62
@ -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');
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user