Skip to main content

check-example

Template: Copy this file and rename it to check-<your_check>.md when adding a new health check.

Overview​

Brief description of what this check monitors and why it matters for cluster health.

Requirements​

List any external tools, packages, or hardware needed. Remove this section if there are no special requirements.

  • Tool Name: Description of the tool
  • Package: apt-get install package-name or yum install package-name

Command-Line Options​

OptionTypeDefaultDescription
--your-optionString-Description of check-specific option
--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)Normal condition — no errors detected
WARN (1)Warning condition
WARN (1)Command execution failed
CRITICAL (2)Critical condition
UNKNOWN (3)Unexpected error before parsing

Usage Examples​

Basic Check​

health_checks check-example [CLUSTER] app

With Telemetry​

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

Debug Mode​

health_checks check-example \
--log-level DEBUG \
--verbose-out \
--sink stdout \
[CLUSTER] \
app