File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const (
1919appNameStr = "AppName"
2020subscriptionIDStr = "SubscriptionID"
2121vmNameStr = "VMName"
22+ vmIDStr = "VMID"
2223versionStr = "AppVersion"
2324azurePublicCloudStr = "AzurePublicCloud"
2425defaultTimeout = 10
@@ -183,6 +184,7 @@ func (th *telemetryHandle) TrackLog(report Report) {
183184trace .Properties [resourceGroupStr ] = th .metadata .ResourceGroupName
184185trace .Properties [vmSizeStr ] = th .metadata .VMSize
185186trace .Properties [osVersionStr ] = th .metadata .OSVersion
187+ trace .Properties [vmIDStr ] = th .metadata .VMID
186188}
187189
188190// send to appinsights resource
@@ -206,6 +208,8 @@ func (th *telemetryHandle) TrackMetric(metric Metric) {
206208aimetric .Properties [subscriptionIDStr ] = th .metadata .SubscriptionID
207209aimetric .Properties [vmNameStr ] = th .metadata .VMName
208210aimetric .Properties [versionStr ] = th .appVersion
211+ aimetric .Properties [resourceGroupStr ] = th .metadata .ResourceGroupName
212+ aimetric .Properties [vmIDStr ] = th .metadata .VMID
209213}
210214
211215// copy custom dimensions
You can’t perform that action at this time.
0 commit comments