Using the Metrics Viewer for Containers

Using the Metrics Viewer for Containers

#380930

The Densify metrics viewer allows you to view your collected and analyzed time series data to review specific container details. You can use the metrics viewer to investigate details when deciding whether to action specific recommendations.

This topic covers metrics viewer when reviewing your Kubernetes containers. The metrics viewer is also available for:

Page Navigation

Access the metrics viewer from:

  • Container Optimization > Details tab > "Container Name" column
  • Container Optimization > Details tab > lower pane icon

Use the breadcrumbs in the upper left corner or click the Back button, in the top-right corner of the page, to return to the parent dashboard. Do not use the browser's Back button for navigation within Densify. You will be logged out of your session. See Navigating Densify for other features of the Densify user interface.

Clicking the icon in the Details page opens the metrics viewer showing the selected instance. The page opens with either the default or saved filter settings, if you are within the same session.

Metrics Viewer Controls

When you open the metrics viewer, the instance that was selected in the Instance Optimization Details page is displayed. You can also select another container from the drop down menu.. You can now configure the data you want to view for this container using the options in the dropdown controls.

There are 3 options to configure this report:

All of the charts, are refreshed immediately when you change any of the control options. Your settings are saved for the current user session and are returned to the default values if you log out or if another user opens the metrics viewer.

Status Bar

Details of the selected instance are displayed in the upper right corner of the page.

Clicking on the icon on the Recommended Request displays the details of the recommended container sizing.

Configuring the Individual Charts

You can configure each of the 4 charts separately using the 2 dropdown controls above each chart.

The line chart shows the selected metric plotted by the hour or date.

The X-axis scales based on the amount of data up to the maximum of 90-days. The X-axis will show both date and hour when the date range includes less than 7-days. Only the date is shown when there are more than 7-days of data on the chart.

If you hover over any data point in the graph a popup indicates the values on the selected date. You can slide the mouse along the plotted lines to see data values at the specific date or time.

If metric data is not available, the message NA: <Metric><Statistic> is shown in the legend of the impacted chart.

Where:

  1. CPU and memory request and limit values are shown as straight lines.
  2. Tool tip indicating specific values on the selected date
  3. Legend
  4. Date on which the container configuration changed, if applicable
  5. A footnote listing the following details: Cluster, Namespace, Pod

Relearning Workload

If a recommendation has been implemented that results in an instance type change during the selected period, you may observe data missing from the charts.

If the selected container has been recently optimized. (i.e. changed configuration), then any historical data that was collected before the instance type was changed is not displayed. A footnote indicating the change is displayed, under the legend: "Container Configuration Updated On: MMM-DD-YYYY" See Figure: Chart Details, above.

Possible data inconsistency issues may result from the following situations:

  • The value of "Container Configuration Updated On" information is from the system attributes table which is only refreshed by the weekly RDB populate, so there may be a discrepancy or data inconsistency if, for example, the configuration was changed 2 days ago and the RDB was refreshed 5 days ago.
  • Densify shows the last time that the configuration changed. If the container configuration has changed 3 times during the selected period, the note shows the date of the most recent change.

See Relearning Workload Patterns for more details on using this feature.

Available Container Metrics

The following table lists the complete set of metrics that you can review in the metrics viewer.

Disk I/O

* Collecting the metric, container_fs_usage_bytes is an issue if the Kubernetes cluster container uses containerd as its runtime. Since most Kubernetes clusters now use containerd as their runtime and cadvisor does not return the required metrics, you will not see Disk I/O data. If you select this metric you will see "No Data Available".

See the following issues:

Collection of this metric is supported by both Docker and CRI-O container runtimes.

Recommended CPU and Memory Request and Limit Values

When selected, recommended CPU and memory request and limit values are shown as a straight line regardless of which statistics (Peak/Sustained/Average/Min) have been selected.

These metrics will be indicated in the legend. See Chart Details, above.