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:

FieldDescription
Query TypeUse this field to select the query type
Source

The following sources are available:

  • Monitor
  • Optimize

You can select either of these sources to fetch data from BMC Helix Operations Management or BMC Helix Continuous Optimization.

Metrics browser

Add a metrics query to this field.

As you type your query, you will receive label suggestions based on the available metrics.

To see a list of the available metric and labels, click the Metrics browser field. For more information, see https://bit.ly/3icgDHf.

BMC Helix Dashboards does not support the Use as rate query option as part of the Metrics browser.

Legend

Add a legend to appear in the panel.

You can use a variable here. For example, the value of the {{hostname}} variable is replaced with the host name in the panel.

Min stepAdd a threshold for a lower limit of the Prometheus query. This setting is absolute, and cannot be changed by the value in the Resolution field.
Resolution

Sets the parameter for each pixel to correspond to one data point of a Prometheus range query. Use lower resolutions for better performance.

For more information, see https://bit.ly/2YGLMZR Open link .

Format

Select one of the following formats for the panel:

  • Time Series
  • Table
  • Heatmap
Instant

Use this radio button to return only the latest value for the requested time series. Instant queries return results faster than the normal range queries.

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 MEMmemVMUsed
    sum({__name__="MEMmemVMUsed",entityId="954c01b0-ed43-4b50-8dcc-cce56ce91ea5:NT_MEMORY:NT_MEMORY",entityTypeId="NT_MEMORY"})
Was this page helpful? Yes No Submitting... Thank you

Comments