Adding Prometheus metrics
This commit adds a '/metrics' endpoint in the API that can be exploited by Prometheus. This endpoint returns: - the number of connected sockets - the number of users per room - common NodeJS and system metrics WARNING: this endpoint is public right now and should be protected
This commit is contained in:
parent
bdb01f3103
commit
af6924a27c
6 changed files with 66 additions and 5 deletions
|
@ -19,7 +19,7 @@ export class MapController {
|
|||
// Returns a map mapping map name to file name of the map
|
||||
getStartMap() {
|
||||
this.App.get("/start-map", (req: Request, res: Response) => {
|
||||
return res.status(OK).send({
|
||||
res.status(OK).send({
|
||||
mapUrlStart: req.headers.host + "/map/files" + URL_ROOM_STARTED,
|
||||
startInstance: "global"
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue