Skip to content
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

Add computer name to azure sd #9112

Merged
merged 2 commits into from
Jul 30, 2021

Conversation

darshanime
Copy link
Contributor

closes #8499
Signed-off-by: darshanime deathbullet@gmail.com

Signed-off-by: darshanime <deathbullet@gmail.com>
@@ -490,6 +494,7 @@ func mapFromVMScaleSetVM(vm compute.VirtualMachineScaleSetVM, scaleSetName strin
return virtualMachine{
ID: *(vm.ID),
Name: *(vm.Name),
ComputerName: *(vm.VirtualMachineScaleSetVMProperties.OsProfile.ComputerName),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. I tend to be very cautious here and add a few nil checks. Are those fields all guaranteed to be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! addressed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we were not cautious enough :) #9382

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢 sorry about this. I saw you mentioned I will work on a fix ASAP. already, let me know if I can help.

Signed-off-by: darshanime <deathbullet@gmail.com>
@roidelapluie roidelapluie merged commit 24165ad into prometheus:main Jul 30, 2021
@roidelapluie
Copy link
Member

Thanks!

@darshanime darshanime deleted the add_computer_name branch July 30, 2021 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add computer name as meta label in azure_sd_config
2 participants