mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-04 18:13:22 +02:00
Added counter of whois queries in server health page
This commit is contained in:
parent
4fbad774ac
commit
d62b15b4e7
2 changed files with 25 additions and 1 deletions
|
@ -197,6 +197,10 @@ class ReportsController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
$db = $this->container->get('db');
|
||||
$whoisQueries = $db->selectValue("SELECT value FROM settings WHERE name = 'whois-43-queries'");
|
||||
$webWhoisQueries = $db->selectValue("SELECT value FROM settings WHERE name = 'web-whois-queries'");
|
||||
|
||||
return $this->view->render($response, 'admin/reports/serverHealth.twig', [
|
||||
'serverHealth' => $serverHealth,
|
||||
'csrfTokenName' => $csrfTokenName,
|
||||
|
@ -214,7 +218,9 @@ class ReportsController extends Controller
|
|||
'msgwStatus' => $msgwStatus,
|
||||
'msgbLogs' => $msgbLogs,
|
||||
'msgwLogs' => $msgwLogs,
|
||||
'redisStatus' => $redisStatus
|
||||
'redisStatus' => $redisStatus,
|
||||
'whoisQueries' => $whoisQueries,
|
||||
'webWhoisQueries' => $webWhoisQueries
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue