SSR dashboard: new errors-and-hit-rate tile fed by /__stats samples in vitec:ssr-health (stat_* columns in healthlog)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bc2e031b0c
commit
cb53ff67ee
5 files changed
+232
No files matched your search
@@ -42,6 +42,21 @@ final class SsrPurgeService
|
||||
return $this->getConfig()['SSR_HEALTH_ENDPOINT'] ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
* The /__stats sibling of the health endpoint (cumulative hit/miss/
|
||||
* error counters, in the node since release 20261109-211544). Derived
|
||||
* from SSR_HEALTH_ENDPOINT; SSR_STATS_ENDPOINT overrides explicitly.
|
||||
*/
|
||||
public function getStatsEndpoint(): string
|
||||
{
|
||||
$explicit = $this->getConfig()['SSR_STATS_ENDPOINT'] ?? '';
|
||||
if ($explicit !== '') {
|
||||
return $explicit;
|
||||
}
|
||||
$health = $this->getHealthEndpoint();
|
||||
return $health === '' ? '' : str_replace('/__health', '/__stats', $health);
|
||||
}
|
||||
|
||||
/**
|
||||
* Comma-separated recipient list for vitec:ssr-health transition and
|
||||
* failover alerts (SSR_ALERT_EMAIL); empty string = alerting off.
|
||||
|
||||
Reference in new issue
Block a user