How to extract labels/custom metadata from a virtual machine in GCP #40940
Unanswered
nadarashwin
asked this question in
Q&A
Replies: 1 comment
-
We forked the repo and patched it to extract custom metadata. And updated the manifest file with the following
P.S: This may not be the recommended way! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have custom metadata/labels on GCP virtual machines that we plan to add as a label to the OTEL collector.
However, don't see how to extract it by referring to https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourcedetectionprocessor/README.md#gcp-metadata
There is a way to extract tags for AWS and Azure, so I would like to know if there is a way to do it for GCP virtual machines.
Didn't find it here https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourcedetectionprocessor/internal/gcp/documentation.md
For example:
We have custom metadata like env, tier, monitoring, etc which isn't constant but changes for every cluster operation.
We were able to get that information for AWS and Azure, but not for GCP, as it doesn't have a way to extract those custom metadata/labels.
Beta Was this translation helpful? Give feedback.
All reactions