Introducing a new way to review your PRs.

Read the announcement

keephq / keep

The open-source AIOps and alert management platform

View on GitHub

22 documents · Updated Nov 23, 2026

docs / provider-integrations

Provider integrations

Provider integrations are Keep's common way to connect alerts, incidents, messages, data, topology, queues, and AI services to the platform. Each provider presents the capabilities of one external system through shared contracts so that workflows and event handling can work without knowing the external system's API.

Integration model

A provider is an adapter between Keep and one external service. Keep creates a provider from a type and a tenant-scoped configuration, then uses the adapter for the capabilities that it declares.

The provider catalog describes those capabilities before a provider is installed. It also gives the UI and API the information needed to show a provider, collect its settings, check its access, and expose its optional actions. The shared provider contract also validates configuration, reports access scopes and metadata, and keeps provider identity attached to the work that crosses the integration boundary.

Provider types can represent a single service or a service subtype. A provider can be installed for a tenant, or linked as an alert source without a full installation. This distinction lets Keep receive events from supported sources while still keeping installed credentials and runtime state separate.

The detailed path from a provider type to a running provider is described in Provider implementation and dispatch. The settings and tenant lifecycle are described in Provider configuration and provisioning.

References: keep/…/base_provider.py• L47-181 keep/…/providers_factory.py• L63-91 keep/…/providers_factory.py• L252-461 keep/…/provider.py• L14-59

Capability contracts

The common provider contract separates the direction and kind of work that an integration can do. A provider may support one capability or several, and Keep records the available capabilities as provider metadata.

CapabilityRole in KeepTypical external systems
Alert inputConverts incoming events or pulled alerts into Keep alerts.Monitoring and security systems
Incident inputConverts external incident events into Keep incidents.Incident management systems
NotificationSends workflow output to an external destination.Messaging, ticketing, and collaboration systems
QueryReads data for workflow steps and enrichment.Monitoring, logs, databases, and data services
TopologyReads service relationships or infrastructure inventory.Monitoring and cloud systems
Event consumptionRuns a long-lived event source that pushes data into Keep.Queues and streaming systems
Webhook setupSupplies or creates the external webhook that sends data to Keep.Systems with webhook support
Provider methodsExposes named views or actions for provider-specific operations.Services with useful extra API actions
Health reportingReports integration health from provider data.Providers that opt into health checks

These contracts allow one workflow model to query a data source, notify a destination, or use an AI service. The provider remains responsible for translating the external request or response into the contract that Keep expects. Shared handling can then enrich workflow results, assign provider identity, and apply the configured alert fingerprint rule without requiring each caller to understand the external system.

The Zabbix provider shows how one monitoring integration can use several contracts at once. It supplies alert input, webhook setup, and named actions for problem control and message lookup. The Graylog provider follows the same model for a log and alert service: it supplies alert input, query access, webhook setup, and a named search action. The Kubernetes provider illustrates an infrastructure integration that uses query access to read cluster data and notification actions to change cluster resources.

References: keep/…/base_provider.py• L149-181 keep/…/base_provider.py• L183-202 keep/…/base_provider.py• L392-408 keep/…/base_provider.py• L428-538 keep/…/base_provider.py• L540-590 keep/…/base_provider.py• L609-633 keep/…/base_provider.py• L885-958 keep/…/zabbix_provider.py• L60-206 keep/…/graylog_provider.py• L69-133 keep/…/graylog_provider.py• L780-829 keep/…/kubernetes_provider.py• L58-71 keep/…/kubernetes_provider.py• L143-281

Event and workflow flows

Provider integrations connect external events to Keep's alert and incident model, and connect workflow steps back to external systems. Keep applies the same provider boundary to webhooks, polling, queue consumption, queries, and notifications.

The main event paths are shown below. An external system can send an event directly or be read by a provider; a workflow can then query another provider or send a notification.

flowchart LR
    External[External system] -->|webhook or event| Adapter[Provider adapter]
    Adapter -->|format| Event[Keep alert or incident]
    Source[Provider data source] -->|pull or consume| Adapter
    Event -->|workflow trigger| Workflow[Keep workflow]
    Workflow -->|query| Data[Data provider]
    Workflow -->|notify| Destination[Messaging, ticketing, or incident provider]
    Data --> Workflow

For incoming alerts, the provider maps an external payload to a normalized alert. Keep attaches the provider identity and applies the configured deduplication rule when one exists. Pulled alerts use the same normalized model and the same fingerprint adjustment, which keeps webhook and polling paths consistent.

For workflow execution, a step calls the provider's query contract when it needs data. An action calls the notification contract when it needs to send an alert or message. The result is placed in workflow context so later steps can use it.

Zabbix follows both incoming paths. Keep can pull recent problems through the provider or receive pushed event data through a configured webhook. The same provider also exposes workflow actions that acknowledge, suppress, close, or change the severity of a Zabbix problem.

