Add redis analytics

This commit is contained in:
2022-04-01 19:07:25 +03:00
parent f818aa7221
commit 480599c677
5 changed files with 178 additions and 21 deletions

View File

@@ -140,7 +140,9 @@ export default class BotsManager {
});
application.get("/metrics", (req, res) => {
res.send(UsersCounter.getMetrics());
UsersCounter.getMetrics().then((response) => {
res.send(response);
});
});
application.use((req: Request, res: Response, next: NextFunction) => this.handleUpdate(req, res, next));