Skip to content

Setting Up Performance Data Collection

Setting Up Virtual Machine Monitoring

Step 1 - Configuration

  1. Search for “Monitor” in Azure Portal.

    image.png

  2. Click on the “Virtual machine” under Insights tab.

    image.png

  3. Click on “Configure Insights”. image.png

  4. Click “Not monitored” under 'Overview' tab in the right side.

  5. Choose the virtual machine which need to be enabled.

  6. Click on "Enable". image.png

  7. It is redirected to the 'Azure Monitor Screen'.

  8. Click on "Enable". image.png

  9. It will redirect to the 'Monitoring Configuration' screen.

  10. Choose the required subscription.

  11. Choose the DCR which was created during the managed app creation from dropdown.

  12. The 'Log Analytics workspace' from the selected DCR location will get auto selected.

  13. Click on "Configure". image.png

  14. Now the selected Virtual Machine is configured with the selected DCR. Repeat the steps from 5 to 13, for enabling all VM under "not Monitoring" tab.

Step 2 - Add Resources for monitoring (OPTIONAL)

  1. Search for "Data collection rules" in azure portal. image.png

  2. You can see the created DCR with enabled VM insights and performance counters. image.png

  3. To add VM in DCR, select the DCR and select the resources.

  4. Click “+ Add”, in the “Select a scope” section.

  5. Choose the resources need to add. Can add any number of resource we want.

  6. Click “Apply”. image.png

7.. After adding the resource, it will be shown in the resource list . Logs of these resources will be sent to the selected log analytics workspace. image.png

Step 3 - Add more Log Analytics Workspace to DCR (OPTIONAL)

  1. Search for "Data Collection Rules (DCR)" in azure portal.

  2. Choose the 'DCR' which needs to add new log analytics workspace.

  3. Click on the "Data source" under Configuration tab.

  4. Click on "Performance Counters". image.png

  5. Click on the "Destination".

  6. Click on "+Add destination".

  7. Choose the 'Destination type' as "Azure Monitor Logs".

  8. Choose the required 'Subscription'.

  9. Choose the required 'Log Analytics Workspace'.

  10. Click on "Save"

image.png

Setting Up App Service Monitoring

  1. Search for "App Service" in Azure Portal and select the required app service. image.png

  2. Under monitoring, choose the "Diagnostic Setting".

    image.png

  3. Click “Add diagnostic setting”.

    image.png

  4. Provide the diagnostic setting name.

  5. Enable all the metrics needed.

  6. Choose the destination to send to Log analytics workspace

  7. Select the previously configured Log analytics workspace from the list of available workspaces.

  8. Click "Save" to connect 'SQL Database' to the log analytics workspace. image.png

Setting Up SQL Database Monitoring

  1. Search for "SQL Database" in 'Azure Portal' and select the required 'App service'. image.png

  2. Under monitoring, choose the "Diagnostic Setting".

    image.png

  3. Click “Add diagnostic setting”.

    image.png

  4. Provide the diagnostic setting name.

  5. Enable all the metrics needed.

  6. Choose the destination to send to Log analytics workspace

  7. Select the previously configured 'Log analytics workspace' from the list of available workspaces.

  8. Click "Save" to connect 'SQL Database' to the log analytics workspace.

image.png