Loading full navigation.

You can use the Advanced Metrics widget to display an aggregation of metrics across multiple DataSources and visually represent the data similar to a Custom Graph widget, Big Number widget, Pie Chart widget, or a Gauge widget. The enhanced flexibility provided by the Advanced Metrics widget’s visualization options enables you to more effectively highlight the data most relevant to identifying root causes, prioritizing alerts, and reducing time to resolution.

Advanced metric widget

The Advanced Metrics widget supports LogicMonitor Query Language (LMQL) and OTLP metric queries. When configuring the widget, select the query type based on the following metrics you want to visualize:

Metric TypeQuery LanguageDescription
LogicMonitor MetricsLMQLYou can build structured queries that combine multiple datapoints in a single query, filter data using properties, and perform advanced aggregations directly in your queries.

You can override the query builder time range when configuring the widget, enabling you to calculate and display metrics based on the selected dashboard or widget time range instead of the time range defined in the LMQL query.
OpenTelemetry MetricsPromQLYou can query metrics ingested through OpenTelemetry. The Advanced Metrics widget supports scope-based access control for OpenTelemetry metrics, ensuring that you can query and visualize only metrics within the scopes assigned to specific roles.

You can build your query with the Query Builder or enter a raw query. The Query Builder provides a structured method for creating queries by selecting base properties, such as a resource or instance, applicable values, additional property filters, and query functions. You can also add additional property filters and values, and the query functions to perform the operations on your data.

Note: Only resource properties are supported in the additional filters.

Alternatively, you can create your query as a raw query directly in the widget configuration settings. This method enables you to leverage dashboard-level or parent dashboard group level tokens in your raw query string. For OTLP metrics, you can enter a PromQL query directly in the widget configuration settings.

Note: The Query Builder does not contain all the functionality that creating a raw query offers. For a full reference on LMQL, including all functionality available when creating a raw query, see LogicMonitor Query Language (LMQL) Reference for Advanced Metrics Widget.

In addition, you can configure multiple queries in a single Advanced Metrics widget to visualize related metric data together. Each query can target different metrics or apply different query criteria, enabling you to compare multiple datasets within the same visualization. You can switch between queries in the configured widget.

Note: The ability to display multiple queries and leverage transformations is only available when using the table visualization type.

Advanced Metrics Widget Visualization Options

The Advanced Metrics widget provides multiple visualization options for displaying and analyzing metric data. The following table describes the available visualization options:

Visualization OptionDescription
Line GraphDisplays metric values as lines over time, enabling you to monitor trends, identify patterns, and compare changes across multiple metric series.
Area GraphDisplays metric values over time with the area beneath each line filled, making it easier to visualize trends and the magnitude of metric values.
Stack GraphDisplays multiple metric series as stacked areas over time, enabling you to visualize the combined total and the contribution of each series.
Big NumberDisplays metric values as prominent numerical values, enabling you to quickly identify key measurements and monitor individual metrics.
Pie ChartDisplays metric values as slices of a circle, enabling you to compare the relative proportions of individual values within a dataset.
Donut ChartDisplays metric values as segments of a ring, enabling you to compare the relative proportions of individual values within a dataset.
GaugeDisplays metric values on a gauge, enabling you to assess current values relative to a configured range.
TableDisplays metric data in rows and columns, enabling you to compare values across multiple queries. You can optionally configure transformations to merge query results, convert metric series into rows, organize fields, and sort data. You can also configure field overrides to customize how individual fields display.
Note: The Table visualization is the only option that supports multiple queries (up to four) and transformations. It also supports field overrides for customizing the appearance of individual fields without modifying the underlying query data.
HeatmapDisplays the distribution of metric values over time using color-coded cells, enabling you to identify patterns, concentrations, and changes in metric distribution. You can configure time intervals and value ranges to control how the data is grouped and displayed.

Transformations for Advanced Metrics Widget

