Skip to content

Probe settings ​

All probe settings can appear on a profile. A check can override settings from its profile.

ICMP ​

FieldType or valuesDefault
countpositive integer3
address_familyauto, ipv4, or ipv6auto
payload_sizeinteger from 0 through 6550756
source_addressIP addressnot set

The source address must match the selected address family.

Linux needs ping socket permission or CAP_NET_RAW. See Install Kemuri.

Example:

yaml
profiles:
  - kind: icmp
    id: ping-v4
    interval: 10s
    timeout: 2s
    count: 3
    address_family: ipv4
    payload_size: 56

HTTP ​

FieldType or values
urlabsolute HTTP or HTTPS URL
methodHTTP method
headersmap of header names and values
bodyliteral or secret value
expected_statusone integer or a range
follow_redirectsBoolean
max_redirect_countnonnegative integer
connection_modepooled, per_round, or fresh
measure_untilheaders or body
user_agentstring
tls_validateBoolean
root_certificateslist of PEM file paths

expected_status accepts one status:

yaml
expected_status: 204

It also accepts a quoted inclusive range:

yaml
expected_status: "200-399"

Set measure_until: headers to stop response latency at the response headers. Set measure_until: body to include the complete response body.

root_certificates replaces the inherited list. Kemuri loads each file during startup and reload.

Example:

yaml
profiles:
  - kind: http
    id: api-health
    url: https://api.example.com/health
    method: GET
    headers:
      Accept: application/json
    expected_status: "200-299"
    follow_redirects: false
    connection_mode: per_round
    measure_until: body
    tls_validate: true
    interval: 30s
    timeout: 5s

TCP ​

FieldType or values
hosthost name or IP address
portinteger from 1 through 65535
address_familyauto, ipv4, or ipv6
source_addressIP address
tls.enabledBoolean
tls.server_nameTLS server name
tls.tls_validateBoolean
tls.root_certificateslist of PEM file paths

The source address must match the selected address family.

When TLS is active, a successful latency measurement includes the TLS handshake. Kemuri reports TLS errors separately from TCP connection errors.

Example:

yaml
profiles:
  - kind: tcp
    id: postgres-tls
    host: db.example.com
    port: 5432
    address_family: auto
    tls:
      enabled: true
      server_name: db.example.com
      tls_validate: true
    interval: 30s
    timeout: 5s

DNS ​

FieldType or values
nameDNS name
serverDNS server address and optional port
record_typeDNS record type
protocoludp or tcp
expected_rcodeDNS response code
require_answerBoolean

Supported response codes are:

  • noerror
  • formerr
  • servfail
  • nxdomain
  • notimp
  • refused

domain is an accepted alias for name. resolver is an accepted alias for server. Use name and server in new configuration files.

Example:

yaml
profiles:
  - kind: dns
    id: dns-a
    name: example.com
    server: 1.1.1.1:53
    record_type: A
    protocol: udp
    expected_rcode: noerror
    require_answer: true
    interval: 30s
    timeout: 5s

Use a TCP check with protocol: tcp when you must test DNS over TCP.

Latency and failures ​

Kemuri keeps response latency separate from total elapsed time. A timeout or network error does not enter a latency histogram.

An unexpected protocol response is a health failure. No usable response is measurement loss.

Kemuri is available under the MIT License.