Health Check Features

Advanced health check capabilities in Krkn

Krkn provides comprehensive health check capabilities to monitor your applications and infrastructure during chaos testing.

Health Check Types

Advanced Features

Quick Reference

Run Timing Options

health_checks:
    run_during: "pre"                    # Before chaos only
    run_during: "during"                 # During chaos only (default)
    run_during: "post"                   # After chaos only
    run_during: ["pre", "post"]          # Before and after (not during)
    run_during: ["pre", "during", "post"]  # All three stages

Health Check Types in Config

# HTTP endpoints
health_checks:
    interval: 5
    run_during: "during"
    config:
        - url: "http://my-app/health"

# VMI SSH connectivity
kubevirt_checks:
    interval: 10
    run_during: "during"
    namespace: "vms"

# Kubernetes object conditions
object_state_checks:
    interval: 5
    run_during: "during"
    config:
        - name: "etcd-ready"
          kind: "Pod"
          object_name: "etcd-.*"
          namespace: "kube-system"
          condition: {type: "Ready", status: "True"}

Health Check Run Timing (run_during)

Control when health checks execute: pre-chaos, during chaos, or post-chaos

Object State Health Checks

Monitor Kubernetes resource conditions during chaos testing

Prometheus Alert Health Checks

Evaluate PromQL alert expressions before, during, and after chaos experiments

Kube Virt Checks

Kube Virt Checks to analyze down times of VMIs

Last modified September 28, 2026: adding slo/health check updates (#673) (7f676e6)