Skip to content

Commit

Permalink
Merge pull request #834 from razee-io/prom_client_fix
Browse files Browse the repository at this point in the history
fix: updatre prom client due to breaking change
  • Loading branch information
dalehille committed Mar 22, 2021
2 parents 96bc11e + 9f465e7 commit efdbbbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ i18next.use(i18nextBackend).use(i18nextMiddleware.LanguageDetector).init({
keySeparator: '#|#'
});
app.use(i18nextMiddleware.handle(i18next));
app.get('/metrics', function (request, response) {
app.get('/metrics', async function (request, response) {
response.writeHead(200, {'Content-Type': promClient.register.contentType});
response.end(promClient.register.metrics());
response.end(await promClient.register.metrics());
});

const server = http.createServer(app);
Expand Down

0 comments on commit efdbbbf

Please sign in to comment.