Skip to content

Configuration reference ​

Kemuri reads one YAML file. Set version: 1 at the top of the file.

Kemuri rejects unknown fields. Use this command before a restart or reload:

sh
kemuri config validate --config PATH

Value formats ​

Durations use a number and a unit. Valid units include ms, s, m, h, and d.

yaml
timeout: 1500ms
interval: 30s
window: 5m

Percentages use a quoted percentage string:

yaml
default_jitter: "10%"
warning_free: "10%"

Top-level fields ​

FieldTypeDefaultPurpose
versionintegerrequiredConfiguration format. The value must be 1.
serverobjectdefaults applyHTTP listener and shutdown settings
loggingobjectdefaults applyLog level and format
storageobjectdefaults applySQLite, retention, and disk pressure
schedulerobjectdefaults applyScheduling and concurrency
profileslistemptyReusable probe settings
notifierslistemptyNotification delivery
ruleslistemptyAlert rules
targetslistemptyTargets and checks

Server ​

FieldTypeDefault
server.bindIP address127.0.0.1
server.portinteger from 1 through 655358080
server.corsBooleanfalse
server.public_urlURLnot set
server.shutdown_timeoutpositive duration30s

Kemuri has no built-in login. Bind it to a private address or put it behind a trusted reverse proxy.

When CORS is active, Kemuri permits cross-origin GET and HEAD requests. Cross-origin configuration reload is always blocked.

Set public_url when notification links must use a reverse-proxy URL.

Logging ​

FieldValuesDefault
logging.leveltracing filterinfo
logging.formatplain or jsonplain

Kemuri redacts secret values, sensitive HTTP headers, URL credentials, and URL query values from its own stored errors and configuration snapshots.

Storage ​

FieldDefault
storage.pathkemuri.db
storage.retention.raw_rounds7d
storage.retention.rollup_5m90d
storage.retention.rollup_1hforever
storage.retention.alert_events30d
storage.retention.notification_records30d
storage.disk_pressure.warning_free"10%"
storage.disk_pressure.critical_free"5%"

A retention value is a positive duration or forever.

Kemuri pauses scheduling when free space is at or below critical_free. It resumes scheduling only when free space is above warning_free.

Scheduler ​

FieldValues or typeDefault
scheduler.tick_intervalpositive duration1s
scheduler.max_concurrentpositive integer64
scheduler.startup_modeimmediate_then_aligned or alignedimmediate_then_aligned
scheduler.default_jitterpercentage"10%"
scheduler.max_concurrent_by_probe.icmppositive integernot set
scheduler.max_concurrent_by_probe.httppositive integernot set
scheduler.max_concurrent_by_probe.tcppositive integernot set
scheduler.max_concurrent_by_probe.dnspositive integernot set

The global concurrency limit applies to all checks. A probe-specific limit also applies when it is set.

Profiles ​

Each profile has these common fields:

FieldTypeDefault
kindicmp, http, tcp, or dnsrequired
idstringrequired
intervalpositive duration30s
timeoutpositive duration5s

See Probe settings for fields that apply to each probe kind.

Targets ​

A target has these fields:

FieldTypeDefault
idstringrequired
addressstringrequired
namestringtarget ID
group_pathstringnot set
labelsmap of stringsempty
enabledBooleantrue
checkslistempty

A group path can contain nested segments. Use / between segments.

yaml
group_path: production/europe

Checks ​

A check has these fields:

FieldTypeDefault
idstringrequired
profileprofile IDrequired
enabledBooleantrue
kindprobe kindprofile kind
intervaldurationprofile value
timeoutdurationprofile value

A check can override each field for its probe kind.

Kemuri uses these merge rules:

  • A scalar value replaces the profile value.
  • HTTP headers merge by header name.
  • A list replaces the profile list.

The check kind must match the profile kind.

Secrets ​

HTTP bodies, webhook URLs, webhook header values, and SMTP passwords can use a literal value, an environment variable, or a file.

Read a value from an environment variable:

yaml
url:
  from_env: KEMURI_WEBHOOK_URL

Read a value from a file:

yaml
password:
  from_file: /run/secrets/smtp-password

Use environment or file references for credentials. Restrict access to secret files and process environment data.

Disabled configuration ​

Set enabled: false on a target or check to stop scheduling it. Kemuri keeps its stored history.

Kemuri resolves only enabled targets and checks. Invalid values in an enabled entry stop startup or reload.

Complete example ​

The repository contains a sample configuration.

Kemuri is available under the MIT License.