Notifications: webhooks for a parked model, a lost node, a spent budget and new weights; Alertmanager receiver templates
notify.webhooks sends signed JSON or Slack-compatible messages, queued, retried, de-duplicated hourly; ctl notify test checks each webhook. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
646ff996c7
commit
1b71c38f89
24 files changed
+907
-4
No files matched your search
@@ -19,6 +19,7 @@ import (
|
||||
|
||||
"gitea.mynodes.xyz/ilker/llmgw/internal/control/catalog"
|
||||
"gitea.mynodes.xyz/ilker/llmgw/internal/guard"
|
||||
"gitea.mynodes.xyz/ilker/llmgw/internal/notify"
|
||||
"gitea.mynodes.xyz/ilker/llmgw/internal/tlsconf"
|
||||
)
|
||||
|
||||
@@ -128,6 +129,11 @@ type Server struct {
|
||||
// (llmgw ctl guard attach). Empty checks nothing.
|
||||
Guard guard.Config `koanf:"guard"`
|
||||
|
||||
// Notify sends what needs a person — a model parked, a node lost, a
|
||||
// budget spent, new weights published — to webhooks, signed, without a
|
||||
// Prometheus and Alertmanager in between. Empty sends nothing.
|
||||
Notify notify.Config `koanf:"notify"`
|
||||
|
||||
// FirewallNetworks are networks, besides those each machine reaches the
|
||||
// cluster on, that llmgw's internal ports answer: a monitoring host on
|
||||
// another subnet, nodes behind a router. Written into every machine's
|
||||
@@ -656,6 +662,9 @@ func (s Server) Validate() error {
|
||||
if _, err := s.FirewallAllow(); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.Notify.Validate(); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.Guard.Validate(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user