You can apply transformations to combine, organize, and customize query results displayed in an Advanced Metrics widget. Transformations enable you to combine data from multiple queries into a single table, convert metric series into rows, and control how fields and values appear in the resulting table.

Note: The ability to display multiple queries and leverage transformations is only available when using the table visualization type.

The following transformations determine how query results are combined and structured in the table:

TransformationsDescription
MergeCombines results from multiple queries into a single table based on matching fields
Series to RowsConverts individual metric series into rows in the table

The following transformations enable you to organize and sort how the resulting data is displayed in the table:

TransformationsDescription
Organize FieldsReorders, renames, or hides fields in the resulting table
SortSorts the table results based on a selected field and sort order

You can apply multiple transformations to further refine how query results are displayed. Transformations are applied sequentially, with each transformation operating on the results of the preceding transformation. For example, you can merge results from multiple queries, organize the resulting columns, and then sort the rows based on a selected field.

Note: You must apply either the Merge or Series to Rows transformation before you can apply Organize Fields or Sort.

Field Overrides for Advanced Metrics Widget

You can configure field overrides to customize how individual fields display in the Advanced Metrics widget Table visualization without modifying the underlying query data. You can apply overrides to a specific field or multiple fields that match a field name pattern.

Field overrides support the following display properties:

Override PropertyDescription
Unit FieldApplies a unit label to the table cell value
DecimalsSpecifies the number of decimal places displayed
ThresholdsApplies colors based on configured thresholds
Cell displayCustomizes how values display within table cells
Value mappingReplaces specific values or value ranges with display text and colors

When a specific-field override and a field name pattern override configure the same property, the specific-field override takes precedence.

Overrides are saved with the widget configuration and are supported in dashboard reports. Changes are immediately reflected in the widget preview.

Note: Field overrides are available only for the Table visualization.

Advanced Metrics Widget Interaction

There are various actions you can perform on an Advanced Metrics widget after you add it to a Dashboard. This provides you with more flexible actions when interacting with widgets, enabling you to engage in active troubleshooting more efficiently. For example, for data displayed as a Pie Chart, you can select a specific slice of the pie chart and navigate directly to the corresponding Resources in the Resource Tree to view the data for that instance.

For data displayed as a Pie Chart or Donut Chart, you can perform the following actions:

  • Hide slice—Hide the selected slice from the chart.
  • Go to Resources—Navigate directly to Resources to view the data for the specific datapoint in the Resource Tree.
  • Apply to filters—Apply a Dashboard-level filter to all applicable widgets.
  • Go to Logs—Navigate directly to Logs to view the data for the specific resource in the Logs page.

To access these actions, select a slice on the graph. The interaction options display for that slice.

For data displayed as any type of graph visual, you can perform the following actions:

  • Highlight line—Hide all lines except for the one you select.
  • Hide line—Hide the selected line from the graph.
  • Go to Resources—Navigate directly to Resources to view the data for the specific datapoint in the Resource Tree.
  • Apply to filters—Apply a Dashboard-level filter to all applicable widgets.
  • Go to Logs—Navigate directly Logs to view the data for the specific resource in the Logs page.

To access these actions, select a line on the graph. The interaction options display for that line.

Note: Widget actions are not available for virtual datapoints or aggregate lines.

Requirements for Configuring an Advanced Metrics Widget

To leverage dashboard-level or parent dashboard group level tokens in the raw query string, you must have available tokens. For more information, see Dashboard Tokens and Dashboard Creation.

To use an OTLP metric query, you need to configure an OpenTelemetry Collector to send metrics to LogicMonitor.

