PoweradminMetricsCollector
class PoweradminMetricsCollector (View source)
Collects the gauges behind the /api/metrics endpoint: counts about Poweradmin itself, never keyed by zone or user name, so every metric has a handful of series at most.
Zone counts come from the PowerDNS API when the API backend is used (one zone list request, which also carries the dnssec flag) and from the PowerDNS tables otherwise. The values are computed on every scrape.
Methods
__construct(PDO $db, TableNameService $tables, PowerdnsApiClient|null $apiClient, bool $apiBackend, bool $countRecords, LoggerInterface $logger)
No description
array
collect()
No description
Details
__construct(PDO $db, TableNameService $tables, PowerdnsApiClient|null $apiClient, bool $apiBackend, bool $countRecords, LoggerInterface $logger)
No description
array
collect()
No description