Logs, metrics and traces
Weik.io 2026.2Every integration sends its telemetry to Weik.io through OpenTelemetry. You read it with the weikio CLI or on the admin UI's Observability pages. Product page · Video
Watch: What a running integration is doing, 4:24
The video opens the logs and metrics of a running integration and follows its traces, in the CLI and in the admin UI.
This part of the video couldn't be loaded.
On this page
Every Camel integration you deploy sends its telemetry to Weik.io without an added Java agent or library. You can filter all of it by label:
- The integration and its version
- The project
- The environment
- The agent
- The Camel version
Weik.io sets the project, environment, integration and agent labels itself, so code in one integration can’t file numbers under another.
What every integration sends#
Log lines come through Camel’s log4j2 logging, which Weik.io leaves unchanged, so log: steps and logger.info work as usual. An integration’s log4j2.properties still sets what its console shows, but every line reaches Weik.io. Lines written through java.util.logging or System.Logger arrive too.
A trace follows one message through the route, including each endpoint it called and each kamelet. The trace continues into another integration through the platform’s events. The trace of a call through the API gateway continues into the integration behind it.
Metrics include Camel’s counts and timings for each route, and the JVM’s memory and garbage collection. Your own counters arrive as metrics too when you write them the way the Camel documentation does. micrometer:counter:invoices.processed and opentelemetry-metrics:counter:invoices.rejected both work, as Custom metrics shows.
Every 30 seconds the agent also measures each deployment from outside the JVM:
- Messages handled and failed
- Messages in flight
- The last message
- Memory and CPU
- Threads
- Restarts
When a process exits without the agent stopping it, the agent writes a line into the deployment’s logs, because a JVM’s last log lines can be lost when it dies:
The process of deployment 'production/hr/payroll-sync (01k5xb7q2d9m4r8t6w3y0hcnfe)' exited with code 3; the agent restarts it in 10 s (restart 2 in 7 min).
Stores and access#
The hub runs a store for each kind of data beside the backend. Each store keeps its data within a disk cap.
| Data | Store | Kept by default |
|---|---|---|
| Log lines | VictoriaLogs | 30 days |
| Metrics | VictoriaMetrics | 90 days |
| Traces | VictoriaTraces | 7 days |
You set the days with weikio settings set, as Storage and its budget shows.
You see the telemetry of the projects and environments your grant covers. With a grant narrowed to some integrations, you see only what those integrations sent. A trace that crosses into a project you can’t read shows the steps you may see and how many it hides.
Logs#
$ weikio logs finance/erp-invoice-export --env production -f-f follows new lines until you press Ctrl-C. Without -f, the command shows a window of lines, which you narrow with filters:
$ weikio logs finance/erp-invoice-export --env production --since 15m --level warn --limit 214:31:02.118 UTC WARN fetch-invoices agent-fi-02 HTTP 429 from https://erp.example.internal/api/invoices/pending, retrying in 30 s
14:31:32.204 UTC WARN fetch-invoices agent-fi-02 HTTP 429 from https://erp.example.internal/api/invoices/pending, retrying in 60 s
To read older lines, run:
weikio logs finance/erp-invoice-export --env production --since 15m --level warn --limit 2 --before GNf5pJG7hYAAyvg9zpCAEach line shows the route and the agent that wrote the message.
--histogram counts the lines per interval and level, which shows when warnings began:
$ weikio logs finance/erp-invoice-export --env production --since 6h --histogram --interval 1hHOUR INFO WARN ERROR
09:00 UTC 612 0 0
10:00 UTC 598 0 0
11:00 UTC 601 0 0
12:00 UTC 604 2 0
13:00 UTC 590 14 1
14:00 UTC 211 38 0| Flag | What it does |
|---|---|
-- |
Lists the most frequent errors |
-- |
Shows the lines of one message or one transfer run |
-- |
Searches the text |
For the lines an agent writes about itself, run weikio agent logs <agent>. For the hub’s, run weikio platform logs backend.
Metrics#
$ weikio metrics finance/erp-invoice-export --env productionThe command prints the integration’s numbers over the window, one per line:
- Messages, and the failed ones with their share
- The typical processing time and that of the slowest 5 %
- Memory against the integration’s memory setting
- Restarts
- The last message and the last failure
- Messages in flight
- CPU and threads
Your counters follow on lines that show the route that counts each one. The routes come last, the failing ones before the busiest.
| Flag | What it does |
|---|---|
-- |
Widens the window to 24 hours |
--name messages --by agent |
Draws one metric split by agent |
--api finance/ |
Shows an API’s numbers |
weikio metrics --env production prints the Observability › Metrics tables of the environment and sorts the most failed first.




Traces#
$ weikio traces finance/erp-invoice-export --env production --errorsEach row, newest first, describes one message:
- When the message started
- How long it took
- Its status
- Where it came from
- What it went through
A failed trace’s row also has where it failed and why, such as http erp.example/api/invoices: Read timed out.
To open one trace, give weikio trace the trace’s id. A message’s id or a traceparent that a caller quotes works too:
$ weikio trace <trace-id|traceparent|message-id>The command prints the trace as a waterfall of its steps, each under the step it ran in. A failed trace ends with Failed at: and the step’s error. The command then prints the weikio logs ... --correlation-id line that shows the trace’s log lines.
Every response of the API gateway has a traceresponse header. When a caller quotes the header’s value, paste it into Observability › Traces to find the call.




In the admin UI#
Open Observability to see what runs in an environment now and what needs attention, and to read the environment’s telemetry.
In the Observability group of an integration’s page, you follow the integration’s live log and open the trace that a log line belongs to.
Keep fewer traces#
| Setting | Where | What it keeps |
|---|---|---|
WEIKIO_, from 0 to 1 |
The hub’s .env |
That share of the calls through the gateway |
jvm. |
An integration’s integration.yaml |
A share of the integration’s traces |
When the gateway keeps a call’s trace, the trace includes the integration behind it. On Camel 4.18.5 the trace shows each step of the integration, and on 4.22.1 only the integration’s run and the calls it makes. jvm.telemetry: off turns an integration’s traces and metrics off and keeps its log lines.
A change in integration.yaml takes effect at the deployment’s next start. A change in .env takes effect once docker compose up -d has run.
Limits on telemetry batches#
The agents and the hub’s own services send telemetry to the hub in batches. A batch has at most 16,384 entries and at most telemetryBatchMaxBytes in size, 8 MiB by default. The hub answers a larger batch with 413 body_too_large and doesn’t store it. The problem Telemetry was lost on the way lists the senders of such batches. To accept larger batches, raise the setting from 8MiB up to 64MiB:
$ weikio settings set --telemetry-batch-max-bytes 16MiBEach hub server accepts at most four batches at once, which uses up to 32 MiB of memory at the default size. When a server can’t accept a batch within two seconds, it answers 503 with Retry-After: 5. The sender then sends the batch again. The Telemetry received tab of Health counts such a batch under Not stored as the hub server was busy reading other batches.
When an agent is cut off#
While an agent can’t reach the hub, it keeps its integrations’ telemetry on its disk and sends it later with the original times. A running weikio logs -f prints such log lines after they arrive, marked late after the level. To see late lines that arrived before you started following, read their time window with --from and --to.