Loading full navigation.

Metrics Explorer provides a centralized interface for exploring and querying OpenTelemetry (OTel) metrics in LogicMonitor. When building a metric query, the Query Builder provides a structured method for selecting a metric, applying attribute filters, and configuring aggregation, grouping, and functions.

You can also use Raw Query to enter or modify a metric query directly. After you run a query, you can visualise the resulting metric data, create an alert rule from the query, or add the metric visualisation to a dashboard.

Requirements for Exploring and Querying OpenTelemetry Metrics

To explore and query OpenTelemetry Metrics using Metrics Explorer, you need the following:

  • OpenTelemetry metrics ingested into your LogicMonitor portal.
  • A LogicMonitor user with the “View” permission to OTLP metrics.

To create an alert rule from a metric query, you need a LogicMonitor user with the “Manage” permission set and access to the alert group.

To add a metric visualization to a dashboard, you need a LogicMonitor user with the “Dashboard” permission set for the dashboard.

Exploring and Querying OpenTelemetry Metrics

  1. In LogicMonitor, navigate to more options iconMore > OTel Metrics > Metrics Explorer.
  2. To create a query for the metric data you want to explore, do the following:
    • Select Query Builder and do the following:
      1. Search for and select the metric that you want to query.
      2. In the Filter by settings, configure the filter attributes and values based on the selected metric.
        You can add as many filters as needed.
      3. Select the aggregation to apply to the metric.
      4. From the By drop-down menu, select the attribute that you want to use for grouping.
      5. (Optional) Select Add function and configure the required function.
        Query preview displays the generated query.
        Query Builder
    • To create the query manually, select Raw Query and do the following:
      1. In the query field, enter a query.
      2. In the Step field, enter the duration between query evaluation points.
        Raw Query
  3. To configure an additional query, do the following:
    1. Select Add query.
    2. Configure a time range and do the following:
      • Select the required time range from the Last 24 hours dropdown menu to specify the period for which you want to retrieve metric data.
      • To specify a custom time range, do the following:
        1. Select Custom range.
        2. In the From field, specify the start date and time.
        3. In the To field, specify the end date and time.
        4. Select Save.
  4. Select Run query.
    Review the query results in the Metric Visualisation section.
  5. (Optional) Select the required chart type from the Line Graph dropdown menu to display the metric data.
Metric Visualisation

Creating an Alert Rule from a Metric Query

  1. In the Metric Visualisation section, select Create Alert Rule.
    The Add alert page opens with the metric query automatically populated.
  2. Complete the alert configuration.
    For more information, see Adding Alert Configuration.

Adding a Metric Visualisation to a Dashboard

  1. In the Metric Visualisation section, select Add to Dashboard.
    The Add to Dashboards dialog box displays.
  2. In the Widget name field, enter a name for the widget.
  3. (Optional) In the Description field, enter a description for the widget.
  4. In the Group and dashboard section, select Add record.
  5. In the Group column, select the group.
  6. In the Dashboard column, select the dashboard.
  7. (Optional) To add another dashboard , select Add Record and configure the Group and Dashboard fields.
  8. Select Save.
Add to Dashboards dialog for saving a metric visualisation to a dashboard

14-day access to the full LogicMonitor platform