|
1 | 1 | ---
|
2 |
| -title: Collect custom metrics for Linux VM with the InfluxData Telegraf agent |
| 2 | +title: Collect custom metrics for Linux Virtual Machines with the InfluxData Telegraf agent |
3 | 3 | description: Instructions on how to deploy the InfluxData Telegraf agent on a Linux VM in Azure and configure the agent to publish metrics to Azure Monitor.
|
4 | 4 | services: azure-monitor
|
5 | 5 | author: EdB-MSFT
|
6 | 6 | ms.author: edbaynash
|
7 | 7 | ms.reviewer: priyamishra
|
8 | 8 | ms.topic: conceptual
|
9 | 9 | ms.custom: linux-related-content
|
10 |
| -ms.date: 08/01/2023 |
| 10 | +ms.date: 06/06/2024 |
11 | 11 | ---
|
12 |
| -# Collect custom metrics for a Linux VM with the InfluxData Telegraf agent |
| 12 | +# Collect custom metrics for a Linux Virtual Machine with the InfluxData Telegraf agent |
13 | 13 |
|
14 |
| -> [!CAUTION] |
15 |
| -> This article references CentOS, a Linux distribution that is nearing End Of Life (EOL) status. Please consider your use and planning accordingly. For more information, see the [CentOS End Of Life guidance](~/articles/virtual-machines/workloads/centos/centos-end-of-life.md). |
16 | 14 |
|
17 | 15 | This article explains how to deploy and configure the [InfluxData](https://www.influxdata.com/) Telegraf agent on a Linux virtual machine to send metrics to Azure Monitor.
|
18 | 16 |
|
19 | 17 | > [!NOTE]
|
20 |
| -> InfluxData Telegraf is an open source agent and not officially supported by Azure Monitor. For issues with the Telegraf connector, please refer to the Telegraf GitHub page here: [InfluxData](https://github.com/influxdata/telegraf) |
| 18 | +> InfluxData Telegraf is an open source agent and not officially supported by Azure Monitor. For issues with the Telegraf connector, refer to the Telegraf GitHub page here: [InfluxData](https://github.com/influxdata/telegraf) |
21 | 19 |
|
22 | 20 | ## InfluxData Telegraf agent
|
23 | 21 |
|
24 |
| -[Telegraf](https://docs.influxdata.com/telegraf/) is a plug-in-driven agent that enables the collection of metrics from over 150 different sources. Depending on what workloads run on your VM, you can configure the agent to use specialized input plug-ins to collect metrics. Examples are MySQL, NGINX, and Apache. By using output plug-ins, the agent can then write to destinations that you choose. The Telegraf agent has integrated directly with the Azure Monitor custom metrics REST API. It supports an Azure Monitor output plug-in. Using this plug-in, the agent can collect workload-specific metrics on your Linux VM and submit them as custom metrics to Azure Monitor. |
| 22 | +[Telegraf](https://docs.influxdata.com/telegraf/) is a plug-in-driven agent that enables the collection of metrics from over 150 different sources. Depending on what workloads run on your VM, you can configure the agent to use specialized input plug-ins to collect metrics. Examples are MySQL, NGINX, and Apache. By using output plug-ins, the agent can then write to destinations that you choose. The Telegraf agent integrates directly with the Azure Monitor custom metrics REST API. It supports an Azure Monitor output plug-in. Using this plug-in, the agent can collect workload-specific metrics on your Linux VM and submit them as custom metrics to Azure Monitor. |
25 | 23 |
|
26 | 24 | :::image type="content" source="./media/collect-custom-metrics-linux-telegraf/telegraf-agent-overview.png" alt-text="A diagram showing the Telegraph agent overview." lightbox="./media/collect-custom-metrics-linux-telegraf/telegraf-agent-overview.png":::
|
27 | 25 |
|
28 | 26 | ## Connect to the VM
|
29 | 27 |
|
30 | 28 | Create an SSH connection to the VM where you want to install Telegraf. Select the **Connect** button on the overview page for your virtual machine.
|
31 | 29 |
|
32 |
| -:::image source="./media/collect-custom-metrics-linux-telegraf/connect-to-virtual-machine.png" alt-text="A screenshot of the a Virtual machine overview page with the connect button highlighted." lightbox="./media/collect-custom-metrics-linux-telegraf/connect-to-virtual-machine.png"::: |
| 30 | +:::image source="./media/collect-custom-metrics-linux-telegraf/connect-to-virtual-machine.png" alt-text="A screenshot of the Virtual machine overview page with the connect button highlighted." lightbox="./media/collect-custom-metrics-linux-telegraf/connect-to-virtual-machine.png"::: |
33 | 31 |
|
34 | 32 | In the **Connect to virtual machine** page, keep the default options to connect by DNS name over port 22. In **Login using VM local account**, a connection command is shown. Select the button to copy the command. The following example shows what the SSH connection command looks like:
|
35 | 33 |
|
@@ -59,7 +57,7 @@ Install the package:
|
59 | 57 | sudo apt-get update
|
60 | 58 | sudo apt-get install telegraf
|
61 | 59 | ```
|
62 |
| -# [RHEL, CentOS, Oracle Linux](#tab/redhat) |
| 60 | +# [RHEL, Oracle Linux](#tab/redhat) |
63 | 61 |
|
64 | 62 | Add the repository:
|
65 | 63 |
|
|
0 commit comments