Skip to main content

processor-freq

Overview

Validates that the CPU frequency meets or exceeds a specified minimum threshold by averaging frequency across all CPU cores.

Command-Line Options

OptionTypeDefaultDescription
--proc_freqInteger1498Minimum acceptable CPU frequency in MHz
--timeoutInteger300Command execution timeout in seconds
--sinkStringdo_nothingTelemetry sink destination
--sink-optsMultiple-Sink-specific configuration
--verbose-outFlagFalseDisplay detailed output
--log-levelChoiceINFODEBUG, INFO, WARNING, ERROR, CRITICAL
--log-folderString/var/log/fb-monitoringLog directory
--heterogeneous-cluster-v1FlagFalseEnable heterogeneous cluster support

Exit Conditions

Exit CodeCondition
OK (0)Feature flag disabled (killswitch active)
OK (0)CPU frequency ≥ threshold
WARN (1)Command execution failed
CRITICAL (2)CPU frequency < threshold

Usage Examples

processor-freq - Basic Frequency Check

health_checks check-processor processor-freq \
--sink stdout \
[CLUSTER] \
app

processor-freq - Custom Frequency Threshold

health_checks check-processor processor-freq \
--proc_freq 2000 \
--sink stdout \
[CLUSTER] \
app

processor-freq - With Telemetry

health_checks check-processor processor-freq \
--proc_freq 1800 \
--sink otel \
--sink-opts "log_resource_attributes={'attr_1': 'value1'}" \
[CLUSTER] \
app

processor-freq - Debug Mode

health_checks check-processor processor-freq \
--proc_freq 2400 \
--log-level DEBUG \
--verbose-out \
--sink stdout \
[CLUSTER] \
app