Skip to content

openshift/lightspeed-agentic-alerts-adapter

Lightspeed Agentic Alerts Adapter

A component that bridges OpenShift cluster alerts into the Lightspeed Agentic system. It polls the in-cluster AlertManager API for firing alerts and creates Proposal custom resources (agentic.openshift.io/v1alpha1) to trigger automated analysis and remediation workflows.

Quick start

Prerequisites

  • Go 1.26+
  • Access to an OpenShift cluster (for deployment)
  • golangci-lint (for linting)

Build

make build        # outputs ./bin/alerts-adapter

Test

make test         # run all tests
make coverage     # generate HTML coverage report
make lint         # run golangci-lint

Run locally

make run

Container

make container-build

Deploy to OpenShift

kubectl apply -f manifests/

The adapter runs as a single-replica Deployment in the openshift-lightspeed namespace, using in-cluster authentication.

Configuration

Environment variable Default Description
ALERTMANAGER_URL https://alertmanager-main.openshift-monitoring.svc:9094 AlertManager API endpoint

Internal polling parameters (constants in internal/adapter/adapter.go):

  • Poll interval: 30s
  • Initial delay: 5 min (minimum time an alert must fire before a Proposal is created)
  • Cooldown window: 1 hour (minimum time after a terminal Proposal before retrying)

Documentation

License

Apache License 2.0

About

Alerts adapter for OpenShift Agentic Lightspeed

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages