domino_admin_toolkit.analyzers.pod_memory module

pydantic model domino_admin_toolkit.analyzers.pod_memory.K8sPodMemoryRequestsVsUsed

Bases: AnalyzerBase

Analyzes Kubernetes Pod memory requests versus actual usage.

Attributes:

name (str): The name of the analyzer. critical_threshold (int): The threshold in MiB that defines the critical point at which the used memory exceeding the requested memory is considered a failure. If the used memory exceeds the sum of the requested memory and this threshold, the analysis will result in a failure.

Fields:
field critical_diff_bytes: int = 2147483648
analyze(data)

Analyzes the memory requests versus usage for a Kubernetes Pod.

Return type:

list[CheckResult]

Parameters:
data (dict): A dictionary containing the memory requests and used memory for a Pod,

including the Pod’s name.

Returns:
list[CheckResult]: A list containing the results of the analysis, indicating whether

the memory usage is within acceptable parameters.

name: ClassVar[str] = 'K8sPodMemoryRequestsVsUsed'
domino_admin_toolkit.analyzers.pod_memory.get_pod_memory_analyzers()

Returns a set of pod memory analyzers.

Return type:

set[type[AnalyzerBase]]

Returns:

A set of analyzer classes that inherit from AnalyzerBase.