Skip to content

Commit e7b666f

Browse files
authored
Merge pull request #222977 from DhruvSehgal/dhruvsehgal/update-steps-for-installing-ha-cluster-exporter
updated documantation for os, ha providers
2 parents a58965c + 2006c27 commit e7b666f

File tree

2 files changed

+109
-22
lines changed

2 files changed

+109
-22
lines changed

articles/virtual-machines/workloads/sap/configure-ha-cluster-azure-monitor-sap-solutions.md

Lines changed: 69 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: MightySuz
55
ms.service: virtual-machines-sap
66
ms.subservice: baremetal-sap
77
ms.topic: how-to
8-
ms.date: 10/19/2022
8+
ms.date: 01/05/2023
99
ms.author: sujaj
1010
#Customer intent: As a developer, I want to create a High Availability Pacemaker cluster so I can use the resource with Azure Monitor for SAP solutions.
1111
---
@@ -14,13 +14,13 @@ ms.author: sujaj
1414

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

17-
In this how-to guide, you'll learn to create a High Availability (HA) Pacemaker cluster provider for Azure Monitor for SAP solutions. You'll install the HA agent, then create the provider for Azure Monitor for SAP solutions.
17+
In this how-to guide, you'll learn to create a High Availability (HA) Pacemaker cluster provider for Azure Monitor for SAP solutions. You'll install the HA agent, then create the provider for Azure Monitor for SAP solutions.
1818

1919
This content applies to both Azure Monitor for SAP solutions and Azure Monitor for SAP solutions (classic) versions.
2020

2121
## Prerequisites
2222

23-
- An Azure subscription.
23+
- An Azure subscription.
2424
- 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).
2525

2626
## Install HA agent
@@ -33,28 +33,66 @@ For RHEL-based clusters, install **performance co-pilot (PCP)** and the **pcp-pm
3333

