feat: webhook alerts for surface changes and Prometheus /metrics
[[webhook]] receivers get each ingested sweep's changes, filtered by kind and group, as Xexéu JSON or a Slack/Discord message, optionally signed with HMAC-SHA256 from an environment variable. Delivery runs in the background with retries and never blocks ingestion. GET /api/config and the logs show webhook URLs as scheme://host/… because chat webhook URLs are credentials. /metrics exposes hosts, ports, findings by severity, feed state, per-group last sweep and webhook delivery counters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b6e0d4a3f
commit
cd1f3d0e8c
17 files changed
+1158
-7
No files matched your search
@@ -33,6 +33,15 @@ present, must match `Host`. Without `XEXEU_ADMIN_TOKEN`, `serve` prints a fresh
|
||||
`http://…/?token=…` link at each start; opening it logs the dashboard in for
|
||||
that tab.
|
||||
|
||||
`GET /metrics` serves Prometheus text: `xexeu_build_info`,
|
||||
`xexeu_sweeps_ingested_total`, `xexeu_assets{status}`, `xexeu_open_ports`,
|
||||
`xexeu_findings{severidade}`, `xexeu_kev_findings`, `xexeu_vuln_db_cves`,
|
||||
`xexeu_feeds_last_sync_timestamp_seconds`, per-group
|
||||
`xexeu_last_sweep_{timestamp_seconds,duration_seconds,complete,events}` and
|
||||
`xexeu_webhook_deliveries_total{resultado}`. Like the other reads it needs no
|
||||
token; an alert on `time() - xexeu_last_sweep_timestamp_seconds` catches a
|
||||
scanner that stopped.
|
||||
|
||||
## `xexeu scanner`
|
||||
|
||||
Runs the continuous scheduler and scan engine, writing sweep batches —
|
||||
|
||||
Reference in new issue
Block a user