Repository navigation
M16.4 API alerts, uptime checks, reports, MCP #67
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Part of #63. Needs M16.3.
yuva-api
-
monitor_alert_rulesper property, route, service or check: error rate, client error rate, p95, p99 or Apdex over a 5–60 minute window with a minimum of requests; spike and drop against the same 15 minutes of the 7 days before; a route going silent; certificate expiry. Themonitor_alertsjob every minute; one open alert per rule and key that fires once and resolves once (10% margin over a whole window). Delivery:monitor.alertstored event and webhook, an annotation, e-mail and Web Push to the rule's recipients. A default 5xx rule on every new API property. - Uptime checks (
monitor_checks): HTTP(S) GET or HEAD, expected statuses, keyword, timeout, interval (at leastYUVA_MONITOR_MIN_INTERVAL), failures before down, certificate warning, redirects;monitor_checks_dueevery 10 s and onemonitor_checkjob per run on a newmonitoringqueue (YUVA_MONITOR_WORKERS); requests through the webhook client's dialer (private, loopback, link-local, CGNAT, multicast and reserved addresses refused, every redirect hop checked,YUVA_MONITOR_ALLOW_PRIVATEfor self-hosted, metadata always refused); a retry after 20 s before a failure counts; minutes where most of the server's checks fail recordedunknown;monitor_check_results(day partitions, 30 days) andmonitor_check_days; capsYUVA_MONITOR_CHECKSand 10 checks per host. - The
uptimedataset in the query operation (up,uptime, response-time percentiles,ttfb, certificate days left). - Weekly and monthly API reports through
analytics_subscriptionsand theanalytics_reportsjob with an API template. - Support in aggregate:
conversationsper local day of the linked inbox next to errors, by time only; no link from a request to a person. - MCP tools: slow and failing routes, a route's history, a consumer's errors, alert state, uptime checks; the new datasets in the query tool;
setup_api_monitoringprompt;get_setup_stateentry.
yuva-panel
- Alert rules and their history, uptime checks with results and timings, report settings. en and tr.
yuva-docs
- Alerts, uptime checks (what the server will and will not call), reports and the MCP tools; en, tr, de.
Done when
A route pushed over its error-rate threshold raises an alert once and resolves once, by e-mail, push and webhook; an uptime check against a stopped endpoint alerts and recovers; a check aimed at a private, loopback or metadata address is refused when saved and when run; the MCP tools answer from the same numbers as the panel.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Activity
feat(api): API alerts, uptime checks, API reports and monitoring MCP …
chore(sdk): regenerate the Go client and schema.gen.ts for uptime che…
docs: uptime checks, alerts, reports and monitoring MCP tools, with t…
feat(web): uptime checks, API alert rules and alerts, API reports
fix(web): monitoring texts in the panel's language, and check pages o…
fix(api): an uptime check recovers while most of the server's checks …
chore(sdk): regenerate the Go client and schema.gen.ts for the uptime…
productdevbook commentedon Oct 14, 2026
Done: checks, alerts, reports and MCP tools (8c6d1eb, recovery fix 5a2db23), panel (a626e11, 3c1387b), guides in en, tr, de (645a758). Verified on the dev server: a check against a stopped endpoint went down within about a minute, fired one alert, and came back up and resolved once the endpoint answered again; metadata and private addresses are refused.
productdevbook commentedon Oct 14, 2026
This step's code is no longer on main; it lives in #72.