1
0
mirror of https://github.com/prometheus/alertmanager.git synced 2026-10-23 08:48:56 +03:00
Files
alertmanager/buf.yaml
Siavash Safi f5706fbac7 feat(eventrecorder): replace event output schema
Replace the original event recorder schema with events/v2. Alert labels,
alert annotations, group labels, silence annotations, and muted-alert labels
are now encoded as maps instead of nested ordered label pairs.

This is a breaking change for every event recorder output. JSON consumers must
handle the new map-based fields, and protobuf consumers must regenerate their
bindings from proto/eventrecorder/events/v2/events.proto.

Remove the legacy eventrecorderpb schema and generated bindings. Register the
new schema as the event recorder Buf module and use it directly for all file,
webhook, Kafka, and stdout outputs without version selection or conversion.

Event producers now construct opaque eventrecorder.Event values through
snapshotting constructors instead of depending on protobuf types. Destinations
receive the typed Event and serialize it as JSON or protobuf. Event metadata is
attached without mutating the constructed payload.

Also include silence annotations in recorded events.

BREAKING CHANGE: Event recorder outputs now use the events/v2 schema and
map-based label and annotation fields. The legacy eventrecorderpb wire format
is no longer supported.

Signed-off-by: Siavash Safi <siavash@cloudflare.com>
2026-08-28 14:09:00 +02:00

14 lines
457 B
YAML

# For details on buf.yaml configuration, visit https://buf.build/docs/configuration/v2/buf-yaml
version: v2
modules:
- path: cluster/clusterpb
name: prometheus/alertmanager/cluster
- path: nflog/nflogpb
name: prometheus/alertmanager/nflog
- path: proto/api
name: prometheus/alertmanager/api
- path: proto/eventrecorder
name: prometheus/alertmanager/eventrecorder
- path: silence/silencepb
name: prometheus/alertmanager/silence