You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/best-practices-cost.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ This article describes [Cost optimization](/azure/architecture/framework/cost/)
54
54
55
55
| Recommendation | Benefit |
56
56
|:---|:---|
57
-
| Configure VM agents to collect only important events. | Virtual machines can vary significantly in the amount of data they collect, depending on the amount of telemetry generated by the applications and services they have installed. See [Monitor virtual machines with Azure Monitor: Workloads](vm/monitor-virtual-machine-data-collection.md#controlling-costs) for guidance on data to collect and strategies for using [XPath queries](agents/data-collection-rule-azure-monitor-agent.md#filter-events-using-xpath-queries) to limit it.|
57
+
| Configure VM agents to collect only important events. | Virtual machines can vary significantly in the amount of data they collect, depending on the amount of telemetry generated by the applications and services they have installed. See [Monitor virtual machines with Azure Monitor: Workloads](vm/monitor-virtual-machine-data-collection.md#control-costs) for guidance on data to collect and strategies for using [XPath queries](agents/data-collection-rule-azure-monitor-agent.md#filter-events-using-xpath-queries) to limit it.|
58
58
| Ensure that VMs aren't sending duplicate data. | Any configuration that uses multiple agents on a single machine or where you multi-home agents to send data to multiple workspaces may incur charges for the same data multiple times. If you do multi-home agents, make sure you're sending unique data to each workspace. See [Analyze usage in Log Analytics workspace](logs/analyze-usage.md) for guidance on analyzing your collected data to make sure you aren't collecting duplicate data. If you're migrating between agents, continue to use the Log Analytics agent until you [migrate to the Azure Monitor agent](./agents/azure-monitor-agent-migration.md) rather than using both together unless you can ensure that each is collecting unique data. |
59
59
| Use transformations to filter unnecessary data from collected events. |[Transformations](essentials/data-collection-transformations.md) can be used in data collection rules to remove unnecessary data or even entire columns from events collected from the virtual machine which can significantly reduce the cost for their ingestion and retention. |
Copy file name to clipboardExpand all lines: articles/azure-monitor/vm/vminsights-enable-hybrid.md
+21-28Lines changed: 21 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,31 +11,29 @@ ms.date: 06/08/2022
11
11
# Enable VM insights for a hybrid virtual machine
12
12
This article describes how to enable VM insights for a virtual machine outside of Azure, including on-premises and other cloud environments.
13
13
14
-
> [!IMPORTANT]
15
-
> The recommended method of enabling hybrid VMs is first enabling [Azure Arc for servers](../../azure-arc/servers/overview.md) so that the VMs can be enabled for VM insights using processes similar to Azure VMs. This article describes how to onboard hybrid VMs if you choose not to use Azure Arc.
14
+
To enable hybrid VMs, first enable [Azure Arc for servers](../../azure-arc/servers/overview.md) so that the VMs can be enabled for VM insights by using processes similar to Azure VMs. This article describes how to onboard hybrid VMs if you choose not to use Azure Arc.
-[Create and configure a Log Analytics workspace](./vminsights-configure-workspace.md).
23
-
- See [Supported operating systems](./vminsights-enable-overview.md#supported-operating-systems) to ensure that the operating system of the virtual machine or virtual machine scale set you're enabling is supported.
24
-
21
+
- See [Supported operating systems](./vminsights-enable-overview.md#supported-operating-systems) to ensure that the operating system of the virtual machine or virtual machine scale set you're enabling is supported.
25
22
26
23
## Overview
27
-
Virtual machines outside of Azure require the same Log Analytics agent and Dependency agent that are used for Azure VMs. Since you can't use VM extensions to install the agents though, you must manually install them in the guest operating system or have them installed through some other method.
24
+
Virtual machines outside of Azure require the same Log Analytics agent and Dependency agent that are used for Azure VMs. Because you can't use VM extensions to install the agents, you must manually install them in the guest operating system or have them installed through some other method.
28
25
29
-
See [Connect Windows computers to Azure Monitor](../agents/agent-windows.md) or [Connect Linux computers to Azure Monitor](../agents/agent-linux.md) for details on deploying the Log Analytics agent. Details for the Dependency agent are provided in this article.
26
+
For information on how to deploy the Log Analytics agent, see [Connect Windows computers to Azure Monitor](../agents/agent-windows.md) or [Connect Linux computers to Azure Monitor](../agents/agent-linux.md). Details for the Dependency agent are provided in this article.
30
27
31
28
## Firewall requirements
32
-
Firewall requirements for the Log Analytics agent are provided in [Log Analytics agent overview](../agents/log-analytics-agent.md#network-requirements). The VM insights Map Dependency agent doesn't transmit any data itself, and it doesn't require any changes to firewalls or ports. The Map data is always transmitted by the Log Analytics agent to the Azure Monitor service, either directly or through the [Operations Management Suite gateway](../../azure-monitor/agents/gateway.md) if your IT security policies don't allow computers on the network to connect to the internet.
29
+
Firewall requirements for the Log Analytics agent are provided in [Log Analytics agent overview](../agents/log-analytics-agent.md#network-requirements). The VM insights Map Dependency agent doesn't transmit any data itself, and it doesn't require any changes to firewalls or ports.
33
30
31
+
The Map data is always transmitted by the Log Analytics agent to the Azure Monitor service. Data is transmitted either directly or through the [Operations Management Suite gateway](../../azure-monitor/agents/gateway.md) if your IT security policies don't allow computers on the network to connect to the internet.
34
32
35
33
## Dependency agent
36
34
37
35
>[!NOTE]
38
-
>The following information described in this section is also applicable to the [Service Map solution](./service-map.md).
36
+
>The following information described in this section also applies to the [Service Map solution](./service-map.md).
39
37
40
38
You can download the Dependency agent from these locations:
41
39
@@ -44,10 +42,9 @@ You can download the Dependency agent from these locations:
44
42
|[InstallDependencyAgent-Windows.exe](https://aka.ms/dependencyagentwindows)| Windows | 9.10.16.22650 | BE537D4396625ADD93B8C1D5AF098AE9D9472D8A20B2682B32920C5517F1C041 |
45
43
|[InstallDependencyAgent-Linux64.bin](https://aka.ms/dependencyagentlinux)| Linux | 9.10.16.22650 | FF86D821BA845833C9FE5F6D5C8A5F7A60617D3AD7D84C75143F3E244ABAAB74 |
46
44
47
-
48
45
## Install the Dependency agent on Windows
49
46
50
-
You can install the Dependency agent manually on Windows computers by running `InstallDependencyAgent-Windows.exe`. If you run this executable file without any options, it starts a setup wizard that you can follow to install the agent interactively. You require *Administrator* privileges on the guest OS to install or uninstall the agent.
47
+
You can install the Dependency agent manually on Windows computers by running `InstallDependencyAgent-Windows.exe`. If you run this executable file without any options, it starts a setup wizard that you can follow to install the agent interactively. You require Administrator privileges on the guest OS to install or uninstall the agent.
51
48
52
49
The following table highlights the parameters that are supported by setup for the agent from the command line.
The Dependency agent is installed on Linux servers from *InstallDependencyAgent-Linux64.bin*, a shell script with a self-extracting binary. You can run the file by using `sh` or add execute permissions to the file itself.
@@ -98,7 +94,7 @@ Files for the Dependency agent are placed in the following directories:
98
94
| Service executable files | /opt/microsoft/dependency-agent/bin/microsoft-dependency-agent<br>/opt/microsoft/dependency-agent/bin/microsoft-dependency-agent-manager |
Use the following sample shell script to download and install the agent:
103
99
104
100
```
@@ -108,7 +104,7 @@ sudo sh InstallDependencyAgent-Linux64.bin -s
108
104
109
105
## Desired State Configuration
110
106
111
-
To deploy the Dependency agent using Desired State Configuration (DSC), you can use the xPSDesiredStateConfiguration module with the following example code:
107
+
To deploy the Dependency agent by using Desired State Configuration (DSC), you can use the `xPSDesiredStateConfiguration` module with the following example code:
112
108
113
109
```powershell
114
110
configuration VMInsights {
@@ -142,41 +138,38 @@ configuration VMInsights {
142
138
}
143
139
```
144
140
145
-
146
-
147
141
## Troubleshooting
148
142
149
-
### VM doesn't appear on the map
143
+
This section offers troubleshooting tips for common issues.
150
144
151
-
If your Dependency agent installation succeeded, but you don't see your computer on the map, diagnose the problem by following these steps.
145
+
### VM doesn't appear on the map
152
146
153
-
1. Is the Dependency agent installed successfully? You can validate this by checking to see if the service is installed and running.
147
+
If your Dependency agent installation succeeded but you don't see your computer on the map, diagnose the problem by following these steps:
154
148
155
-
**Windows**: Look for the service named "Microsoft Dependency agent."
149
+
1. Is the Dependency agent installed successfully? Check to see if the service is installed and running.
156
150
157
-
**Linux**: Look for the running process "microsoft-dependency-agent."
151
+
-**Windows**: Look for the service named "Microsoft Dependency agent."
152
+
-**Linux**: Look for the running process "microsoft-dependency-agent."
158
153
159
-
2. Are you on the [Free pricing tier of Log Analytics](/previous-versions/azure/azure-monitor/insights/solutions)? The Free plan allows for up to five unique computers. Any subsequent computers won't show up on the map, even if the prior five are no longer sending data.
154
+
1. Are you on the [Free pricing tier of Log Analytics](/previous-versions/azure/azure-monitor/insights/solutions)? The Free plan allows for up to five unique computers. Any subsequent computers won't show up on the map, even if the prior five are no longer sending data.
160
155
161
-
3. Is the computer sending log and perf data to Azure Monitor Logs? Perform the following query for your computer:
156
+
1. Is the computer sending log and perf data to Azure Monitor Logs? Perform the following query for your computer:
162
157
163
158
```Kusto
164
159
Usage | where Computer == "computer-name" | summarize sum(Quantity), any(QuantityUnit) by DataType
165
160
```
166
161
167
-
Did it return one or more results? Is the data recent? If so, your Log Analytics agent is operating correctly and communicating with the service. If not, check the agent on your server: [Log Analytics agent for Windows troubleshooting](../agents/agent-windows-troubleshoot.md) or [Log Analytics agent for Linux troubleshooting](../agents/agent-linux-troubleshoot.md).
162
+
Did it return one or more results? Is the data recent? If so, your Log Analytics agent is operating correctly and communicating with the service. If not, check the agent on your server. See [Log Analytics agent for Windows troubleshooting](../agents/agent-windows-troubleshoot.md) or [Log Analytics agent for Linux troubleshooting](../agents/agent-linux-troubleshoot.md).
168
163
169
164
#### Computer appears on the map but has no processes
170
165
171
-
If you see your server on the map, but it has no process or connection data, that indicates that the Dependency agent is installed and running, but the kernel driver didn't load.
172
-
173
-
Check the C:\Program Files\Microsoft Dependency Agent\logs\wrapper.log file (Windows) or /var/opt/microsoft/dependency-agent/log/service.log file (Linux). The last lines of the file should indicate why the kernel didn't load. For example, the kernel might not be supported on Linux if you updated your kernel.
166
+
You see your server on the map, but it has no process or connection data. In this case, the Dependency agent is installed and running, but the kernel driver didn't load.
174
167
168
+
Check the *C:\Program Files\Microsoft Dependency Agent\logs\wrapper.log* file (Windows) or */var/opt/microsoft/dependency-agent/log/service.log* file (Linux). The last lines of the file should indicate why the kernel didn't load. For example, the kernel might not be supported on Linux if you updated your kernel.
175
169
176
170
## Next steps
177
171
178
172
Now that monitoring is enabled for your virtual machines, this information is available for analysis with VM insights.
179
173
180
174
- To view discovered application dependencies, see [View VM insights Map](vminsights-maps.md).
181
-
182
175
- To identify bottlenecks and overall utilization with your VM's performance, see [View Azure VM performance](vminsights-performance.md).
0 commit comments