Skip to content

Commit

Permalink
fix(metrics): await promClient metrics before sending response
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaiSchmid committed Jul 16, 2022
1 parent aa3a78c commit f6c0b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ class APIServer {
});

this.server.get('/metrics', (req, res, next) => {
promClient.register
await promClient.register
.metrics()
.then(metrics => res.end(metrics))
.catch(err => {
Expand Down

0 comments on commit f6c0b5f

Please sign in to comment.