Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1552288 - [RFE] Metrics for memory usage of AWS instances is missing from C&U
[RFE] Metrics for memory usage of AWS instances is missing from C&U
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers (Show other bugs)
5.8.0
x86_64 Other
medium Severity medium
: GA
: 5.9.2
Assigned To: Alexander Zagaynov
Nandini Chandra
: FutureFeature, ZStream
Depends On: 1519872
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-06 16:53 EST by Satoe Imaishi
Modified: 2018-09-10 09:08 EDT (History)
12 users (show)

See Also:
Fixed In Version: 5.9.2.1
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1519872
Environment:
Last Closed: 2018-05-07 16:43:18 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: AWS


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1328 None None None 2018-05-07 16:43 EDT

  None (edit)
Comment 2 CFME Bot 2018-03-06 17:01:56 EST
New commit detected on ManageIQ/manageiq-providers-amazon/gaprindashvili:

https://github.com/ManageIQ/manageiq-providers-amazon/commit/ccf96331b72dbee4d0ea1512732f6739f824bf0a
commit ccf96331b72dbee4d0ea1512732f6739f824bf0a
Author:     Bronagh Sorota <bsorota@redhat.com>
AuthorDate: Wed Jan 31 09:40:53 2018 -0500
Commit:     Bronagh Sorota <bsorota@redhat.com>
CommitDate: Wed Jan 31 09:40:53 2018 -0500

    Merge pull request #393 from AlexanderZagaynov/BZ-1519872

    AWS memory usage collection
    (cherry picked from commit 5909c162326b98cb1989527c4d2e4edb104a73c4)

    https://bugzilla.redhat.com/show_bug.cgi?id=1552288

 app/models/manageiq/providers/amazon/cloud_manager/metrics_capture.rb | 80 +-
 spec/models/manageiq/providers/amazon/cloud_manager/metrics_capture_spec.rb | 34 +-
 spec/vcr_cassettes/manageiq/providers/amazon/cloud_manager/metrics_capture.yml | 2342 +
 3 files changed, 2430 insertions(+), 26 deletions(-)
Comment 4 Nandini Chandra 2018-04-13 12:23:54 EDT
Could this be backported to 58?
Comment 9 Nandini Chandra 2018-05-01 10:24:52 EDT
Verified in 5.9.2.3

vmdb_production=# select mem_usage_absolute_average from metrics where resource_name = 'cu-24x7'\x\g\x

mem_usage_absolute_average | 38.99
-[ RECORD 21 ]-------------+-----------------
mem_usage_absolute_average | 38.99
-[ RECORD 22 ]-------------+-----------------
mem_usage_absolute_average | 38.99
-[ RECORD 23 ]-------------+-----------------
mem_usage_absolute_average | 35.99
-[ RECORD 24 ]-------------+-----------------
Comment 12 errata-xmlrpc 2018-05-07 16:43:18 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:1328
Comment 13 Alexander Zagaynov 2018-09-10 09:08:12 EDT
Notes about testing:

- ssh to VM
- make sure you have swap enabled:
-- `free -h` will show how much swap memory you have
-- if zero, let's create swapfile, you can use this instruction: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-swapspace#swap-creating-file
- install `stress` utility
- use `stress --vm-bytes $(awk '/MemAvailable/{printf "%d\n", $2 * 1.6;}' < /proc/meminfo)k --vm-keep -m 1` to utilize memory (where "1.6" is the coefficient to the memory available, it means "100% of available memory and 60% more, which should use swap")
- wait 10-20 minutes to see new metric values (because they are "average", they will not be changed immediately)

Note You need to log in before you can comment on or make changes to this bug.