File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -171,10 +171,10 @@ func (p *LogAnalyticsProber) translateWorkspaceIntoConfig(val string) WorkspaceC
171
171
workspaceConfig .CustomerID = to .String (workspaceResource .Properties .CustomerID )
172
172
173
173
if resourceInfo , err := armclient .ParseResourceId (workspaceConfig .ResourceID ); err == nil {
174
- workspaceConfig .Labels ["workspaceResourceID" ] = workspaceConfig .ResourceID
175
- workspaceConfig .Labels ["workspaceResourceGroup" ] = resourceInfo .ResourceGroup
176
- workspaceConfig .Labels ["workspaceResourceName" ] = resourceInfo .ResourceName
177
- workspaceConfig .Labels ["workspaceLocation" ] = to .String (workspaceResource .Location )
174
+ workspaceConfig .Labels ["workspaceResourceID" ] = strings . ToLower ( workspaceConfig .ResourceID )
175
+ workspaceConfig .Labels ["workspaceResourceGroup" ] = strings . ToLower ( resourceInfo .ResourceGroup )
176
+ workspaceConfig .Labels ["workspaceResourceName" ] = strings . ToLower ( resourceInfo .ResourceName )
177
+ workspaceConfig .Labels ["workspaceLocation" ] = strings . ToLower ( to .String (workspaceResource .Location ) )
178
178
179
179
// add custom labels
180
180
workspaceConfig .Labels = p .tagManagerConfig .AddResourceTagsToPrometheusLabels (
You can’t perform that action at this time.
0 commit comments