[FEATURE] Enhanced AWS Resource Metadata Support #1732
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary: Enhanced AWS Resource Metadata Support
Enhancement Overview
This PR adds enhanced AWS resource metadata support to YACE (Yet Another CloudWatch Exporter), extending its capabilities beyond basic tag collection to include service-specific attributes.
DynamoDB Enhancement:
table_class
(Standard vs Standard-IA)billing_mode
(Pay-per-request vs Provisioned)table_status
(Active, Creating, Deleting, etc.)Solution Architecture
Implemented a flexible and extensible AWS resource metadata collection framework that:
Extended
TaggedResource
struct with a newMetadata
field (map[string]string
) to store service-specific attributes alongside existing tagsBuilt a scalable service filter architecture using the
ServiceFilters
map, allowing each AWS service namespace to define custom metadata collection logicAdded DynamoDB metadata collection as the first implementation example:
Enhanced Prometheus metric generation to export metadata as additional labels in info metrics alongside existing tag labels
Benefits
aws_dynamodb_consumed_read_capacity_units{table_class="Standard"}
Enhanced Output
Before:
After (with additional metadata):
This enhancement provides a solid foundation for extending metadata collection to other AWS services such as EC2 instance types, RDS engine versions, S3 bucket classes, and more, making YACE even more powerful for comprehensive AWS monitoring.