Commit Graph
3 Commits
Author SHA1 Message Date
Priamo Germosen 1f5c7abaaf feat(cloudformation): provision CloudWatch OTel enrichment and resource tags for telemetry (#10157)
AWS::ObservabilityAdmin::TelemetryEnrichment starts resource tags for
telemetry in the stack's Region and stops it on delete. Scope must be
ACCOUNT; Ref returns it and Status is RUNNING.

AWS::CloudWatch::OTelEnrichment starts OTel enrichment with its filters,
updates them in place as UpdateOTelEnrichment does (a dropped list is
cleared), and stops it on delete. An update writes the filters when the
template changes them or when they resolve to other values than the
running ones, as a Ref to a resource the update replaces does. Ref and AccountId are the account,
Status is RUNNING, and a failed stack update puts the previous filters
back. Both are singletons: a create while the feature already runs fails
with AlreadyExists, as the CloudFormation handler contract requires, and
the check and the start hold one lock.

Properties go through template validation, then the schema's model
validation, with the two types added to the vendored property types.
The vendored schema data is regenerated from AWS's current archive, which
adds AvailabilityZoneId to AWS::EC2::Instance (recorded as a writable gap,
since the instance provisioner does not read it) and an EBS Throughput, and
drops ElasticGpuSpecifications and ElasticInferenceAccelerators, whose gap
rows go.
2026-12-04 10:41:26 -04:00
Priamo Germosen 00230a3612 feat(cloudwatch): start, read, update and stop OTel enrichment (#10130)
Add StartOTelEnrichment, GetOTelEnrichment, UpdateOTelEnrichment and
StopOTelEnrichment over Query, JSON 1.0 and CBOR, with one configuration
per account and Region as the user guide scopes it. Floci stores the
configuration; enriching vended metrics comes next.

Resource tag enrichment, the default, needs ObservabilityAdmin's resource
tags for telemetry running in the Region: a start without it is the
modeled ValidationError with the API reference's sentence, as AWS quotes
no message. EnableTagEnrichment false needs nothing. A start while
running changes nothing, an update replaces both filter lists as a pair
and keeps the stored tag setting it omits, and an update while stopped is
AWS's ResourceNotFoundException "OTel enrichment is not enabled for this
account". A stopped enrichment reads as its status alone.

Filters are validated as the model gives them, every violation listed in
AWS's form, then against the 100 selectors allowed across both lists. A
selector naming metrics without a namespace is refused as a null namespace
over Query too, for metric streams as well, rather than read as no selector.
Over JSON, a filter list sent as something else is refused with the
deserializer's SerializationException, and EnableTagEnrichment sent as a
string is read as the boolean it names or refused, so a malformed update
changes nothing.
Over Query, a filter name XML cannot carry is written as U+FFFD, for
metric streams too.

Part of #7030.
2026-12-03 22:58:23 -04:00
Priamo Germosen ae99b5a874 feat(observabilityadmin): serve resource tags for telemetry with its Resource Explorer managed view (#10075)
CloudWatch's OTel enrichment reads resource tags through ObservabilityAdmin's
resource tags for telemetry feature, which has to be running before
StartOTelEnrichment enables tag enrichment. Add the ObservabilityAdmin service
with StartTelemetryEnrichment, StopTelemetryEnrichment and
GetTelemetryEnrichmentStatus, one feature per account and Region.

Starting the feature has Resource Explorer create a LOCAL index when the
Region has none and a managed view that includes tags, as the CloudWatch user
guide describes. GetManagedView and ListManagedViews now answer the views
Floci's services create. A status read before the first start is the modeled
ResourceNotFoundException, and a stop of a stopped or never-started feature
changes nothing.

The passed-roles table now reads ObservabilityAdmin. A vendored source,
written from the CloudWatch user guide and the Observability Admin API
reference, gives a dataset integration's role to CloudWatch Logs, whose trust
policy it names, and gives where a telemetry pipeline's YAML configuration
names its roles: its source's and its Secrets Manager extension's, each going
to the service its source type's role trusts, and to CloudWatch Logs as well
with a lookup processor or a conditional route.

Part of #7030.
2026-12-03 21:35:28 -04:00