DEV Community

Cover image for LINUX VM MONITORING WITH AZURE MONITOR
Oreofe Towobola
Oreofe Towobola

Posted on Edited on

LINUX VM MONITORING WITH AZURE MONITOR

CREATING A LINUX VIRTUAL MACHINE

  1. In the Azure Portal Search Bar, enter "Virtual Machines" and select it from the results.

  1. Choose "Create" and select "Azure Virtual Machine."

  1. On the Basics page, select Linux as the operating system and configure the VM size, region, and other settings as needed.

  1. Complete the creation process and wait for the VM to deploy.

INSTALLING THE AZURE MONITOR AGENT ON LINUX VM

  1. In the Azure Portal Search Bar, enter "Data Collection Rules" and select it.
  2. Click "+ Create" to start a new data collection rule.
  3. Provide a name for the rule, select your subscription, resource group, and region matching your Linux VM.
  4. Set the platform type to Linux.
  5. Under Resources, add your Linux VM to the rule.
  6. In the Collect and Deliver tab, add a data source such as Performance Counters.
  7. Under Destination, add Azure Monitor Logs and select the Log Analytics workspace.
  8. Review and create the data collection rule. This automatically deploys the Azure Monitor Agent extension to your Linux VM.

VERIFYING AGENT INSTALLATION AND DATA INGESTION

  1. Navigate to your Log Analytics workspace in the Azure Portal.
  2. Select "Logs" from the workspace menu.
  3. Switch to KQL mode and run the query:

Top comments (0)