Configuring an Advanced Metrics Widget to Query for LogicMonitor Metrics

  1. In LogicMonitor, navigate to Dashboards, select a current Dashboard or create new, and then add an Advanced Metrics widget.
    For more information, see Dashboard Creation.
    For more information, see Widget Creation.
    Advanced Metrics widget
  2. Configure the Basic Information settings.
    Basic Information settings
    For more information, see Configuring Standard Widget Settings.
  3. In the Metric Source section, select Standard to build a query for LogicMonitor metrics.
    Metric source settings
  4. To override the query builder time range, toggle Override query builder time range and configure a predefined time range or custom time range for the widget by doing the following:
    • To configure a predefined time range for the widget, select Predefined time range and choose a time range option.
      Predefined time range settings
    • To configure a custom time range for the widget, select Custom time range and configure the time range settings.
      Custom time range settings
  5. Do the following to create the query depending on whether you want to use the query builder or enter a raw query:
    • To use the query builder, select Query Builder, and do the following:
      1. In the Filter by field, use the base properties available to build your query.
        LogicMonitor provides Resource, DataSource, Instance, and Datapoint as base properties to build your query.
        Query builder for LMQL

Note: You cannot use properties that contain special characters, such as “device-02~!@#$%^&()_+{}|:\”>-=[]”.

Note: You must have at least one datapoint for your base properties to build your query.

  1. Enter additional properties for the query.
    A list of properties is displayed.
  2. Type a property in the Search records field, or select a property from the list of properties displayed.
    LogicMonitor displays applicable properties as you type.
  3. Type a value for the property in the Search records field, or select a value for the property from the list of values displayed for the property.
    LogicMonitor displays applicable values as you type.
  4. In the Functions field, select the functions you want to use to perform specific operations or calculations on data.
    For example, selecting “Average” from Aggregate returns the average value of all the matching resources for the selected datapoint.
    Note: For more information about the various functions you can leverage, see LogicMonitor Query Language (LMQL) Reference.
  5. To return multiple data samples over a period of time for each matching metric, do any of the following:
    • To define how far back in time to query for data, add a time for Time range.
      Note: For more information about the various functions you can leverage, see LogicMonitor Query Language (LMQL) Reference.
    • To define how frequently datapoints are sampled in that range, add a time for Step.
      Note: For more information about the various functions you can leverage, see LogicMonitor Query Language (LMQL) Reference.
    • To shift the evaluation time backwards by a specified duration, add a time for Offset.
  6. Select Run Query.
  • To create the query manually, select Raw Query and do the following:
    1. In the Advanced Metrics Query field, enter the string of queries you want to use.
      Note: You must have at least one datapoint to build your query.

      For more information, see LogicMonitor Query Language (LMQL) Reference for Advanced Metric Widget.
    2. To leverage dashboard-level tokens in your raw query, select Insert Token, and then select the token you want to use in your query.
      Raw query settings for LMQL query
    3. Select Run Query.
  1. (Applies to Table visualization only) To add multiple queries, select Add Query and configure the query settings as needed.

Note: You can add up to four queries.

Note: When adding multiple queries, the other visualization types are disabled. The ability to display multiple queries and leverage transformations is only available when using the table visualization type.

  1. In the Display Settings, do the following to configure the type of visualization you want to use to represent the data for your query:
    • To display your data as a Line Graph, Area Graph, or Stack Graph, select “Line Graph,” “Area Graph,” or “Stack Graph” from the Visualization Type dropdown menu, and then configure the settings for how you want the data to display.
      For more information on configuring the specific settings for each type of graph, see Custom Graph Widget Creation.
    • To display your data as a Big Number widget, select “Big Number” from the Visualization Type dropdown menu, and then configure the settings for how you want the data to display.
      For more information on configuring the specific settings for each type of graph, see Big Number Widget.

