Skip to main content

Monitor an Integration

Where to look, in which order, to know whether an integration is healthy.

Use this guide to set up the minimum that lets you notice a problem before your callers report it, and to know where to look when they do.

Signals and where they are​

Each question about an integration has one signal that answers it. This table maps the question to the place to look.

QuestionSignalWhere
Is it deployed and ready?Phase, instances, revisionPage of the integration, Runtime Manager
Did the build succeed?Build logPage of the integration
What did the routes do?Logs, JSON, per service.nameMonitoring, Logs Insight
Throughput, failures, latency per routecamel_exchanges_total, camel_route_policy_*Monitoring, Metrics
Memory, GC, threadsjvm_*, process_cpu_usageMonitoring, Metrics
Where one request spent its timeTraceMonitoring, Distributed Traces
What callers experiencedGateway request rate, code classes, durationMonitoring, Metrics

Minimal dashboard​

Four panels per integration, each a query on the Metrics page:

  1. exchange rate per route;
  2. mean processing time per route;
  3. heap used against the memory limit;
  4. share of 5xx responses at the gateway.

Minimal alerts​

Three alerts cover most incidents. Each one corresponds to something a caller would notice.

AlertCondition
ErrorsShare of 5xx above a threshold for five minutes
LatencyMean processing time above the target for five minutes
StalledExchange rate at zero while traffic is expected

Diagnosis order​

  1. Phase and instances of the integration: not ready, restarting?
  2. Logs of the last minutes, filtered on ERROR and WARN.
  3. A trace of a slow or failed request.
  4. Gateway metrics, to tell a route problem from a routing or policy problem.

Detail: tutorial, step 10.