<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Health-Checks on Krkn</title><link>https://deploy-preview-247--krkn-chaos.netlify.app/tags/health-checks/</link><description>Recent content in Health-Checks on Krkn</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 23 Mar 2026 15:33:32 -0400</lastBuildDate><atom:link href="https://deploy-preview-247--krkn-chaos.netlify.app/tags/health-checks/index.xml" rel="self" type="application/rss+xml"/><item><title>Health Check Plugins</title><link>https://deploy-preview-247--krkn-chaos.netlify.app/docs/developers-guide/health-check-plugins/</link><pubDate>Mon, 01 Jan 2024 00:00:00 +0000</pubDate><guid>https://deploy-preview-247--krkn-chaos.netlify.app/docs/developers-guide/health-check-plugins/</guid><description>&lt;h1 id="health-check-plugins">
 Health Check Plugins
 &lt;a class="td-heading-self-link" href="#health-check-plugins" aria-label="Heading self-link">&lt;/a>
&lt;/h1>
&lt;p>Health check plugins allow Krkn to continuously monitor the health of your services and infrastructure &lt;strong>during&lt;/strong> chaos experiments. They run in background threads alongside the chaos scenario, detecting outages, tracking downtime duration, and collecting telemetry data.&lt;/p>
&lt;h2 id="overview">
 Overview
 &lt;a class="td-heading-self-link" href="#overview" aria-label="Heading self-link">&lt;/a>
&lt;/h2>
&lt;p>The health check system uses a plugin architecture:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>&lt;code>HealthCheckFactory&lt;/code>&lt;/strong> — automatically discovers and loads all plugins from the &lt;code>krkn.health_checks&lt;/code> package&lt;/li>
&lt;li>&lt;strong>&lt;code>AbstractHealthCheckPlugin&lt;/code>&lt;/strong> — base class all plugins must extend&lt;/li>
&lt;li>Plugins run in separate threads and write telemetry to a shared queue&lt;/li>
&lt;li>The factory tracks all active plugin instances and provides lifecycle management (&lt;code>increment_all_iterations&lt;/code>, &lt;code>stop_all&lt;/code>)&lt;/li>
&lt;/ul>
&lt;h3 id="exit-codes">
 Exit Codes
 &lt;a class="td-heading-self-link" href="#exit-codes" aria-label="Heading self-link">&lt;/a>
&lt;/h3>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Code&lt;/th>
 &lt;th>Meaning&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>0&lt;/code>&lt;/td>
 &lt;td>Success — all health checks passed&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>2&lt;/code>&lt;/td>
 &lt;td>Critical alert detected during the run&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>3&lt;/code>&lt;/td>
 &lt;td>Health check failure (e.g. &lt;code>exit_on_failure: true&lt;/code> triggered)&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;hr>
&lt;h2 id="built-in-plugins">
 Built-in Plugins
 &lt;a class="td-heading-self-link" href="#built-in-plugins" aria-label="Heading self-link">&lt;/a>
&lt;/h2>
&lt;h3 id="http-health-check-health_checks">
 &lt;a href="https://deploy-preview-247--krkn-chaos.netlify.app/docs/krkn/health-checks/">HTTP Health Check&lt;/a> (&lt;code>health_checks&lt;/code>)
 &lt;a class="td-heading-self-link" href="#http-health-check-health_checks" aria-label="Heading self-link">&lt;/a>
&lt;/h3>
&lt;p>Monitors HTTP endpoints by making periodic GET requests. Tracks status changes, measures downtime duration, and records telemetry for each state transition.&lt;/p></description></item></channel></rss>