Note: If leveraging a range vector query, this widget displays the last values of matching instances.

  • To display your data as a Pie Chart or a Donut Chart, select “Pie Chart” or “Donut Chart” from the Visualization Type dropdown menu, and then configure the settings for how you want the data to display.
    For more information on configuring the specific settings for each type of graph, see Pie Chart Widget. Pie Chart Widget.
    Note: If leveraging a range vector query, this widget displays the last values of matching instances.
  • To display your data as a Gauge widget, select “Gauge” from the Visualization Type dropdown menu, and then configure the settings for how you want the data to display.
    For more information on configuring the specific settings for each type of graph, see Gauge Widget.
    Note: If leveraging a range vector query, this widget displays the last values of matching instances.
  • To display your data as a Table widget, select “Table” from the Visualization Type dropdown menu, and then configure the settings for how you want the data to display.
    For more information on configuring the specific settings for a Table widget, see Table Widget.
    Note: If leveraging a range vector query, this widget displays the last values of matching instances.

    Selecting “Table” enables you to apply transformations to the visual by doing the following:
    • To apply transformations, select the Transformations tab, and then configure any of the following settings depending on how you want the data to display:
      • To combine results from multiple queries into a single table based on matching fields, choose Select for Merge.
      • To convert individual metric series into rows in the table, choose Select
      • for Series to Rows.
        Transformations settings for table visualization
    • To reorder, rename, or hide fields in the resulting table, choose Select for Organize Fields. Use the settings to configure display names, reorder the table columns, or hide columns.
      Organize Fields settings for table visualization
    • To sort the table results based on a selected field and sort order, choose Select for Sort. Use the settings to select fields and then configure the ascending or descending order.
  • To apply overrides, select the Overrides tab, and then configure any of the following settings depending on how you want the data to display:
    1. From the Field dropdown, select a field that you want to override, and then select Create Override.
    2. Select Add Properties, and then select the type of property that you want to apply.
      For example, selecting “Cell display” enables you to customize how values display within the table cells.
    3. Configure the properties as necessary.
  • To match multiple field names using a pattern, choose Select for Field name pattern, and then configure the following:
    1. In Field name pattern, enter the text you want to use to match fields in the query, and then select Create Override.
    2. Select Add Properties, and then select the type of property that you want to apply.
      For example, selecting “Cell display” enables you to customize how values display within the table cells.
    3. Configure the properties as necessary.
  • To display your data as a Heatmap visualization, select “Heatmap” from the Visualization Type dropdown menu, and then configure the following for how you want the data to display:
    1. In the Time buckets section, select one of the following for how you want LogicMonitor to group the data along the X axis:
      • To automatically determine the time interval based on the configured time range, select Auto.
        LogicMonitor automatically adjusts the interval as the time range changes.
      • To create a custom interval, select Custom, and then configure the interval and unit.
        Smaller intervals provide more granular time-based data, while larger intervals group data across broader periods.
        Custom interval settings for heatmap visualization
    2. In the Value range buckets section, select one of the following for how you want LogicMonitor to group data along the Y axis:
      • To automatically determine the number and size of the value ranges based on the returned data, select Auto.
      • To define how many value ranges display in the heatmap, select Number of buckets, and then enter the number of buckets.
        Increasing the number of buckets provides more granular value ranges, while decreasing the number of buckets groups values into broader ranges.
        Number of buckets option in value range buckets settings
      • To define the range of values represented by each bucket, select Bucket size, and then enter a value for the size of each bucket.
        For example, a bucket size of 10 can create five buckets if the values range from 0 to 50.
        Bucket size option in value range buckets settings
    3. To control the minimum and maximum values represented along the Y axis, configure the following in the Range section:
      • To enable LogicMonitor to determine the lower boundary of the range from the returned data, toggle Automatically adjust minimum, and then enter a value for the range minimum.
        Disable this option to specify a fixed minimum value.
      • To enable LogicMonitor to determine the upper boundary of the range from the returned data, toggle Automatically adjust maximum, and then enter a value for the range maximum.
        Disable this option to specify a fixed maximum value.
    4. In the Color section, select a color from the Color palette dropdown you want to use to display the data in the heatmap.
      Note: If leveraging a range vector query, this widget displays the last values of matching instances.
  1. Configure the Widget Color Schema settings.
    For more information, see Configuring Standard Widget Settings.
  2. Select Save.

