Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

krateo-alert-provider

What is this

Turns a firing Krateo observability Alert into Incidents, one per problem, each with an incident-agent root-cause analysis, in the background — no browser required.

every 60 s, Alert is ALERT in HyperDX → krateo-alert-provider
    → an open incident of the same problem? (one LLM call)        yes → nothing (it covers the firing)
                                                                  no  → new Incident → A2A call to incident-agent
                                                                        → status: analysis + howToFix scripts, state Open

What it does

The reconciler mirrors each Alert's HyperDX state every pass; a pass that finds it ALERT is a firing, and the handler:

  1. asks the comparison model, in one call over the Alert's open analyzed Incidents (observability.krateo.io/v1alpha1) that opened or last covered a firing within config.incidentCoverWindow (24h), which one causes its current records; that one covers the firing, which only stamps its observability.krateo.io/last-covered-at annotation,
  2. else creates one in state Analyzing and calls incident-agent over A2A (JSON-RPC message/stream) with the incident's prompt,
  3. writes the analysis and its howToFix scripts to the Incident's status, in state Open.

The incident controller (incident-controller) runs the scripts from there. See docs/overview.md.

HyperDX's webhook is acked (202) and logged; the reconciler's pass is what fires an alert.

It reconciles the Alerts of every namespace. Only an Alert in its own namespace (NAMESPACE) opens Incidents; an Alert in any other namespace, a tenant's, is pushed to HyperDX as <namespace>/<name> and mirrors its state with no Incident and no RCA, since incident-agent reads the whole platform. See docs/overview.md.

Build

Image is built + pushed by CI (.github/workflows/release.yaml) to ghcr.io/krateo-platformops/alert-provider on push to main / tags. No local docker push.

Deploy

The reconciler creates the HyperDX webhook and alerts from the Alert CRs.

Config (env)

  • NAMESPACE (default krateo-system) — the home namespace: its Alerts keep their bare names in HyperDX and alone open Incidents, which it holds, as it does the Secrets and the ModelConfig. Alerts of other namespaces are reconciled too, with no Incident.
  • AUTOPILOT_A2A_URL — the RCA agent (chart default http://incident-agent.krateo-system.svc:8080/).
  • A2A_TIMEOUT (default 900s) — the longest silence on the RCA stream; above the agentgateway LLM route's 600s timeout.
  • COMPARE_MODEL_CONFIG — the kagent ModelConfig whose model compares incidents (default gemini-flash).
  • COMPARE_TIMEOUT (default 60s).

Install

helm install alert-provider oci://ghcr.io/krateo-platformops/charts/alert-provider --version <tag> -n krateo-system

Configure

See docs/configuration.md.

Examples

See examples/webhook/.

Docs

docs/index.md — overview, usage, API, configuration, release, log.

Develop & release

make check builds, vets and tests the Go module (on Krateo's provider-runtime) and lints the charts. The testdata corpora under internal/*/testdata are the Python implementation's outputs, recorded by hack/golden/generate.py; the Go code is held to them.

Tag a bare semver; CI builds the image and publishes the chart. See docs/release.md.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages