Skip to content

Commit 79714c3

Browse files
authored
Added steps to install node exporter, added trouble shooting guide for common Prometheus errors
1 parent 61202ef commit 79714c3

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

articles/virtual-machines/workloads/sap/configure-linux-os-azure-monitor-sap-solutions.md

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,24 @@ ms.author: sujaj
1313

1414
[!INCLUDE [Azure Monitor for SAP solutions public preview notice](./includes/preview-azure-monitor.md)]
1515

16-
In this how-to guide, you'll learn to create a Linux OS provider for *Azure Monitor for SAP solutions* resources.
16+
In this how-to guide, you'll learn to create a Linux OS provider for *Azure Monitor for SAP solutions* resources.
1717

1818
This content applies to both versions of the service, *Azure Monitor for SAP solutions* and *Azure Monitor for SAP solutions (classic)*.
1919

2020
## Prerequisites
2121

22-
- An Azure subscription.
22+
- An Azure subscription.
2323
- An existing Azure Monitor for SAP solutions resource. To create an Azure Monitor for SAP solutions resource, see the [quickstart for the Azure portal](azure-monitor-sap-quickstart.md) or the [quickstart for PowerShell](azure-monitor-sap-quickstart-powershell.md).
24-
- Install [node exporter version 1.3.0](https://prometheus.io/download/#node_exporter) in each SAP host that you want to monitor, either BareMetal or Azure virtual machine (Azure VM). For more information, see [the node exporter GitHub repository](https://github.com/prometheus/node_exporter).
24+
- Install [node exporter version 1.3.0](https://prometheus.io/download/#node_exporter) in each SAP host that you want to monitor, either BareMetal or Azure virtual machine (Azure VM). For more information, see [the node exporter GitHub repository](https://github.com/prometheus/node_exporter).
25+
26+
### Steps to install node exporter:
27+
You can follow the step by step [guide to install node exporter on linux system](https://prometheus.io/docs/guides/node-exporter/):
28+
- wget https://github.com/prometheus/node_exporter/releases/download/v*/node_exporter-*.*-amd64.tar.gz
29+
- tar xvfz node_exporter-*.*-amd64.tar.gz
30+
- cd node_exporter-*.*-amd64
31+
- ./node_exporter
32+
- The node exporter now will start collecting data, and can be exported at the following address:
33+
- `http://IP:9100/metrics`
2534

2635
## Create Linux provider
2736

@@ -31,18 +40,30 @@ This content applies to both versions of the service, *Azure Monitor for SAP sol
3140
1. Select **Add provider**.
3241
1. Configure the following settings for the new provider:
3342
1. For **Type**, select **OS (Linux)**.
34-
1. For **Name**, enter a name that will be the identifier for the BareMetal instance.
35-
1. For **Node Exporter Endpoint**, enter `http://IP:9100/metrics`.
43+
1. For **Name**, enter a name that will be the identifier for the BareMetal instance.
44+
1. For **Node Exporter Endpoint**, enter `http://IP:9100/metrics`.
3645
1. For the IP address, use the private IP address of the Linux host. Make sure the host and Azure Monitor for SAP solutions resource are in the same virtual network.
37-
1. Open firewall port 9100 on the Linux host.
38-
1. If you're using `firewall-cmd`, run `_firewall-cmd_ _--permanent_ _--add-port=9100/tcp_ ` then `_firewall-cmd_ _--reload_`.
39-
1. If you're using `ufw`, run `_ufw_ _allow_ _9100/tcp_` then `_ufw_ _reload_`.
40-
1. If the Linux host is an Azure virtual machine (VM), make sure that all applicable network security groups (NSGs) allow inbound traffic at port 9100 from **VirtualNetwork** as the source.
41-
1. Select **Add provider** to save your changes.
46+
1. Open firewall port 9100 on the Linux host.
47+
1. If you're using `firewall-cmd`, run `_firewall-cmd_ _--permanent_ _--add-port=9100/tcp_ ` then `_firewall-cmd_ _--reload_`.
48+
1. If you're using `ufw`, run `_ufw_ _allow_ _9100/tcp_` then `_ufw_ _reload_`.
49+
1. If the Linux host is an Azure virtual machine (VM), make sure that all applicable network security groups (NSGs) allow inbound traffic at port 9100 from **VirtualNetwork** as the source.
50+
1. Select **Add provider** to save your changes.
4251
1. Continue to add more providers as needed.
4352
1. Select **Review + create** to review the settings.
4453
1. Select **Create** to finish creating the resource.
4554

55+
## Trouble shooting guide for common exceptions
56+
57+
### Unable to reach the prometheus endpoint
58+
The provider settings validation operation has failed with code ‘PrometheusURLConnectionFailure’.
59+
60+
1. Open firewall port 9100 on the Linux host.
61+
1. If you're using `firewall-cmd`, run `_firewall-cmd_ _--permanent_ _--add-port=9100/tcp_ ` then `_firewall-cmd_ _--reload_`.
62+
1. If you're using `ufw`, run `_ufw_ _allow_ _9100/tcp_` then `_ufw_ _reload_`.
63+
1. Try to restart the node exporter agent:
64+
1. cd to the folder where you installed the node exporter. (node_exporter-*.*-amd64)
65+
1. ./node_exporter
66+
4667
## Next steps
4768

4869
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)