scale-tone/DurableFunctionsMonitor

Enhancement to monitor multiple storage accounts

mec-sa opened this issue · 2 comments

For us we have 2 azure function code bases, one for nodejs and another for .netcore.
For each of the code base we deploy them to two environments, staging and production. So we ended up with 4 environments in total. Right now to get the full DFM benefits we would have deploy the code to 4 resources.
It would so much easier if DFM allows for store multiple storage connection strings, and we can easily switch between the environment to monitor from some UI dropdown.

Most people probably don't have multiple durable function code bases, but it's definitely a common practice to have multiple environments.

Managing multiple storage accounts with single DfMon instance would indeed be a great thing to have. But sadly it isn't technically possible, at least as of today. DfMon is itself an Azure Durable Function, and Durable Functions do not support working with multiple storage accounts.

The alternatives for you could be:

  1. Put your Task Hubs into the same storage account. Then all of them would be observable by a single DfMon instance.
  2. Use DfMon in 'injected' mode, aka make it a part of your .Net Core project. See instructions in the NuGet package readme.
  3. Or just use DfMon as VsCode extension. There all your storage accounts and Task Hubs in them will become visible at once.

Support for multiple Storage accounts implemented in v5.0. Please, validate.