Skip to content

Commit

Permalink
fix: add metrics route when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
fenos committed Jun 25, 2024
1 parent 1aa185c commit 96e667f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/admin-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const build = (opts: FastifyServerOptions = {}, appInstance?: FastifyInstance):

return reply.type(merged.contentType).send(data)
})
} else {
app.register(plugins.metrics({ enabledEndpoint: true }))
}

app.get('/status', async (_, response) => response.status(200).send())
Expand Down

0 comments on commit 96e667f

Please sign in to comment.