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
Azure Discovery incorrectly discovering de-allocated VM NICs #4340
Comments
Thanks for the report. |
Sure…however, I am no Go programmer – quite the opposite.
I’ve forked and created PR 4341<#4341>
I think this should do it
Shaun Laughton
Consultant
Shaun Laughton Consulting Limited
m: +44 7803 836 220
e: shaun@shnlghtn.com<mailto:shaun@shnlghtn.com>
w: http://shnlghtn.com<http://shnlghtn.com/>
Connect on LinkedIn<https://www.linkedin.com/in/shaun-laughton-95868b4/> | Twitter<https://twitter.com/smlmedlrg>
From: Krasi Georgiev <notifications@github.com>
Sent: 03 July 2018 15:43
To: prometheus/prometheus <prometheus@noreply.github.com>
Cc: Shaun Laughton <shaun@shnlghtn.com>; Author <author@noreply.github.com>
Subject: Re: [prometheus/prometheus] Azure Discovery incorrectly discovering de-allocated VM NICs (#4340)
Thanks for the report.
Do you think you can open a PR for a fix?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#4340 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ARkYWXQW6iWd1gERlpK6h3Bou21mSiqJks5uC4LvgaJpZM4VBCPV>.
|
that might be tricky than as we would probably need a unit tests, DCO signing, changes to the comment etc. |
Hi Krasi
I’ve amended the commit message with DCO signing message, and pushed my code again. Seems the repo has both the old and new commit messages
Shaun Laughton
Consultant
Shaun Laughton Consulting Limited
m: +44 7803 836 220
e: shaun@shnlghtn.com<mailto:shaun@shnlghtn.com>
w: http://shnlghtn.com<http://shnlghtn.com/>
Connect on LinkedIn<https://www.linkedin.com/in/shaun-laughton-95868b4/> | Twitter<https://twitter.com/smlmedlrg>
From: Krasi Georgiev <notifications@github.com>
Sent: 03 July 2018 17:16
To: prometheus/prometheus <prometheus@noreply.github.com>
Cc: Shaun Laughton <shaun@shnlghtn.com>; Author <author@noreply.github.com>
Subject: Re: [prometheus/prometheus] Azure Discovery incorrectly discovering de-allocated VM NICs (#4340)
that might be tricky than as we would probably need a unit tests, DCO signing, changes to the comment etc.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#4340 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ARkYWUQ2dO7hFsBI8UivkjMdKDzvAP_zks5uC5i3gaJpZM4VBCPV>.
|
I'm looking into this. |
Looking at this for our bugscrub, business logic like this belongs in relabelling. #5569 aims to add the metadata that'd allow for this. |
Hello from the bug scrub. Keeping this open as active. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
Looks like the Azure Discovery code is using the IP address to determine whether a VM is de-allocated or not. Dynamic Private IP addresses are not released back to the pool when a VM is deallocated. The comment in the code reads
This is no longer the case. It would make more sense now to use the
MacAddress
property of the NIC, as this will is NULL when the VM is allocated.The text was updated successfully, but these errors were encountered: