Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Observability & Monitoring

Kroki-rs provides structured logging and metrics to ensure operational visibility across local and production environments.

Logging Strategy

We use the tracing crate for asynchronous, structured logging.

Log Levels

LevelUsage
ERRORFatal failures, process crashes, or invalid configurations.
WARNRecoverable errors (e.g., cache miss with fallback).
INFOMajor lifecycle events (Server start, Provider discovery).
DEBUGDetailed internal state and binary path resolution.
TRACEHigh-frequency events (Per-byte decoding steps).

Metrics & Dashboard (Admin Port)

The server exposes a dedicated Admin server on port 8081 (default) for observability and orchestration.

Operations Dashboard

EndpointMethodDescription
/healthGETBasic health check for server and browser pool.
/metricsGETPrometheus-style metrics (Renders, Latency, Errors).

Real-time Pool Monitoring

The /health endpoint also returns JSON telemetry for the browser pool:

Enabling Observability

Use the -d or --debug flag with dflow to see the full diagnostic output:

./dflow develop --debug