Description of problem: ----------------------- Metrics are not being captured from Azure. Version-Release number of selected component (if applicable): ------------------------------------------------------------- 5.9, 5.10 How reproducible: ---------------- Always Steps to Reproduce: ------------------ 1. 2. 3. Actual results: --------------- Unable to capture metrics from Azure Expected results: ---------------- It should be possible to capture metrics from Azure. Additional info: ---------------
It looks like MS is sending different metric names and we would have to switch over to the new names. https://github.com/ManageIQ/manageiq-providers-azure/issues/314
Alexander, Please let me know if this is being targeted for 5.10.1. Thanks, Nandini
I guess it's too late for 5.10.1
*** Bug 1679428 has been marked as a duplicate of this bug. ***
Root reason of this BZ is that Microsoft doesn't serve "2014-04-01" api version anymore, and collection code where relying on it hard (https://github.com/ManageIQ/azure-armrest/blob/master/lib/azure/armrest/insights/metrics_service.rb#L129). Right now I can find on the Microsoft's site documentation for the latest version only: https://docs.microsoft.com/en-us/rest/api/monitor/metrics/list But it doesn't have data, which is needed to gather "memory" metrics (https://github.com/ManageIQ/manageiq-providers-azure/blob/124ab858422fa249acf2e12c6f47d15eefd682bf/app/models/manageiq/providers/azure/cloud_manager/metrics_capture.rb#L152) So, I had to use trial-and-error method to find replacement in other available api versions. Problem is with the "memory" metric only, others are available through modern API easily. I propose to do release without "memory" right now, because I need more time to research for alternative ways to get it. Everything else (CPU, Disk, Network) is working.
https://github.com/ManageIQ/manageiq-providers-azure/pull/335
I am able to verify that cap and util data is collected for Azure in CFME 5.11.0.11 via enabling the Cap and Util roles and looking at the utilization data for a VM ("Monitoring -> Utilization" from a VM details page). However is this all that needs to be done for verification? Is there any (better) way to verify that metrics are captured for azure?
After discussing with nachandr, this appears to be sufficient for verifying the BZ. I am going to mark this as verified.
To do some load and make metrics observable, you can use following commands (on linux): - Disk load: `sudo dd if=/dev/urandom of=/mnt/data/test/something bs=1GiB count=2 iflag=fullblock status=progress` - Memory load: `let size=1024**3*2; export BIG=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w $size - | head -n 1)` - Network load: `wget https://sample-videos.com/video123/mkv/720/big_buck_bunny_720p_30mb.mkv` - CPU load: same as memory or disk load.