-
Notifications
You must be signed in to change notification settings - Fork 67
No way to know which environment generated event in Azure Web Sites #248
Comments
We might need to use %WEBSITE_HOSTNAME% for Rolename instead of WEBSITE_SITE_NAME, as the former appends the 'slot' name to the sitename.
|
%WEBSITE_HOSTNAME% combined with WEBSITE_INSTANCE_ID would be needed. Because HostName alone will not be able to distinguish between instances, and instance_id can't distinguish slots. So a combination should be used. |
Fixed: #250 |
Ok, the fix was applied to send slot as a nodeName. However nodeName is not exposed neither in UI nor in analytics. So it wasn't really fixed. Consider sending it as a role name instead of a host name Also |
@iusafaro can you please comment on this? |
Yes, we're using HostName for NodeName as it contains slot. However ideally we'd like to use instance name, but there's no reliable way to get it - instance ID exposed by Azure Web Apps is tied to computer name and we don't want to over-count nodes as machine can be taken out of rotation and replaced by Azure. We decided to use machine name for Role Instance Name as it was before to be in consistence with Quick Pulse. Otherwise it's very confusing when you see one metrics reported by machine name and other by instance ID. Also I would continue using machine name as it's also used by Azure Web Apps itself when looking at Metrics per instance. |
Since NodeName is not exposed in UI - we still need to expose slot somehow. Options are role name or custom property. |
PR : #314 |
Issue #248 Azure Web App - update role name to contain the slot
In beta4 we used full name with the "slot" name as instance name:
In beta6 we are using hash code of an instance and kept role name to be the role name of the "main" site:
So now there is no way to know which slot dependency was sent from. Consider adding a custom property or change the role name property
The text was updated successfully, but these errors were encountered: