# Monitoring Metrics

AOM displays metric data of each resource on the Metric Monitoring page. You can monitor metric values and trends in real time, add metrics to dashboards, create threshold rules, and export reports for real-time monitoring and correlation analysis.

#### Procedure

1. Log in to the management console.
2. Under Application, click Application Operations Management.
3. In the navigation pane, choose View Management > Metric Monitoring.
4. Select up to 10 metrics from the metric tree on the left to monitor. For details, see Metric Description.
5. Set metric parameters according to Table 1, view the metric graphs on the right, and analyze metric data from multiple dimensions.

   Table 1 Metric parameters
   Parameter | Description
   --- | ---
   Time Range | Time period when metrics are monitored.
   Statistical Period | Interval at which metric data is collected.

   Statistic

   Method used to measure metrics.

   NOTE:
   - The number of samples equals to the count of data points.
   - If you change the statistical method, the new setting will take effect for all metrics.

#### Related Operations

You can also perform the operations described in Table 2.

Table 2 Related operations
Operation | Description
--- | ---
Add a metric graph to a dashboard | Click Add to Dashboard to add a metric graph to a dashboard.
Add a threshold rule for a metric | Click Add to Threshold Rule, set threshold rule parameters, and click Submit to add a threshold rule.
Export a monitoring report | Click Export Report to export a metric graph as a CSV file to a local PC.

Set an interpolation mode

By default, AOM uses Null to represent breakpoints in a metric graph, as shown in Figure 1. However, a metric graph with breakpoints is not suitable for reports or presentation. To solve the problem, set the value of Interpolation Mode to 0 or Average to interpolate values. In this way, you can replace the missing metric data and avoid breakpoints.

The value of Interpolation Mode can be Null, 0, or Average.

- Null: Breakpoints are represented by Null by default.
  Figure 1 Graph when the value of Interpolation Mode is Null
- 0: Breakpoints are represented by 0.
  Figure 2 Graph when the value of Interpolation Mode is 0
- Average: Breakpoints are represented by the average value.
  Figure 3 Graph when the value of Interpolation Mode is Average
  NOTE:

  If the value of Interpolation Mode is set to Average, breakpoints will be represented by average values. The following describes how to calculate average values.

  A metric graph may have multiple breakpoints. When multiple breakpoints exist, values will be interpolated for these breakpoints from left to right. The following uses the first breakpoint in a graph as an example to describe the method of calculating the average value. This method can also be applied to other breakpoints.

  - If the first breakpoint is at the start of a metric graph, the value of the breakpoint is the first valid data from its next point to the right.

    For example, if a metric graph has points a, b, c, d, and e, where a = Null, b = Null, c = Null, d = Null, and e = 5, the value of the first breakpoint (that is, point a) is 5.

  - If the first breakpoint is in the middle of a metric graph, there are the following two scenarios:

    Scenario 1: If the values of the previous and next points of the breakpoint are valid, the value of the breakpoint is the average value of these two points.

    For example, if a metric graph has points a, b, c, d, and e, where a = 1, b = Null, c = 3, d = Null, and e = 5, the value of the first breakpoint (that is, point b) is (a + c)/2 = (1 + 3)/2 = 2.

    Scenario 2: If the value of the previous point of the breakpoint is valid and the value of its next point is null, the value of the breakpoint is the average value of its previous point and the first valid data from its next point to the right.

    For example, if a metric graph has points a, b, c, d, and e, where a = 1, b = Null, c = Null, d = Null, and e = 5, the value of the first breakpoint (that is, point b) is (a + e)/2= (1 + 5)/2 = 3. Because values are interpolated for breakpoints from left to right, the value of the second breakpoint (that is, point c) is (b + e)/2 = (3 + 5)/2 = 4, the value of the third breakpoint (that is, point d) is (c + e)/2 = (4 + 5)/2 = 4.5.

  - If the first breakpoint is at the end of a metric graph, the value of the breakpoint is the value of the previous point.

    For example, if a metric graph has points a, b, c, d, and e, where a = 1, b = 2, c = 3, d = 4, and e = Null, the value of the first breakpoint (that is, point e) is 4.

  - If all points in a metric graph are breakpoints, the values of all these points are still Null, even though you set the value of Interpolation Mode to Average.

    For example, if a metric graph has points a, b, c, d, and e, where a = Null, b = Null, c = Null, d = Null, and e = Null, the values of all breakpoints are Null.

Parent topic: View Management