Metric query


As a tenant administrator or an editor, use the Metric query type to fetch the performance metrics data from BMC Helix Operations Management or BMC Helix Continuous Optimization.

This query type uses the PromQL or MetricsQL syntax.

This query requires the following data:

Examples

Here are a few examples of the Metric query type to fetch data from BMC Helix Operations Management:

  • View the CPU utilization for a LINUX host, where the host name is hostA.bmc.com.
    Utilization{hostname="hostA.bmc.com"}
  • View the available filesystem space on a device for the root file system, where the host name is hostB.bmc.com.
    AvailableSpace{hostname="hostB.bmc.com", entityName="root"}
  • View the CPU utilization of the Kubernetes Namespace
    label_replace({__name__="CPUUtilization",entityTypeId="K8S_NAMESPACE",entityName=~"$K8_Env@$Namespace"}, "Var1", "${1}", "entityName", "^.*@(.*)")
  • View the sum of the aggregate data of the metric name MEMmemVMUsed. If you have any host name, this query will return the aggregate data for both the entity and the host name
    sum_over_time({__name__="MEMmemVMUsed",entityId="954c01b0-ed43-4b50-8dcc-cce56ce91ea5:NT_MEMORY:NT_MEMORY",entityTypeId="NT_MEMORY"}[1h])
  • View the sum of data points for the metric MEMmemVMUsedsum({__name__="MEMmemVMUsed",entityId="954c01b0-ed43-4b50-8dcc-cce56ce91ea5:NT_MEMORY:NT_MEMORY",entityTypeId="NT_MEMORY"})

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*