Metric Explorer

更新时间:
复制 MD 格式

This topic describes how to use Metric Explorer. Performing in-depth analysis with Metric Explorer is crucial to understanding and optimizing your business performance.

Prerequisites

You have sent your application data to Managed Service for OpenTelemetry. For more information, see Integrate services or components.

Procedure

  1. Log on to the Managed Service for OpenTelemetry console.

  2. In the left-side navigation pane, choose Advanced Query > Metric Explorer.

  3. On the Metric Explorer page, you can add multiple query panels. By default, the page displays query panels A and B. You can click + Add query at the bottom to add more query panels.

    For example, in query panel A, you can use the Prometheus Query Language (PromQL) to write queries to retrieve and analyze metric data.

    • Metric and Labels filters: You can filter metrics by searching for keywords, selecting a metric from the Metric dropdown list, and specifying key-value pairs in the Labels filter.

    • Operations: Click + Operations to add a function. The Operations section lets you apply various functions, range functions, aggregations, and binary operations to the target metric.

    • Run query: Select a time range and click Run query to execute the query. For example, you can query the amount of external system traffic. The results appear below as a chart and a detailed list.

    Note

    For more query examples and detailed syntax, refer to the official Prometheus documentation on PromQL.

    In this example, for Metric, select arms_system_net_out_bytes, and for Labels, set host = 192.168.0.148. The generated PromQL query is arms_system_net_out_bytes{host="192.168.0.148"}.