Skip to content

Sample for using appliance Monitoring #257

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

Merged

Conversation

karaatanassov
Copy link
Contributor

@karaatanassov karaatanassov commented Jan 13, 2021

This sample shows how to use the appliance Monitoring interface.

The sample calls:

  1. Monitoring.list() API to obtain list of counters.
  2. Monitoring.query() API to obtain CPU and Memory statistics for the
    last 5 days

Sample output (table with formatted time series data):

vcenter server = sc2-rdops-vm06-dhcp-192-66.eng.vmware.com
vc username = [email protected]
Example: Query Monitoring for Timeseries Data:
-------------------

Metric                   2021-01-11              2021-01-12              2021-01-13              
cpu.totalfrequency       4788.91000000003        4788.910000000093       4788.910000000022       
cpu.systemload           0.6416814159292042      0.567210599721061       0.5591065830721007      
mem.util                 12477816.737463126      12260877.439330544      12179708.608150471      
mem.total                16413756.0              16413756.0              16413756.0              
mem.usage                76.02048390059609       74.69879191167777       74.20427480553785       
cpu.util                 13.568788627868807      12.823087055205912      11.284068845256204      
cpu.steal                0.0                     0.0                     0.0                     
swap.pageRate            1.3171504645318802e-05  1.1718624350229224e-05  1.166378552013087e-05 

@vmwclabot
Copy link

@karaatanassov, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <[email protected]> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@karaatanassov karaatanassov force-pushed the kkaraataanassov/monitoring-sample branch from 7ee7de6 to 2ef5401 Compare January 13, 2021 10:43
@karaatanassov karaatanassov force-pushed the kkaraataanassov/monitoring-sample branch 2 times, most recently from dde44e0 to 6bdeff3 Compare January 13, 2021 10:54
Copy link
Contributor

@anusha94 anusha94 left a comment

Choose a reason for hiding this comment

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

LGTM!

This sample shows how to use the appliance `Monitoring` interface.

The sample calls:

1. `Monitoring.list()` API to obtain list of counters.
2. `Monitoring.query()` API to obtain CPU and Memory statistics for the
last few days

Signed-off-by: Kiril Karaataassov <[email protected]>
@karaatanassov karaatanassov force-pushed the kkaraataanassov/monitoring-sample branch from 6bdeff3 to 2727e67 Compare January 13, 2021 11:26
@anusha94 anusha94 merged commit 9f62581 into vmware:master Jan 13, 2021
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.

3 participants