Hosting nservicebus in azure functions

We are planning on hosting nservicebus endpoints in azure functions, we have following questions

  1. can we assume that all the metrics, logs, failed messages and count, telemetry will logged into appinsights oob ? or do we have to add any custom code or dll to achieve this ?
  2. as of now we are planning to have max 3 endpoints, so we are trying to avoid service pulse and do all the monitoring in appinsights, obviously we will not have the resubmission feature which is not required for us.
  3. Can Healthchecks info be logged in to appinsights ?

Thanks -nen

Hi Nen!

  1. can we assume that all the metrics, logs, failed messages and count, telemetry will logged into appinsights oob ? or do we have to add any custom code or dll to achieve this ?

All logging we do gets sent to the logger configured by the function host so if you have app insights setup for your function app it should all work out of the box.

  1. as of now we are planning to have max 3 endpoints, so we are trying to avoid service pulse and do all the monitoring in appinsights, obviously we will not have the resubmission feature which is not required for us.

Do note that failed messages will end up in your error queue so some kind of monitoring of it is likely going to be needed.

  1. Can Healthchecks info be logged in to appinsights ?

Heartbeats and custom checks do require ServiceControl to work but you should be able to mimic them by setting up plain C# timers that talks directly to App Insights via the native API. See our App Insights sample for more details on using the API.

Hope this helps!