Metrics monitoring and building dashboards for Synapse pipeline
    • Dark
      Light
    • PDF

    Metrics monitoring and building dashboards for Synapse pipeline

    • Dark
      Light
    • PDF

    Article summary

    #ServerlessTips - Azure Synapse
    Author: Michael John Peña, Azure MVP

    One benefit of using Log Analytics is that you can use your log queries to create alerts and dashboards based on your monitoring needs. You can create alerts based on specific conditions in your data, such as when a pipeline run fails or when a performance metric exceeds a threshold. Dashboards visualize your data in various charts and graphs that help you understand and analyse your data.
    To create an alert based on a log query, follow these steps:

    1. In Log Analytics, write and run a log query that returns records that match your alert condition. For example, you can use the following query to return pipeline runs that failed in the last 15 minutes.
    SynapseIntegrationPipelineRuns 
    
    | where Status == “Failed” 
    
    | where TimeGenerated > ago(15m) 
    
    1. Select New alert rule from the top menu.
    2. In the Create rule page, under Condition details, specify a name for your alert rule condition.
    3. In the Create rule page, under Condition details, specify a name for your alert rule condition, such as “Pipeline Run Failure Alert”. You can also modify the alert logic, such as changing the time period, the frequency, or the threshold for triggering the alert.
    4. Select Done to save your alert rule condition.
    5. In the Create rule page, under Action group details, select an existing action group or create a new one. On the Create rule page, go to the Action group details section and choose either an existing action group or create a new one. This will help you define the actions to be taken when the alert goes off. The actions may include emailing, calling a webhook, or running a logic app.
    6. Select Done to save your action group.
    7. In the Create rule page, under Alert rule details, specify a name for your alert rule, such as “Pipeline Run Failure Alert Rule”. You can also change the alert severity, enable or disable the alert rule, and add tags or notes to your alert rule.
    8. Select Create alert rule to create your alert rule.

    Metrics monitoring and building dashboards for Synapse pipeline-1

    To create a dashboard based on a log query, follow these steps:

    1. In Log Analytics, write and run a log query that returns records you want to visualize in a dashboard. For example, you can use the following query to return the average duration of pipeline runs by pipeline name in the last 24 hours:
    PipelineRuns 
    
    | where TimeGenerated > ago(24h) 
    
    | summarize avg(Duration) by PipelineName 
    
    1. Select Pin to dashboard from the top menu.
    2. In the Pin to dashboard page, select an existing dashboard or create a new one. You can also change the title and subtitle of your chart.
    3. Select Apply to pin your chart on the dashboard.

    You can view your dashboards in the Azure portal by selecting Dashboards from the left pane. You can also edit, share, or delete your dashboards as needed.

    MicrosoftTeams-image 491


    Was this article helpful?

    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence