DX Infrastructure Manager

Expand all | Collapse all

How to retrieve CPU metrics from UIM via REST API?

  • 1.  How to retrieve CPU metrics from UIM via REST API?

    Posted 10-30-2018 12:46 PM

    I'm interested in collecting various CPU metrics from UIM (v8.51) for all of the "computer systems" that are registered within our UIM instance. I'd like to use the REST API approach to do this, and I've deployed/tested/validated the "webservice_rest" package. The goal is to leverage the REST approach in Splunk as a modular input in order to index and visualize the metric data on that platform.

     

    I have used the "/ci/metricdefinitions/" call to identify the metrics I'm interested in (for example, "% CPU Time")...but I'm not sure what call I would use to generate the metric data for all of the computer systems. Any assistance would be greatly appreciated.



  • 2.  Re: How to retrieve CPU metrics from UIM via REST API?

    Posted 10-30-2018 01:29 PM


  • 3.  Re: How to retrieve CPU metrics from UIM via REST API?

    Posted 11-06-2018 08:31 AM

    Looking at the calls, don't see what you want, and instead the call is based on a specific system name, source, target.

    Target for example could be disk C:, or D:, or CPU 1, CPU2, those are all different targets.

    probably need to start with
    Get Targets for QoS-Name and Source

     

    guessing you want current and not historical so it would be
    Get Raw QoS Data



  • 4.  Re: How to retrieve CPU metrics from UIM via REST API?

    Posted 11-08-2018 01:30 PM

    Thank you both for the guidance. I'm also curious to know a couple of things relevant to the REST call:

     

    a) If I want to collect metrics for all "sources" (i.e., computers) at once as opposed to specifying a single source, how would I accomplish that? Can I use a wildcard approach?

     

    b) When I was looking through disk metrics, I found some targets defined as "C:/". How do I specify that target in the REST call? Do I need to escape the backslash somehow?



  • 5.  Re: How to retrieve CPU metrics from UIM via REST API?

    Posted 11-08-2018 03:09 PM

    A) based on the documentation it does not seem possible to get the data for all sources in one call.

    B) use 'Get QoS Data (Using the Table ID)' get table ID from s_qos_data



  • 6.  Re: How to retrieve CPU metrics from UIM via REST API?

    Posted 11-16-2018 08:42 AM

    Thank you, David...this is a great starting point for me to work with.