Closed rvillane closed 6 years ago
Using epimetheus v1.0.55 with hapi 16.6.3 but /metrics endpoint is not really getting exposed, got a 404. Is this expected ?
const Hapi = require('hapi'); const epithemeus = require('epimetheus'); const server = new Hapi.Server(); const connection = server.connection({ port: 8080, labels: ['api'] }); epithemeus.instrument(server); ......... // routes connection.route({ method: 'GET', path: '/', handler: (request, reply) => { reply(); }, }); connection.route({ method: 'GET', path: '/flags', handler: (request, reply) => { reply(featureFlag.listFlags()); }, }); connection.route({ method: 'POST', path: '/foo', handler: foo, });
embarrassing, I was sending the request using POST , not GET, is working as expected
Using epimetheus v1.0.55 with hapi 16.6.3 but /metrics endpoint is not really getting exposed, got a 404. Is this expected ?