3434
For RHEL-based pacemaker clusters, also install [PMProxy](https://access.redhat.com/articles/6139852) in each node.
3535

36+
### Install HA Cluster Exporter on RHEL
37+
1. Install the required packages on the system.
38+
39+
```bash
40+
yum install pcp pcp-pmda-hacluster
41+
```
42+
43+
1. Enable and start the required PCP Collector Services.
44+
45+
```bash
46+
systemctl enable pmcd
47+
```
48+
49+
```bash
50+
systemctl start pmcd
51+
```
52+
53+
1. Install and enable the HA Cluster PMDA. Replace `$PCP_PMDAS_DIR` with the path where `hacluster` is installed. Use the `find` command in Linuxto find the path.
54+
55+
```bash
56+
cd $PCP_PMDAS_DIR/hacluster
57+
```
58+
59+
```bash
60+
. ./install
61+
```
62+
63+
1. Enable and start the `pmproxy` service.
64+
65+
```bash
66+
sstemctl start pmproxy
67+
```
68+
69+
```bash
70+
systemctl enable pmproxy
71+
```
72+
73+
1. Data will then be collected by PCP on the system. You can export the data using `pmproxy` at `http://<SERVER-NAME-OR-IP-ADDRESS>:44322/metrics?names=ha_cluster`. Replace `<SERVER-NAME-OR-IP-ADDRESS>` with your server name or IP address.
3674

3775
## Create provider for Azure Monitor for SAP solutions
3876

3977
1. Sign in to the [Azure portal](https://portal.azure.com).
40-
1. Go to the Azure Monitor for SAP solutions service.
78+
1. Go to the Azure Monitor for SAP solutions service.
4179
1. Open your Azure Monitor for SAP solutions resource.
4280
1. In the resource's menu, under **Settings**, select **Providers**.
4381
1. Select **Add** to add a new provider.
4482
45-
![Diagram of Azure Monitor for SAP solutions resource in the Azure portal, showing button to add a new provider.](./media/azure-monitor-sap/azure-monitor-providers-ha-cluster-start.png)
83+
![Diagram of Azure Monitor for SAP solutions resource in the Azure portal, showing button to add a new provider.](./media/azure-monitor-sap/azure-monitor-providers-ha-cluster-start.png)
4684
4785
1. For **Type**, select **High-availability cluster (Pacemaker)**.
48-
1. Configure providers for each node of the cluster by entering the endpoint URL for **HA Cluster Exporter Endpoint**.
86+
1. Configure providers for each node of the cluster by entering the endpoint URL for **HA Cluster Exporter Endpoint**.
87+
88+
1. For SUSE-based clusters, enter `http://<IP-address> :9664/metrics`.
4989
50-
1. For SUSE-based clusters, enter `http://<'IP address'> :9664/metrics`.
90+
![Diagram of the setup for an Azure Monitor for SAP solutions resource, showing the fields for SUSE-based clusters.](./media/azure-monitor-sap/azure-monitor-providers-ha-cluster-suse.png)
5191
52-
![Diagram of the setup for an Azure Monitor for SAP solutions resource, showing the fields for SUSE-based clusters.](./media/azure-monitor-sap/azure-monitor-providers-ha-cluster-suse.png)
5392
54-
5593
1. For RHEL-based clusters, enter `http://<'IP address'>:44322/metrics?names=ha_cluster`.
5694
57-
![Diagram of the setup for an Azure Monitor for SAP solutions resource, showing the fields for RHEL-based clusters.](./media/azure-monitor-sap/azure-monitor-providers-ha-cluster-rhel.png)
95+
![Diagram of the setup for an Azure Monitor for SAP solutions resource, showing the fields for RHEL-based clusters.](./media/azure-monitor-sap/azure-monitor-providers-ha-cluster-rhel.png)
5896
5997
6098
1. Enter the system identifiers, host names, and cluster names. For the system identifier, enter a unique SAP system identifier for each cluster. For the hostname, the value refers to an actual hostname in the VM. Use `hostname -s` for SUSE- and RHEL-based clusters.
@@ -67,6 +105,27 @@ For RHEL-based pacemaker clusters, also install [PMProxy](https://access.redhat.
67105
68106
1. Select **Create** to finish creating the resource.
69107
108+
## Troubleshooting
109+
110+
Use the following troubleshooting steps for common errors.
111+
112+
### Unable to reach the Prometheus endpoint
113+
114+
When the provider settings validation operation fails with the code ‘PrometheusURLConnectionFailure’:
115+
116+
1. Restart the HA cluster exporter agent.
117+
118+
```bash
119+
sstemctl start pmproxy
120+
```
121+
122+
1. Reenable the HA cluster exporter agent.
123+
```bash
124+
systemctl enable pmproxy
125+
```
126+
127+
1. Verify that the Prometheus endpoint is reachable from the subnet that provided while creating the Azure Monitor for SAP solutions resource.
128+
70129
## Next steps
71130
72131
> [!div class="nextstepaction"]

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

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,72 @@ author: MightySuz
55
ms.service: virtual-machines-sap
66
ms.subservice: baremetal-sap
77
ms.topic: how-to
8-
ms.date: 10/19/2022
8+
ms.date: 01/05/2023
99
ms.author: sujaj
1010
#Customer intent: As a developer, I want to configure a Linux provider so that I can use Azure Monitor for SAP solutions for monitoring.
1111
---
1212
# Configure Linux provider for Azure Monitor for SAP solutions (preview)
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 the [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).
2525

26-
## Create Linux provider
26+
To install the node exporter on Linux:
27+
28+
1. Run `wget https://github.com/prometheus/node_exporter/releases/download/v*/node_exporter-*.*-amd64.tar.gz`. Replace `*` with the version number.
29+
30+
1. Run `tar xvfz node_exporter-*.*-amd64.tar.gz`
31+
32+
1. Run `cd node_exporter-*.*-amd64`
33+
34+
1. Run `./node_exporter`
35+
36+
1. The node exporter now starts collecting data. You can export the data at `http://IP:9100/metrics`.
37+
38+
## Create Linux OS provider
2739

2840
1. Sign in to the [Azure portal](https://portal.azure.com).
2941
1. Go to the Azure Monitor for SAP solutions or Azure Monitor for SAP solutions (classic) service.
3042
1. Select **Create** to make a new Azure Monitor for SAP solutions resource.
3143
1. Select **Add provider**.
3244
1. Configure the following settings for the new provider:
3345
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`.
46+
1. For **Name**, enter a name that will be the identifier for the BareMetal instance.
47+
1. For **Node Exporter Endpoint**, enter `http://IP:9100/metrics`.
3648
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.
49+
1. Open firewall port 9100 on the Linux host.
50+
1. If you're using `firewall-cmd`, run `_firewall-cmd_ _--permanent_ _--add-port=9100/tcp_ ` then `_firewall-cmd_ _--reload_`.
51+
1. If you're using `ufw`, run `_ufw_ _allow_ _9100/tcp_` then `_ufw_ _reload_`.
52+
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.
53+
1. Select **Add provider** to save your changes.
4254
1. Continue to add more providers as needed.
4355
1. Select **Review + create** to review the settings.
4456
1. Select **Create** to finish creating the resource.
4557

58+
## Troubleshooting
59+
60+
Use these steps to resolve common errors.
61+
62+
### Unable to reach the Prometheus endpoint
63+
64+
When the provider settings validation operation fails with the code ‘PrometheusURLConnectionFailure’:
65+
66+
1. Open firewall port 9100 on the Linux host.
67+
1. If you're using `firewall-cmd`, run `_firewall-cmd_ _--permanent_ _--add-port=9100/tcp_ ` then `_firewall-cmd_ _--reload_`.
68+
1. If you're using `ufw`, run `_ufw_ _allow_ _9100/tcp_` then `_ufw_ _reload_`.
69+
1. Try to restart the node exporter agent:
70+
1. Go to the folder where you installed the node exporter (the file name resembles `node_exporter-*.*-amd64`).
71+
1. Run `./node_exporter`.
72+
1. Verify that the Prometheus endpoint is reachable from the subnet that you provided while creating the Azure Monitor for SAP solutions resource.
73+
4674
## Next steps
4775

4876
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)