Graylog follows the same two-path alert model. Keep can pull recent Graylog alerts or receive Graylog event notifications through a configured webhook. Its query capability also lets workflows search Graylog data, while each alert uses the source event identity for stable deduplication.

Kubernetes is a workflow-facing example rather than an alert source. A workflow can query cluster resources, logs, and events, then use notification actions to restart or scale workloads or change node state. Each operation returns data or an operation result to the workflow instead of exposing Kubernetes API details to the workflow itself.

References: keep/…/base_provider.py• L428-538 keep/…/base_provider.py• L566-590 keep/…/base_provider.py• L609-633 keep/…/step.py• L331-384 keep/…/parser.py• L146-221 keep/…/providers.py• L285-319 keep/…/zabbix_provider.py• L246-391 keep/…/zabbix_provider.py• L523-787 keep/…/graylog_provider.py• L549-689 keep/…/graylog_provider.py• L754-829 keep/…/kubernetes_provider.py• L143-281

Provider lifecycle

Provider state has two parts: a tenant record that describes the installed integration and a protected configuration that supplies its credentials. Keep uses the record to find the provider and the protected configuration to create a runtime adapter.

An installation follows this broad sequence:

  1. Keep selects a provider type and combines the submitted settings with the provider name.
  2. The provider validates its settings and checks its declared access scopes.
  3. Keep stores the installation record and protected configuration for the tenant.
  4. If the provider consumes events, Keep registers it with the event subscriber.
  5. If requested, Keep installs or prepares the provider's webhook.

Updates repeat provider validation and replace the protected configuration. Deletion removes the tenant record and configuration, unregisters event consumption, and gives the provider a chance to clean up external resources. Provisioned providers follow the same lifecycle but are controlled by deployment configuration and cannot normally be changed through the regular tenant API.

References: keep/…/providers_service.py• L145-247 keep/…/providers_service.py• L249-369 keep/…/providers_service.py• L372-472 keep/…/provider.py• L8-28

Configuration and access boundaries

Provider configuration is tenant-specific and is read only when Keep needs to create or use that provider. Authentication values are kept outside the provider catalog record, while the catalog exposes field descriptions and sensitivity information for configuration clients.

Scopes provide a provider-specific access check. A provider reports the result for each scope, and mandatory scope failures block normal installation. OAuth-capable providers can exchange an authorization result for credentials before the same validation and storage path completes. Scope checks should also turn unusable external error responses into a clear validation result instead of assuming that every response contains structured error data.

Providers can also use deployment-time configuration. Keep reads providers from a configured file or environment value and reconciles those providers with the tenant's provisioned set. This supports repeatable setup while preserving the same provider contracts used by UI-installed integrations.

For Cilium, the access boundary includes a Hubble Relay endpoint and can include TLS with a CA certificate or client certificate and key. For Sentry, the boundary includes an API key, organization, and optional project; webhook setup needs write access and a public Keep URL. For Graylog, the boundary includes a deployment URL, a user name, an access token, and a choice about TLS certificate verification. Its normal and webhook operations require authentication and an authorized administrative role. For Kubernetes, the boundary includes either an API server and bearer token or credentials available from the running cluster, with an option that controls TLS verification.

References: keep/…/provider_config.py• L12-57 keep/…/providers_service.py• L54-91 keep/…/providers_service.py• L474-730 keep/…/providers.py• L470-623 keep/…/providers_factory.py• L560-609 keep/…/cilium_provider.py• L14-70 keep/…/sentry_provider.py• L22-80 keep/…/sentry_provider.py• L168-223 keep/…/sentry_provider.py• L312-385 keep/…/graylog_provider.py• L30-66 keep/…/graylog_provider.py• L97-112 keep/…/graylog_provider.py• L303-339 keep/…/kubernetes_provider.py• L14-54 keep/…/kubernetes_provider.py• L92-141

Runtime consumers and operations

Some providers are event consumers rather than request-based adapters. Keep starts their consumers in separate threads, tracks their status, and stops them when the service shuts down or the provider is removed.

Provider operations are exposed through the providers API. Clients can discover available and installed integrations, test alert retrieval, invoke declared provider methods, install webhooks, validate scopes, inspect health-capable providers, and read provider logs when log storage is enabled.

Zabbix declares the access scopes needed for alert retrieval, problem actions, and webhook setup. Keep can therefore block an incomplete integration before it is used, while exposing the supported problem actions through the common provider operation surface. Graylog declares a search operation under the same surface, so workflows and clients can use log search without depending on Graylog's API shape. Kubernetes declares a connection scope and exposes cluster queries and resource actions through the same query and notification surface.

This operational surface makes provider behavior visible without requiring each client to know the external service. It also means that a provider's declared capabilities must stay aligned with the operations it actually supports.

References: keep/…/event_subscriber.py• L8-101 keep/…/providers.py• L68-110 keep/…/providers.py• L322-365 keep/…/providers.py• L672-833 keep/…/providers.py• L836-848 keep/…/zabbix_provider.py• L71-206 keep/…/graylog_provider.py• L114-122 keep/…/graylog_provider.py• L157-234 keep/…/kubernetes_provider.py• L64-71 keep/…/kubernetes_provider.py• L143-281

