Monitoring Integrations with Telemetry Signals: The Events Worth Alerting On
A telemetry signal is a structured event an application emits about its own behaviour, stored so the behaviour can be queried afterwards. For an integration, the signal is the difference between “the orders stopped arriving” and a record of which call failed, when, and with what attached detail. The monitoring question is not how many signals exist. It is which few of them justify waking a person up.
The myth: more signals means better monitoring
The claim sounds responsible: instrument everything, alert generously, miss nothing. The AL telemetry guidance disagrees on two counts. Telemetry must be actionable for the customer, and it must be mindful of ingestion cost. A signal nobody can act on fails the first test no matter how precisely it is measured, and every emitted event is stored and paid for whether or not it ever changes a decision.
Verify any proposed alert against those two tests before building it. What action does this signal trigger, and who takes it? If the honest answer is “someone looks at it in the morning,” the signal belongs on a dashboard, where morning is exactly when it will be seen. Alerts are a scarce resource, attention, and a catalogue that pages for everything trains its audience to ignore the page that matters.
More signals, faithfully ignored, is worse monitoring than fewer signals, acted on.
Alert-worthy: the integration events that page a human
An event earns an alert when three conditions line up: a business process is stopped or about to stop, a person can act now, and waiting until morning makes the damage larger. Applied to a retail integration estate, that test promotes a short list:
- A failed web-service call that stops a business process. Not every failed call, the one whose failure means orders, prices, or stock stop moving between systems until someone intervenes.
- Repeated HTTP 429 throttling responses. A single throttled call is the other side shedding load. A pattern of them is the early warning that an integration is being cut off, and it arrives while there is still time to slow down, spread out, or fix the calling pattern.
- An integration backlog that grows between checks. A queue that is long but draining is workload. A queue that is longer at each check is a process losing ground, and the store feels it as data that never catches up.
The alerting route is documented rather than improvised: Azure Logic Apps and Power Automate have built-in connectors to query telemetry in Application Insights for custom notifications and automations, and Microsoft shares sample alerts and automations on the Business Central BCTech GitHub repository. Start from a sample, change the query to one of the events above, and keep the notification text honest about which process stopped.
Dashboard-only: signals worth watching, not waking for
Below the alert line sits everything that informs a decision later: slow but successful calls, call volumes across the day, single failures that a retry cleared, and the trend of the alert-worthy events themselves. These signals earn their ingestion cost as history, they are how a recurring 429 pattern gets spotted before it is diagnosed as a mystery outage, but none of them names an action for tonight.
Keep the two tiers in the same store and reviewed together. A dashboard nobody opens is just an alert nobody hears, filed differently. The review rhythm is simple: the dashboard is read on a schedule, the alerts interrupt off-schedule, and any dashboard pattern that repeatedly predicts an outage gets promoted, deliberately, by a person, with its action written down.
Emitting the missing signal from AL, correctly scoped
Some integration events worth alerting on are not emitted yet. Emitting them is a small, documented procedure:
- Emit from the object that causes the situation. The guidance is explicit: emit telemetry from within the object that causes the situation, so the signal carries the context of the code that hit the problem.
- Emit with Session.LogMessage, fully dimensioned. Session.LogMessage carries the event ID, the message, the verbosity, the data classification, and custom dimensions, use the custom dimensions for the integration, the operation, and the outcome, so the alert query can filter on them later.
- Scope it with TelemetryScope ExtensionPublisher by default. That is the documented default scope; widening it is a decision to make on purpose, not by omission.
- Cover the other half of the chain. Where part of the integration runs in Azure Functions, inject custom signals from the function code, so those events land in the customEvents table and can be queried alongside the Business Central signals.
- Build the alert on the emitted event. Query the telemetry in Application Insights through the Logic Apps or Power Automate connector, adapting one of the sample alerts from the BCTech repository rather than starting from a blank flow.
What success looks like: a deliberately triggered failure of the integration produces exactly one event in customEvents, carrying the dimensions the alert filters on; the alert fires once, naming the process that stopped; and the same failure, retried successfully, appears on the dashboard without waking anyone.
One Application Insights instance or many: the retail answer
Share one. Sharing one Application Insights instance across Business Central and Azure Functions lets an entire integration process be monitored in a single telemetry store, queried with KQL (Kusto Query Language) across the whole chain. An integration failure rarely respects the boundary between the two halves: the call that failed in Business Central and the function that never ran are one incident, and one store makes them one query.
Separate instances still have their place, different estates, different owners, different retention needs, but splitting one integration across two stores is a tax paid at the worst moment, during diagnosis. Default to one store per integration chain, and let the queries, not the architecture, draw the boundaries.
Alert review checklist: pruning what nobody acts on
Alerts rot. Run this review on the catalogue on a regular cadence:
- For each alert, name the last time it fired and the action taken. No action on record means the signal fails the actionability test, demote it to the dashboard or delete it.
- Check each surviving alert against its action: does the notification still reach the person who takes that action, and does its text still name the process correctly?
- Read the dashboard for promotions: any pattern that repeatedly preceded an outage gets an alert drafted, with its action written before the alert is switched on.
- Re-run the emission check: every alert-worthy event in the catalogue is either emitted by default or covered by a Session.LogMessage emission that is still in the code.
The catalogue that survives that review is short on purpose. Three alerts that each name a stopped process and a person’s next action will protect an integration estate better than thirty that report its every mood, because the three will still be believed in six months.
, Dex Carter, Tech Writer
Keep readingNext: Job Queue as Integration Engine: Retries, Restarts, and Alerting on Failed Runs →