monitor http user games pagination

This commit is contained in:
Thibault Duplessis 2016-08-31 20:38:04 +02:00
parent ae5110ad83
commit 38b9575a22
2 changed files with 4 additions and 0 deletions

View file

@ -139,6 +139,7 @@ object User extends LilaController {
})(fuccess) flatMap { filterName =>
val ip = HTTPRequest lastRemoteAddress ctx.req
UserGamesRateLimitPerIP(ip, cost = page, msg = ip) {
lila.mon.http.userGames.cost(page)
GameFilterMenu.paginatorOf(
userGameSearch = userGameSearch,
user = u,

View file

@ -44,6 +44,9 @@ object mon {
object mailgun {
val timeout = inc("http.mailgun.timeout")
}
object userGames {
def cost = incX(s"http.user-games.cost")
}
}
object lobby {
object hook {