View baseline data in the Resources dashboard.
It can take up to 24 hours for the first baseline data points to start appearing in the Resources dashboard. 14 days of raw metric data is recommended to see accurate baselines. However, baselines are still generated with less than 14 days of historical data, but they will present a less accurate baseline model.
Raw metric data retention is controlled by the retentionResolutionRaw parameter in the custom resource YAML file for the observability service in Red Hat Advanced Cluster Management.
For more information about metric retention and how to change it, see the Enabling the observability service in Red Hat Advanced Cluster Management topic.
There are three main ways to view baseline data:
- Custom metrics widget
- Any chart with one metric and one dimension
Custom metrics widget
In the Resources dashboard, in the Custom metrics widget, turn on the baseline view to view the baseline in the line chart. You can view a baseline only for one metric and one dimension. In the Custom metrics widget, select the metric values and enable the baseline view. If a baseline exists for the resource metric for that time interval, the line chart is rendered with the baseline showing. Complete the following steps:
- In the Resources dashboard, select a resource that you created a baseline for.
- Scroll to the end of the Resources dashboard. The Custom metrics widget is not visible by default, you must toggle using the down arrow to display it.
- In the Custom metrics widget, you must select a value for each of the following:
- Aggregation: The default is Average, if a baseline is available, only Average can be selected.
- Filter metric: The metric you select must match the metric you selected when you created the baseline for this resource. You can select only one filter metric.
- Filter dimension: Filter dimension forms the other axis for the filter metric.
- Dimension value: You can select multiple dimension values.
If baseline data is available for the metric for the interval, the baseline toggle is enabled, and you can turn on Baseline.
Note: The baseline definition controls whether training and generation of new baseline metrics for a resource/metric combination is enabled. When you remove a resource from a baseline, or delete a baseline, after the next 24 hr retraining cycle, no new baseline data is generated. The old baseline data is still present and continues to display in the Custom metrics dashboard until it expires. In the Custom metrics dashboard, for the baseline-high and baseline low parameters, you see the "NaN" value.
Any chart with one metric and one dimension
In the Resources dashboard, any chart that has only one line (one metric and one dimension) shows a baseline - if a baseline exists. A baseline appears in any chart where the metric for the baseline is enabled and there is only a single metric charted. Any charts where there is more than one line does not display a baseline.
In the Resources dashboard, you can see events raised based on the baseline in the Events timeline and time span. Red markers group events that occur in the same vicinity. The number indicates the number of events of the same type that are in close succession. Hover the mouse over an event marker to see whether any of the events relate to a baseline you created and to see when the event was opened.
Click the event to open the corresponding incident. In the Incidents page, you will see that events raised based on a baseline are preceded with BaselineNotification in the Events raised column.
Click the Resource dashboard drilldown link to open the dashboard at the time the incident occurred.
Click Event dashboard drilldown link to open an event specific page that shows a chart of the metric that triggered the baseline event with the baselines. There is a drilldown to the resource dashboard option available on this page also.