mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 10:38:00 -05:00
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.
This commit is contained in:
1 parent
e32d6cb253
commit
15bcb53828
30 files changed
+5877
-51
No files matched your search
@@ -146,6 +146,9 @@ on:
|
||||
- 'tools/aws/test_fetch_cloudtrail_s3_data_events.py'
|
||||
- 'tools/aws/regen_cloudtrail_s3_data_events.py'
|
||||
- 'tools/aws/test_regen_cloudtrail_s3_data_events.py'
|
||||
- 'src/main/resources/aws/cloudwatch-otel-enrichment.json'
|
||||
- 'tools/aws/regen_cloudwatch_otel_enrichment.py'
|
||||
- 'tools/aws/test_regen_cloudwatch_otel_enrichment.py'
|
||||
- 'tools/aws/regen_partitions.py'
|
||||
- 'tools/aws/regen_query_services.py'
|
||||
- '.github/workflows/iam-data-drift.yml'
|
||||
|
||||
Reference in new issue
Block a user