Metric and log sources
Attach telemetry from services that are not an integration's members - a broker's queue depth, a runtime's logs for one flow - so the integration's Metrics, Logs and health checks include it, without the broker ever joining the flow, the members or the message counts.
An integration reads the metrics and logs of its member services: the services its messages pass through. Much of what says an integration is healthy comes from somewhere else. One RabbitMQ serves many integrations, and the health of Order sync is, among other things, the depth of its orders queue on that broker. From v0.11.183 that telemetry can be attached to the integration as a source.
Membership and sources answer different questions:
- a member carries the integration’s messages;
- a source is evidence about the integration.
So a source is never a member. It is not in the flow graph, the Services list above it, the message counts or the “one trace through every service” rule; a broker that only reports gauges would break all four.
Adding a source
Section titled “Adding a source”Under Edit integration → Services, below the members, Supporting telemetry lists the sources; choose Add a source (or Edit). A source is:
- Metrics or Logs;
- of a service (
rabbitmq-prod) or a system. A system origin follows the system’s member services as they change, so the integration keeps working when the broker is replaced or renamed; - where conditions on the rows’ own attributes, AND-ed: the operators of integration rules (
rabbitmq.queue.name=orders), plus >, ≥, < and ≤, which read the attribute as a number (http.response.status_code≥500; a row whose attribute is not a number does not match); - for metrics, optionally which metrics: pick from the names the origin has sent, or type a name or a glob such as
rabbitmq.queue.*. Each is kept as a chip; none kept is every metric of the origin that meets the conditions.
The integration’s Metrics and Logs tabs say which sources they include, and offer Add a metric source or Add a log source, which opens this editor with one started.
A condition picks which telemetry is the integration’s; it does not judge its value. “Queue depth above 1000” is a health check bound to the integration: with the queue as a source, a metric check on rabbitmq.message.current > 1000 reads that queue alone.
Add one source per queue, or one with a condition such as rabbitmq.queue.name matches regex ^orders(\.dlq)?$ for a queue and its dead-letter queue.
What a source feeds
Section titled “What a source feeds”- The integration’s Metrics and Logs tabs: its members’ telemetry, as before, plus each source’s slice.
- Metric and log checks bound to the integration, and their preview. A check on
rabbitmq.message.currentwithstateisreadyreads the integration’s queue, so the integration turns unhealthy when its queue backs up. - The integration’s status, through those checks.
- Access. A grant on the integration reaches exactly each source’s slice for the signals it covers, never the rest of the origin: the broker’s other queues stay hidden.
- Environments. A source’s telemetry is read per environment like a member’s.
Over the API
Section titled “Over the API”GET /api/v1/integrations/{id}/sourceslists them;PUTwith{"sources": [...]}replaces them. Each source is{signal, origin_kind, origin, conditions, metric_names}, withorigina service name or a system id.GET /api/v1/integrations/{id}returns them assources, with a system origin’s name and current services.- The MCP tool
sluicio_get_integrationlists them, andsluicio_metric_catalogandsluicio_search_logsread them when scoped to the integration. - Configuration transfer carries them, naming a system origin by name.
{ "sources": [{ "signal": "metrics", "origin_kind": "service", "origin": "rabbitmq-prod", "conditions": [{"attribute": "rabbitmq.queue.name", "operator": "equals", "value": "orders"}], "metric_names": ["rabbitmq.*"] }]}Good to know
Section titled “Good to know”- A source always names an origin. A condition alone, matching any service that reports it, is easy to make far too broad.
- An integration that already has its broker as a member, with a queue condition, keeps working unchanged. Nothing is migrated.
- The metric names filter applies to metric sources only; for logs, narrow by attributes, and leave severity to the check.