Commit Graph
4 Commits
Author SHA1 Message Date
Priamo Germosen bea07871fb feat(elasticache): emit Valkey replication groups' OpenTelemetry metrics to CloudWatch (#10173)
Node-based Valkey replication groups emit the OpenTelemetry metrics of
the ElastiCache user guide's metrics reference to CloudWatch, where
PromQL reads them: the vended metrics every 60 seconds, and those a
resource metrics configuration selects every 15 seconds as detailed.
Each node's INFO is read straight from its server, as the backend's
administrator once a user group has turned the default user off, and
each command's type and category come from COMMAND INFO and COMMAND
DOCS.

The metric table is vendored from the reference page by
regen_elasticache_otel_metrics.py, checked by aws-data-check and the
drift workflow. VendedOtlpMetrics stores the export requests for the
account and Region. Emission is off by default behind
FLOCI_SERVICES_ELASTICACHE_OTEL_METRICS_ENABLED, since each node adds
about 8 KB to the OTLP store every minute.

Part of #7030.
2026-12-04 14:17:30 -04:00
Priamo Germosen 15bcb53828 feat(cloudwatch): republish vended metrics for PromQL through OTel enrichment (#10151)
While OTel enrichment runs in an account's Region, each datapoint Floci
vends there is republished as an OpenTelemetry data point that PromQL
reads, when the CloudWatch user guide's "Supported resources and
metrics" page lists its metric for the resource it measures with exactly
its dimension names, and the enrichment's filters keep it: include
first, then the exclude match set subtracted, empty lists permissive,
names matched exactly. The classic datapoint is stored as before.

The page's tables are vendored as aws/cloudwatch-otel-enrichment.json by
tools/aws/regen_cloudwatch_otel_enrichment.py, which copies each
namespace's scope and, per resource, whether its ARN and tags are added
and each metric's instrument type and dimension sets, and refuses a
reworded page. make cloudwatch-otel-enrichment-check reads the file's
shape offline, in aws-data-check; -verify compares it with the live page,
in iam-data-verify and the weekly drift run.

A republished series carries the guide's labels: the dimensions as data
point attributes, cloud.resource_id, provider, Region and account on the
resource, the namespace's scope with cloudwatch.source and
cloudwatch.solution, and the resource's tags as @aws.tag.<key> with
resource tag enrichment while resource tags for telemetry run. Only a
request enrichment wrote maps tag.* to @aws.tag; one a client sends keeps
@resource.tag.*. A Sum is a delta sum of the datapoint's sum; a Histogram
is a delta one-bucket histogram of its sample count, sum, minimum and
maximum, as CloudWatch does not document that conversion.

SQS queues pass their ARN and tags, and so do paused Aurora Serverless v2
instances and clusters and Redshift clusters; of those the page lists
every AWS/SQS metric and the paused instance's ACUUtilization and
CPUUtilization. A failed republication is logged and never reaches the
classic publication.

Part of #7030.
2026-12-04 09:33:01 -04:00
Priamo Germosen 215e37eb48 fix(cloudtrail): name S3 denials as CloudTrail records the operation's data event (#9460)
IamEnforcementFilter named the CloudTrail data event of a denied S3 request
from a hand-written table keyed by the IAM action, so a request checked
under another operation's action took that operation's name: HeadBucket
was recorded as ListObjects, CopyObject, UploadPart and UploadPartCopy as
PutObject, GetObjectTorrent as GetObject, ListBuckets as a data event,
and ListObjectVersions, ListParts, DeleteObjects, AbortMultipartUpload and
the legal hold and retention calls were not recorded.

A denial is now recorded under the data event of the operation the request
matched, from src/main/resources/aws/cloudtrail-s3-data-events.json, which
tools/aws/regen_cloudtrail_s3_data_events.py generates from botocore's S3
model, the S3 user guide's data events table and its sentence naming the
event a call is recorded with (vendored by
tools/aws/fetch_cloudtrail_s3_data_events.py), and AWS's S3 service
reference. An operation the table for general purpose buckets lists is
recorded under its name or the one the guide gives it (PutObjectRetention
as PutObjectLockRetention), a versioned one under the version-less name
the table lists (ListObjectsV2 as ListObjects), and an operation it does
not list records no data event. readOnly is the service reference's, by
the reading iam-action-resources.json's readOnlyActions are vendored by,
in place of CloudTrailService's hand-written list.

The IAM data drift workflow runs on a pull request touching any of the six
new files, so the online check covers a change to the table alone.
2026-11-25 15:10:24 -04:00
Andre Kurait 430088b772 fix(ci): pass IAM drift changed paths through a file (#9025)
A large pull request diff could fail the IAM data gate before any check
ran, because the workflow passed every changed path in one make argument
("Argument list too long"). The workflow now writes the paths to a file
and iam-data-verify reads it through CHANGED_FILE, keeping affected-check
selection, the CHANGED interface, full verification for an empty diff or
the weekly run, and the report of every failed check. A Python test runs
the target with stubbed checks for each of those cases.
2026-11-19 21:19:01 -04:00