On this page:

Related pages:

Your Rating:
Results:
PatheticBadOKGoodOutstanding!
17 rates

In a custom dashboard widget or health rule, you can use a wildcard to specify a metric that evaluates across several entities, such as multiple hardware entities or memory pools.

The wildcard feature is supported for metrics in the Hardware Resources, JVM, and CLR branches of the metric hierarchy and for custom metrics created with a monitoring extension as described in Extensions and Custom Metrics. To use wildcards, do the following:

  1. Define the relative metric path to the metric that you want to display.
    This involves getting the full metric path in the Metric Browser and then trimming it.
  2. Modify the relative metric path to apply to multiple entities.
  3. Paste the modified relative path in the metric selector for the widget or health rule that you are configuring.

Define the Relative Metric Path

A metric path is a pipe-delineated path to a specific metric. In the AppDynamics UI, hover over a metric in the metric browser to get the full metric path. Right-click on the metric to view Copy Full Path option. 

To define the relative metric path, truncate the leftmost part of the full metric path.

To know how much to truncate for a particular use case, look at the embedded metric browser in the Metric Selection window of the widget or health rule configuration that you are setting up. By the time you have reached this selector, you will have configured the application, tiers or nodes of the metric that you want to select.

Use the category in the Metric Selection window as the first segment of the relative metric path, truncating everything from the full metric path that comes before that segment. In the example below the first segment would be Agent or Hardware Resources or JVM or CLR.

As per the preceding example, the full metric path copied from the Metric Browser is Application Infrastructure Performance|ECommerce Server|Hardware Resources|Disks|dev-dm-1|% CPU Time. 

Truncate everything to the left of the category selected in the Metric Selection Window that is, Hardware Resources in this example, as the display in the embedded metric browser starts with Hardware Resources.

The relative metric path is Hardware Resources|Disks|dev-dm-1|% CPU Time.

Consider another example where the full metric path copied from the metric browser is, Application Infrastructure Performance|ECommerce Server|Individual Nodes|ECommerceAppNode|Hardware Resources|Disks|dev-dm-1|% CPU Time.

The relative metric path after truncating everything to the left of the Hardware Resources is Hardware Resources|Disks|dev-dm-1|% CPU Time.

Modify the Relative Metric Path

Replace a single segment in the relative metric path with an asterisk to indicate that the metric should be evaluated for all the entities represented by that segment.

Multiple asterisks in a single metric path are not supported.

For example:

The relative metric path is, Hardware Resources|Disks|dev-dm-1|% CPU Time and you want to display or create a health rule condition on the % CPU time for all of the disks in that tier or node.

Substitute the asterisk for the disk name as Hardware Resources|Disks|*|% CPU Time. 

Configure the Metric for Multiple Entities

In the Metric Selection window for the dashboard widget or health rule, you can configure metric for multiple entries.

To configure the metric for multiple entities:

Select Specify Relative Metric Path on the bottom of the Metric Selection window, paste the modified, wild-carded relative metric path and click Select Metric.

Verify the Metric Specification

When you configure a relative metric specification for multiple similar entities in a custom dashboard, you see the multiple metrics displayed in the widget.

Wildcards Replace Entire Path Segments

An asterisk replaces the entire segment in the path. It cannot be used to replace only a portion of a string, as they are used in regular expressions.

For example, the following usage in an attempt to get the ART for all the business transactions beginning with View is not valid and not supported:

Business Transaction Performance|Business Transactions|ECommerce Server|View*|Average Response Time (ms). 

Specify, Average Response Time (ms) to get ART for all the business transactions on the ECommerce Server.

Handling Colons in the Metric Path

The colon, if any, in the metric path is translated into a pipe. Only one segment is allowed between pipes. It is to be noted that the colons and pipes can be used interchangeably.

For example:

The colon in the metric path, Application Infrastructure Performance|ECommerce Server|JVM|Memory:Heap|Committed (MB) is translated to Application Infrastructure Performance|ECommerce Server|JVM|Memory|Heap|Committed (MB).

For the relative metric path, to get metrics for both heap committed and non-heap committed, specify JVM|Memory|*|Committed (MB). Do not specify JVM|*|Committed (MB). 

 

  • No labels