HMC

HMC & CMC

Connect, learn, share, and engage with IBM Power.

 View Only
Expand all | Collapse all

PCM metrics number of samples

  • 1.  PCM metrics number of samples

    Posted Thu November 24, 2016 04:27 AM

    Originally posted by: adejoux


    Hello, 

     

    First thank you for sharing this API. I made a small tool to load Processed Metrics PCM data in InfluxDB and Grafana and it's working really well :)

    It's available here: http://nmon2influxdb.org and http://demo.nmon2influxdb.org 

    For now, I am fetching all Processed Metrics samples available, it's the last two hours. I would like to fetch less data so NoOfSamples parameters seems good. 

    I would like to confirm it will give me the X latest samples if I don't specify StartTS or EndTS. It's to avoid playing with dates if possible. :)

     

    Thanks again for your work :)

     

    Alain



  • 2.  Re: PCM metrics number of samples

    Posted Fri November 25, 2016 11:31 AM

    Originally posted by: PAKN


    Alain, glad to see those cool visualizations you have been able to create. Its great that you are already using the new attributes transmittedBytes and transferredBytes introduced in 8.5.0.

     

    The following API for fetching processed metrics would work fine without the StartTS and EndTS fetching you the latest 10 samples.

    https://<hmc-ip>:12443/rest/api/pcm/ManagedSystem/<uuid>/ProcessedMetrics?NoOfSamples=10

    Considering the current time on the HMC is:

    Fri Nov 25 11:27:18 UTC 2016

    The StartTS and EndTS would automatically take the below values:

          "startTimeStamp": "2016-11-25T11:21:46+0000",
          "endTimeStamp": "2016-11-25T11:26:16+0000",

     

    Hope that clarifies. Thanks.



  • 3.  Re: PCM metrics number of samples

    Posted Fri November 25, 2016 02:19 PM

    Originally posted by: adejoux


    Thanks. It seemed to behave like that but I wanted a confirmation :)

     

    For transmittedBytes and TransferredBytes it's mostly because my test system was in 8.5.0. I didn't know when it was introduced :)

    I need to check hmc 8.6.0 to see if new metrics are available :)

     

    Regards,

     

    Alain