Retrieve a list of metric keys from API
search cancel

Retrieve a list of metric keys from API

book

Article ID: 398759

calendar_today

Updated On: 05-23-2025

Products

VMware Aria Suite

Issue/Introduction

  • You need a list of metric keys that can be used for creating a super metric
  • You need a list of metric keys to be used in other API calls

Environment

VMware Aria Operations 8.10+

Cause

Metric names in the UI can differ from the metric key to be used with super metrics or APIs

Resolution

  1. Navigate to Home > Launchpad > Developer Center
  2. Click API documentation
  3. Click Authorize
  4. If a previous authorization is present, click Logout
  5. Provide credentials with API access and click Authorize then click Close
  6. Type statkey in the search bar
  7. Expand Adapter Kinds
  8. Expand GET ​/api​/adapterkinds​/{adapterKindKey}​/resourcekinds​/{resourceKindKey}​/statkeys
  9. Click Try it out
  10. Fill in adapterKindKey and resourceKindKey

    Example: VMWARE and VirtualMachine

  11. Click Execute
  12. Review or download the Response Body in the Server Response section
    • The value in "key" will be the metric key to be used with super metrics and APIs
    • The value in "name" will be how the metric is referenced in the UI