Search code examples
azuremetricsazure-logic-apps

Azure Logic Apps - is it possible to have a metric that shows, per resource, the SUM of all Trigger Fired?


I have a very simple use case: I have an Azure Subscription used internally for testing and demo purposes. A lot of members of the team are regularly creating Logic Apps for tests and demo. I want to be sure that we don't have a lot of Triggers Fired (i.e. each second...) in order to avoid too much consumption.

When I go to Metrics in order to display the sum of "Trigger Fired", I need to first select a Logic App and I can't select multiple Logic Apps at a time. How can I proceed if I want to see all Trigger Fired metrics for all Logic Apps? Thanks.


Solution

  • If you just want it show multiple logic app fired values in one metric, you could set a metric show one logic app trigger fired value then click Add metric, it will prompt it to configure the details. After these, you will see the value in one metric.

    enter image description here

    Update: hope this is what you want. You need go to Logs, query the logs you want. And how to set the monitor to get the logs, you could refer to this doc:logic apps monitor your logic apps. Then query in the Logs.

    The below is my test.

     AzureDiagnostics 
    | where Category == "WorkflowRuntime" 
    | where OperationName == "Microsoft.Logic/workflows/workflowTriggerStarted" 
    | summarize ccc=count(Category) by bin_at(TimeGenerated, 1h, now()), ResourceGroup ,ResourceProvider
    

    The select the CHART. enter image description here

    And from the doc you could find Logic Apps Management to view logs, it also provide a way to view runs like the below picture.

    enter image description here

    Note: with this way it only show you the logs after you set the Log Analytics, the before logs it won't be stored.