Skip to content
Weik.ioDocs
2026.2
Try Weik.io

Logs, metrics and traces

Weik.io 2026.2

Every 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.

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:

You see
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#

Terminal
$ 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:

Terminal
$ weikio logs finance/erp-invoice-export --env production --since 15m --level warn --limit 2
You see
14: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 GNf5pJG7hYAAyvg9zpCA

Each line shows the route and the agent that wrote the message.

--histogram counts the lines per interval and level, which shows when warnings began:

Terminal
$ weikio logs finance/erp-invoice-export --env production --since 6h --histogram --interval 1h
You see
HOUR        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
--top-errors Lists the most frequent errors
--correlation-id Shows the lines of one message or one transfer run
--query 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#

Terminal
$ weikio metrics finance/erp-invoice-export --env production

The 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
--since 24h Widens the window to 24 hours
--name messages --by agent Draws one metric split by agent
--api finance/invoices@v1 Shows an API’s numbers

weikio metrics --env production prints the Observability › Metrics tables of the environment and sorts the most failed first.

/integrations/finance/erp-invoice-export/metrics
The Metrics page of finance/erp-invoice-export in production with six numbers and a memory chart. Its chart of messages per minute has deploy markers.The Metrics page of finance/erp-invoice-export in production with six numbers and a memory chart. Its chart of messages per minute has deploy markers.The Metrics page of finance/erp-invoice-export in production with six numbers and a memory chart. Its chart of messages per minute has deploy markers.The Metrics page of finance/erp-invoice-export in production with six numbers and a memory chart. Its chart of messages per minute has deploy markers.
In Metrics, you see six numbers for an integration in one environment, such as failed messages and restarts. You see each deploy marked on its message and memory charts.

Traces#

Terminal
$ weikio traces finance/erp-invoice-export --env production --errors

Each 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:

Terminal
$ 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.

/observability/traces
A trace of one invoice through the route export-invoices, the HTTP call to the ERP, the counter, the event to invoice-created and the route of invoice-archiver that wrote the file. Each step has its duration.A trace of one invoice through the route export-invoices, the HTTP call to the ERP, the counter, the event to invoice-created and the route of invoice-archiver that wrote the file. Each step has its duration.A trace of one invoice through the route export-invoices, the HTTP call to the ERP, the counter, the event to invoice-created and the route of invoice-archiver that wrote the file. Each step has its duration.A trace of one invoice through the route export-invoices, the HTTP call to the ERP, the counter, the event to invoice-created and the route of invoice-archiver that wrote the file. Each step has its duration.
In a trace, you follow one invoice from the route export-invoices through the call to the ERP and the event into invoice-archiver. You also see how long each step took.

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_APIM_TRACE_SAMPLE_RATIO, from 0 to 1 The hub’s .env That share of the calls through the gateway
jvm.traceSampling 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:

Terminal
$ weikio settings set --telemetry-batch-max-bytes 16MiB

Each 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.

Sign in to the live demo

Sign in with the shared viewer account. It can open every screen of the example projects but can't change anything.

E-mail
viewer@demo.weik.io
Password
try-weikio-live-demo
Open the live demo