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.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[META 388] Proposal for collecting Azure App Service cloud metadata #365
[META 388] Proposal for collecting Azure App Service cloud metadata #365
Changes from 4 commits
fc81ca6
e262bba
2259cd4
e737a81
d459a6e
af4b6ea
9768039
c86dce2
dd3b003
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What @axw said in an earlier comment:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The presence of
WEBSITE_*
environment variables and the format ofWEBSITE_OWNER_NAME
should be sufficient.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there value in capturing the cloud product, perhaps
cloud.product: azure-app-service
as well? It appears we'd need a new cloud ecs field.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++ I think there could be. cloud fields look to be very much intended for VMs e.g.
availability_zone
,machine_type
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With elastic/ecs#1204 we will have an ECS field for this as of next release -
cloud.service.name
. elastic/apm-server#4625 is tracking addition to the intake for this.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for somehow capturing the fact that this set of metadata is being captured in an
azure-app-services
environment in order to make it distinct from data collected via the instance endpoints. I was thinking similar thoughts when I investigated this for node.js recently specifically around a theoretical problem of a user looking at two sets ofazure
data and wondering why different fields are collected from each.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@russcam datapoint: When I deployed a node application via azure app services my region looked like
i.e. the
WEBSITE_OWNER_NAME
was delimited with underscores characters (_
) and not the hyphen/dash. You can see this here (will be slow in coming up if the app's gone idle)What do you think about spec-ing this as splitting by
-
OR_
-- or perhaps even "splitting by non-alpha-numeric-characters"?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the additional data point. Looks like there may be some cross-language and cross-platform differences in environment variable values. For example, the node app value is
The extracted region should be
CentralUS
, though the value includes a-Linux
suffix which wasn't present on the .NET app service.I think what might be good for me to do before updating the PR is to deploy some other language app services to see if there is more variation in values. It might be a simple case of updating the
WEBSITE_OWNER_NAME
rule to substring from 0 up to start ofwebspace
, then split by-
and take the last value.