Documentation forServer & Application Monitor
Monitoring your applications and environment is a key capability of SolarWinds Observability Self-Hosted (formerly Hybrid Cloud Observability) and is available in the Essentials edition. Server & Application Monitor (SAM) is also available in a standalone module.

API poller use case: Monitor a Nutanix cluster

This use case shows how to use the API poller feature with another SAM feature, Monitor hardware health for Nutanix clusters. We'll create an API poller to monitor a Nutanix cluster via the Nutanix REST API. This use case includes a GET request to retrieve data about a cluster but you could also use a POST request to update the cluster's configuration.

To learn about the API, see Nutanix API Reference.

To create an API poller that monitors hardware health for a Nutanix cluster:

  1. Navigate to the Node Details view for the Nutanix node that hosts the cluster.
  2. In the Management widget, hover over the API Poller link and click Create.

  3. Select the GET Method.
  4. Provide a Request URL for the API: https://www.nutanix.dev/api_references/prism-v2-0/ that includes the following elements:
    • The https protocol encrypts data sent back and forth.
    • any_cvm_ip is a variable.
    • 9440 is the default Nutanix Prism communication port.
    • /api/nutanix/v2.0/clusters is the endpoint for the request.
  5. Click Configure.
  6. In the API Poller settings dialog box: 
    1. Provide a Name: Nutanix Prism
    2. Provide a Description: https://any_cvm_ip:9440/api/nutanix/v2.0/clusters
    3. (Optional) Disable SSL certificate verification.

      By default, SAM checks for a valid certificate in each API request. For this use case, we'll disable that option.

    4. (Optional) Enable existing SolarWinds Platform settings for proxy servers.
    5. (Optional) Adjust the default polling interval, 2 minutes.
    6. For Authorization, select Basic authorization.
    7. Select an existing set of credentials from the Credentials Library, or enter them manually.
    8. Click Save.

  7. Click Send Request.
  8. When results appears In the Response treeview at the bottom of the page, expand the data to display available metrics.
  9. For this example, we'll monitor the number of nodes and receive alerts if the quantity drops below 3, which can affect our data resiliency status.
    1. Click the Monitor () icon for the num_nodes metric.
    2. In the "Configure a value to monitor" dialog box, provide a name for the metric and set the warning threshold as less than 3.
  10. Click Save
  • Next, drill down into the Response data to find more metrics to monitor. You can add metrics to the request we just created, or duplicate the original request and edit the metric that's retrieved. For this use case, duplicate the existing request so you don't have to provide authorization details again.
  •  
  • To create another API poller for the same Nutanix cluster:
    1. Click the menu icon , and then click Duplicate.
    2. Edit the URL for the second request to retrieve the read IOPs metric:
      https://any_cvm_ip:9440/PrismGateway/services/rest/v2.0/cluster/stats?metrics=num_read_iops
    3. Click Send request to check the response.
    4. When results appears In the Response treeview at the bottom of the page, expand the data to display available metrics.
    5. Set up a warning threshold to detect when the number of read operations surpasses 200 milliseconds.
      1. Click the Monitor () icon for the num_read_iops.
      2. In the "Configure a value to monitor" dialog box, provide a name for the metric and set the warning threshold to 200.
    6. Click Save.

    When you return to the Node Details view, the API Poller widget shows the new pollers: one for the number of nodes in the Nutanix cluster and one for read IOPs. Wait 2 minutes for polling to occur. After monitored metrics appear, you can see the latest metrics received in the API Poller widget, click the Performance Analyzer link in the Management widget to display data in PerfStack, or display metrics in SolarWinds Platform Maps that include the node.