domino_admin_toolkit.checks.test_k8s_platform_sizing module

class domino_admin_toolkit.checks.test_k8s_platform_sizing.TestK8sPlatformSizing

Bases: object

test_k8s_platform_pod_sizing(request, dataframe_fixture, analyzers, formatters, column_order)
domino_admin_toolkit.checks.test_k8s_platform_sizing.add_memory_difference_column(df, memory_used_col, memory_requests_col, new_col_name)

Adds a computed column to the DataFrame that represents the difference between memory_used and memory_requests. If memory_requests is NaN or None, it is considered to be 0.

Parameters: - df: The input DataFrame. - memory_used_col: The name of the column representing memory used. - memory_requests_col: The name of the column representing memory requests. - new_col_name: The name of the new column to be added.

Returns: - A DataFrame with the new computed column.

Return type:

DataFrame

domino_admin_toolkit.checks.test_k8s_platform_sizing.container_memory_df(prometheus_client_v2, platform_namespace)
Return type:

DataFrame

domino_admin_toolkit.checks.test_k8s_platform_sizing.format_memory_columns(df)