Cloud Intelligence

Cloud Intelligence

Warning

The DevOps Portal has been deprecated in the Q4`18 MCP release tagged with the 2019.2.0 Build ID.

The Cloud Intelligence service collects and stores data from MCP services, including OpenStack, Kubernetes, bare metal, and others. The data can be queried to enable use cases such as cost visibility, business insights, cost comparison, chargeback/showback, cloud efficiency optimization, and IT benchmarking. Operators can interact with the resource data using a wide range of queries, for example, searching for the last VM rebooted, total memory consumed by the cloud, number of containers that are operational, and so on.

Note

The Cloud Intelligence service depends on the following services:

  • DevOps Portal web UI
  • Elasticsearch cluster (version 5.x.x or higher)
  • Runbook Automation

To start creating queries that will be submitted to the search engine and display the list of resources:

  1. Log in to the DevOps Portal.

  2. Navigate to the Cloud Intelligence dashboard.

  3. Create your query using the cloud intelligence search query syntax:

    • To search by groups, use:

      • type=vm for instances
      • type=image for images
      • type=flavor for flavors
      • type=host for hosts
      • type=availabilityZone for availability zones
      • type=network for networks
      • type=volume for volumes
      • type=stack for Heat stacks
      • type=tenant for tenants
      • type=user for users
    • To search by field names, specify the field name with the value it contains. For example:

      Note

      The search by query string is case-insensitive.

      • status=active displays all resources with Active in the Status field, meaning they are in active status
      • status=(active saving) displays all resources in Active or Saving statuses
      • name="test_name" displays all resources which Name fields contain the exact phrase test_name
    • To group a number of queries in a single one, use the following boolean search operators:

      Type search
      Operator Meaning Usage example
      | The pipe symbol stands for OR operation minDisk=0 | minRam=0
      + The plus symbol stands for AND operation minDisk=0 + minRam=0
      - The minus symbol negates a single token minRam=0 + -minDisk=40 searches for resource with minRam equal to 0 and minDisk not equal to 40 at the same time
      ( ) Parentheses signify grouping and precedence (minDisk=0 minRam=0) + minDisk=40
    • To search for the reserved characters, escape them with \. The whole list of these characters includes + - = & | > < ! ( ) { } [ ] ^ " ~ * ? : \ /.

  4. View search results:

    • An item name and most important properties are visible by default.
    • To view the full item properties list, click on the item block.

    Note

    If you have the Cleanup service enabled, the Create Janitor rule button is available for the groups that Janitor supports like VMs, Images, and Tenants. The button provides the same functionality as the Create new rule button on the Janitor dashboard with the conditions list prefilled with item-specific properties.

  5. Export search results into JSON, YAML, and CSV formats using the corresponding buttons on the Cloud Intelligence dashboard. The exported data contains the original query and the resulting groups with their items.