Support metadata resolution for multi-cloud envs#2032
Open
movence wants to merge 11 commits intofeature-multi-cloudfrom
Open
Support metadata resolution for multi-cloud envs#2032movence wants to merge 11 commits intofeature-multi-cloudfrom
movence wants to merge 11 commits intofeature-multi-cloudfrom
Conversation
32e08fe to
55df7e2
Compare
This was referenced Feb 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of changes
Adds multi-cloud support for metric decoration and placeholder resolution. Azure (and future cloud providers)
use OTel's resourcedetectionprocessor for metadata, while EC2 continues using ec2tagger. Disk/volume tagging
is extracted into a standalone
disktaggerprocessor that supports both AWS and Azure.Also include test fixes from #2010 and minor update to remove an unnecessary wrapper function (ref).
Cloud metadata (internal/cloudmetadata/)
Cloud provider enum (internal/cloudprovider/)
Re-export wrappers (otel-contrib)
resourcedetection processor translator
ec2tagger changes
disktagger processor (plugins/processors/disktagger/)
Pipeline translator
Placeholder resolution
Config examples
EC2 (backward compatible):
EC2 (OTel style):
Azure:
Known gap
Attribute renaming for non-EC2 clouds:
resourcedetectionprocessoradds OTel semantic convention attributes (e.g.
host.id,cloud.region,azure.vm.size) to the Resource. These are not automatically renamed to CloudWatchdimension names (e.g.
InstanceId,Region,VMSize). Theresource_to_telemetry_conversionsetting copies them to metrics, but with OTel names for CW exporters.License
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Tests
Tested on Ubuntu hosts in AWS and Azure by emitting CPU/MEM/DISK metrics
Requirements
Before commiting your code, please do the following steps.
make fmtandmake fmt-shmake lintIntegration Tests
To run integration tests against this PR, add the
ready for testinglabel.