Change checklist

When these files or sections are changed, remember to consider these:

  • When a provider capability, scope, tag, or method changes, check the provider catalog metadata and the API or UI behavior that consumes it.
  • When a provider type or tenant provider name changes, check workflow references and provisioning reconciliation because both use those identities to find an installed provider.
  • When alert or incident mapping changes, check webhook input, pulled input, fingerprint calculation, and deduplication rules as one contract.
  • When a provider becomes or stops being an event consumer, check startup, installation, removal, and shutdown registration with EventSubscriber.
  • When webhook setup or the Keep API endpoint changes, check both the generated webhook settings and the external provider setup path.
  • When authentication fields change, check scope validation, secret storage, OAuth exchange, and configuration metadata together.
  • When a provider's transport security settings change, check the configuration schema and the connection path together so secure and non-secure deployments remain valid.
  • When a provider maps source severity, status, or identity fields, check both pulled alerts and webhook alerts because they must produce the same Keep event contract.

Important failure modes

TriggerConsequenceGuard
Required provider settings are missing or invalidKeep cannot create the provider, so installation or a workflow operation fails.Provider configuration validation runs before the provider is used.
A mandatory access scope is not validNormal installation is rejected and the provider is not ready for use.Scope results are checked against the provider's mandatory scope declarations.
An external scope check returns an empty or non-JSON error responseAccess validation can lose the source error and report an unusable result.Providers return the response detail when available and otherwise return an HTTP status or a clear validation message.
An incoming payload cannot be mapped to a Keep eventThe external event does not become a usable alert or incident.Keep requires each provider to supply the relevant alert or incident formatter.
A monitoring provider sends an unknown severity or statusThe alert can receive a fallback severity or firing status that does not match the source state.Provider mappings must cover the source values used by both pulled and pushed alerts.
A provider secret is missing for an installed recordKeep cannot initialize that provider and may omit it from the usable installed-provider set.Secret lookup is part of provider initialization and must remain aligned with the tenant record.
A custom fingerprint rule names fields that are absent from an alertAlerts can share a fingerprint and be grouped as the same event.Keep's fingerprint path must use fields that exist in both webhook and pulled alert models.
Webhook setup is requested for a provider without webhook supportNo external webhook is installed and the source cannot use that automatic path.Provider metadata and the webhook API report whether setup is supported.
An event consumer fails to start or stopEvents can be missed, or the service can retain an unwanted consumer.The event subscriber owns consumer startup, status tracking, and shutdown.
Graylog cannot reach the configured deployment or the token lacks the required roleScope validation or alert, search, and webhook operations fail.Validate the Graylog scopes before installation and keep the deployment URL and token aligned.
Graylog webhook setup does not update the external notification pathGraylog event definitions do not send alerts to Keep.Webhook setup must complete the external URL allow-list, notification, and event-definition link as one operation.
Kubernetes cannot load manual or cluster-local credentialsScope validation fails and Kubernetes queries or actions cannot run.Provide a valid API server and token or a usable cluster credential source before installation.
Kubernetes drain is blocked by a disruption budget or protected local dataThe drain can finish with pods left on the node and report partial success.Review the failed pod list and use force or local-data deletion options only when the operational policy allows it.

Key files

FileWhy to read it
keep/…/base_provider.pyDefines the shared provider contract for configuration, alerts, incidents, queries, notifications, webhooks, consumers, health, identity, and deduplication.
keep/…/providers_factory.pyShows how Keep discovers provider types, builds the provider catalog, and creates tenant-specific provider instances.
keep/…/providers_service.pyShows the provider installation, update, deletion, scope check, webhook, and provisioning lifecycle.
keep/…/providers.pyShows the API surface for discovery, installation, testing, invocation, webhooks, health, and logs.
keep/…/step.pyShows how workflows use providers for queries and notifications and pass results to later steps.
keep/…/parser.pyShows how workflow execution loads provider settings from files, environment values, and installed tenant providers.
keep/…/event_subscriber.pyShows how event-consuming providers are started, tracked, and stopped.
keep/…/provider.pyDefines the provider metadata presented to clients and the capability labels used by the catalog.
keep/…/cilium_provider.pyIllustrates a topology integration that turns observed service flows into service relationships and supports secure relay connections.
keep/…/sentry_provider.pyIllustrates a monitoring integration that validates access, reads events, maps them to alerts, and provisions webhooks.
keep/…/zabbix_provider.pyIllustrates a monitoring integration that pulls and pushes alerts, installs a webhook, validates access, and exposes problem actions.
keep/…/graylog_provider.pyIllustrates a log and alert integration that searches data, maps alerts, validates access, and provisions Graylog notifications and event links.
keep/…/kubernetes_provider.pyIllustrates an infrastructure integration that validates cluster access, reads Kubernetes resources, and exposes operational actions for workflows.