Configuring an Advanced Metrics Widget to Query for OpenTelemetry Metrics

  1. In LogicMonitor, navigate to Dashboards, select a current Dashboard or create new, and then add an Advanced Metrics widget.
    For more information, see Dashboard Creation.
    For more information, see Widget Creation.
    Advanced Metrics widget
  2. Configure the Basic Information settings.
    Basic Information settings
    For more information, see Configuring Standard Widget Settings.
  3. In the Metric Source section, select OTel Metrics (PromQL) to build a query for OpenTelemetry metrics.
    Metric Source settings OTel Metrics
  4. Select whether to configure a predefined time range or custom time range for the widget by doing the following:
    • To configure a predefined time range for the widget, select Predefined time range and then choose a time range option.
      Predefined time range settings
    • To configure a custom time range for the widget, select Custom time range and then configure the time range settings.
      Custom time range settings
  5. Do the following to create the query depending on whether you want to use the query builder or enter a raw query:
  • To use the query builder, select Query Builder, and do the following:
    1. In the Scope field, select the scope to determine which metrics the widget can query and display.
      The root scope for the portal is selected by default.
      Note: LogicMonitor automatically appends this value in the Query preview.
    2. In the Search metric field, enter a metric to base your query on.
      Query builder settings for OTLP Metrics
    3. In the Filter by settings, configure the values based on your metric.
      For example, if you are building a query around the system_cpu_time metric, LogicMonitor populates the applicable values, such as “cpu”.
    4. Configure and add functions as needed.
    5. In the Step field, enter the duration between query evaluation points.
    6. In the Legend field, insert a token to populate datapoint-specific information.
      This expands the amount of relevant information viewable within the graph’s legend.
    7. Select Run Query.
  • To create the query manually, select Raw Query and do the following:
    1. In the Scope field, select the scope to determine which metrics the widget can query and display.
      The root scope for the portal is selected by defaut.
      Note: LogicMonitor automatically appends this value in the Query preview.
    2. In the Enter PromQL field, enter the string of queries you want to use.
      Raw query builder settings for OTLP metrics
    3. In the Step field, enter the duration between query evaluation points.
    4. In the Legend field, insert a token to populate datapoint-specific information.
      This expands the amount of relevant information viewable within the graph’s legend.
    5. Select Run Query.
  1. (Applies to Table visualization only) To add multiple queries, select Add Query and configure the query settings as needed.

Note: You can add up to four queries.

Note: When adding multiple queries, the other visualization types are disabled. The ability to display multiple queries and leverage transformations is only available when using the table visualization type.

  1. In the Display Settings, do the following to configure the type of visualization you want to use to represent the data for your query:
    • To display your data as a Line Graph, Area Graph, or Stack Graph, select “Line Graph,” “Area Graph,” or “Stack Graph” from the Visualization Type dropdown menu, and then configure the settings for how you want the data to display.
      For more information on configuring the specific settings for each type of graph, see Custom Graph Widget Creation.
    • To display your data as a Big Number widget, select “Big Number” from the Visualization Type dropdown menu, and then configure the settings for how you want the data to display.
      For more information on configuring the specific settings for each type of graph, see Big Number Widget.

