mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
cleanup
This commit is contained in:
parent
5f39115914
commit
c75b12a7ac
@ -42,7 +42,7 @@ module.exports = function (config) {
|
|||||||
|
|
||||||
app.use(bodyParser.json({ strict: false }));
|
app.use(bodyParser.json({ strict: false }));
|
||||||
app.use(log4js.connectLogger(logger, {
|
app.use(log4js.connectLogger(logger, {
|
||||||
format: ':remote-addr :status :method :url :response-timems',
|
format: ':status :method :url :response-timems',
|
||||||
level: 'auto', // 3XX=WARN, 4xx/5xx=ERROR
|
level: 'auto', // 3XX=WARN, 4xx/5xx=ERROR
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
const prometheusRegister = require('prom-client/lib/register');
|
const prometheusRegister = require('prom-client/lib/register');
|
||||||
|
|
||||||
module.exports = function (app, config) {
|
module.exports = function (app, config) {
|
||||||
console.log({config});
|
|
||||||
if(config.serverMetrics) {
|
if(config.serverMetrics) {
|
||||||
app.get('/internal-backstage/prometheus', (req, res) => {
|
app.get('/internal-backstage/prometheus', (req, res) => {
|
||||||
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
||||||
|
Loading…
Reference in New Issue
Block a user