Note: If leveraging a range vector query, this widget displays the last values of matching instances.

  • To display your data as a Pie Chart or a Donut Chart, select “Pie Chart” or “Donut Chart” from the Visualization Type dropdown menu, and then configure the settings for how you want the data to display.
    For more information on configuring the specific settings for each type of graph, see Pie Chart Widget. Pie Chart Widget.
    Note: If leveraging a range vector query, this widget displays the last values of matching instances.
  • To display your data as a Gauge widget, select “Gauge” from the Visualization Type dropdown menu, and then configure the settings for how you want the data to display.
    For more information on configuring the specific settings for each type of graph, see Gauge Widget.
    Note: If leveraging a range vector query, this widget displays the last values of matching instances.
  • To display your data as a Table widget, select “Table” from the Visualization Type dropdown menu, and then configure the settings for how you want the data to display.
    For more information on configuring the specific settings for a Table widget, see Table Widget.
    Note: If leveraging a range vector query, this widget displays the last values of matching instances.

    Selecting “Table” enables you to apply transformations to the visual by doing the following:
    • To apply transformations, select the Transformations tab, and then configure any of the following settings depending on how you want the data to display:
      • To combine results from multiple queries into a single table based on matching fields, choose Select for Merge.
      • To convert individual metric series into rows in the table, choose Select
      • for Series to Rows.
        Transformations settings for table visualization
    • To reorder, rename, or hide fields in the resulting table, choose Select for Organize Fields. Use the settings to configure display names, reorder the table columns, or hide columns.
      Organize Fields settings for table visualization
    • To sort the table results based on a selected field and sort order, choose Select for Sort. Use the settings to select fields and then configure the ascending or descending order.
  • To apply overrides, select the Overrides tab, and then configure any of the following settings depending on how you want the data to display:
    1. From the Field dropdown, select a field that you want to override, and then select Create Override.
    2. Select Add Properties, and then select the type of property that you want to apply.
      For example, selecting “Cell display” enables you to customize how values display within the table cells.
    3. Configure the properties as necessary.
  • To match multiple field names using a pattern, choose Select for Field name pattern, and then configure the following:
    1. In Field name pattern, enter the text you want to use to match fields in the query, and then select Create Override.
    2. Select Add Properties, and then select the type of property that you want to apply.
      For example, selecting “Cell display” enables you to customize how values display within the table cells.
    3. Configure the properties as necessary.
  • To display your data as a Heatmap visualization, select “Heatmap” from the Visualization Type dropdown menu, and then configure the following for how you want the data to display:
    1. In the Time buckets section, select one of the following for how you want LogicMonitor to group the data along the X axis:
      • To automatically determine the time interval based on the configured time range, select Auto.
        LogicMonitor automatically adjusts the interval as the time range changes.
      • To create a custom interval, select Custom, and then configure the interval and unit.
        Smaller intervals provide more granular time-based data, while larger intervals group data across broader periods.
        Custom interval settings for heatmap visualization
    2. In the Value range buckets section, select one of the following for how you want LogicMonitor to group data along the Y axis:
      • To automatically determine the number and size of the value ranges based on the returned data, select Auto.
      • To define how many value ranges display in the heatmap, select Number of buckets, and then enter the number of buckets.
        Increasing the number of buckets provides more granular value ranges, while decreasing the number of buckets groups values into broader ranges.
        Number of buckets option in value range buckets settings
      • To define the range of values represented by each bucket, select Bucket size, and then enter a value for the size of each bucket.
        For example, a bucket size of 10 can create five buckets if the values range from 0 to 50.
        Bucket size option in value range buckets settings
    3. To control the minimum and maximum values represented along the Y axis, configure the following in the Range section:
      • To enable LogicMonitor to determine the lower boundary of the range from the returned data, toggle Automatically adjust minimum, and then enter a value for the range minimum.
        Disable this option to specify a fixed minimum value.
      • To enable LogicMonitor to determine the upper boundary of the range from the returned data, toggle Automatically adjust maximum, and then enter a value for the range maximum.
        Disable this option to specify a fixed maximum value.
    4. In the Color section, select a color from the Color palette dropdown you want to use to display the data in the heatmap.
      Note: If leveraging a range vector query, this widget displays the last values of matching instances.
  1. Configure the Widget Color Schema settings.
    For more information, see Configuring Standard Widget Settings.
  2. Select Save.

14-day access to the full LogicMonitor platform