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/virtual-machines/workloads/sap/configure-ha-cluster-azure-monitor-sap-solutions.md
+69-10Lines changed: 69 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: MightySuz
5
5
ms.service: virtual-machines-sap
6
6
ms.subservice: baremetal-sap
7
7
ms.topic: how-to
8
-
ms.date: 10/19/2022
8
+
ms.date: 01/05/2023
9
9
ms.author: sujaj
10
10
#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.
11
11
---
@@ -14,13 +14,13 @@ ms.author: sujaj
14
14
15
15
[!INCLUDE [Azure Monitor for SAP solutions public preview notice](./includes/preview-azure-monitor.md)]
16
16
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.
18
18
19
19
This content applies to both Azure Monitor for SAP solutions and Azure Monitor for SAP solutions (classic) versions.
20
20
21
21
## Prerequisites
22
22
23
-
- An Azure subscription.
23
+
- An Azure subscription.
24
24
- 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).
25
25
26
26
## Install HA agent
@@ -33,28 +33,66 @@ For RHEL-based clusters, install **performance co-pilot (PCP)** and the **pcp-pm
33
33
34
34
For RHEL-based pacemaker clusters, also install [PMProxy](https://access.redhat.com/articles/6139852) in each node.
35
35
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`commandin 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.
36
74
37
75
## Create provider for Azure Monitor for SAP solutions
38
76
39
77
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.
41
79
1. Open your Azure Monitor for SAP solutions resource.
42
80
1. In the resource's menu, under **Settings**, select **Providers**.
43
81
1. Select **Add** to add a new provider.
44
82
45
-

83
+

46
84
47
85
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`.
49
89
50
-
1. For SUSE-based clusters, enter `http://<'IP address'> :9664/metrics`.
90
+

51
91
52
-

53
92
54
-
55
93
1. For RHEL-based clusters, enter `http://<'IP address'>:44322/metrics?names=ha_cluster`.
56
94
57
-

95
+

58
96
59
97
60
98
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.
67
105
68
106
1. Select **Create** to finish creating the resource.
69
107
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.
Copy file name to clipboardExpand all lines: articles/virtual-machines/workloads/sap/configure-linux-os-azure-monitor-sap-solutions.md
+40-12Lines changed: 40 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,44 +5,72 @@ author: MightySuz
5
5
ms.service: virtual-machines-sap
6
6
ms.subservice: baremetal-sap
7
7
ms.topic: how-to
8
-
ms.date: 10/19/2022
8
+
ms.date: 01/05/2023
9
9
ms.author: sujaj
10
10
#Customer intent: As a developer, I want to configure a Linux provider so that I can use Azure Monitor for SAP solutions for monitoring.
11
11
---
12
12
# Configure Linux provider for Azure Monitor for SAP solutions (preview)
13
13
14
14
[!INCLUDE [Azure Monitor for SAP solutions public preview notice](./includes/preview-azure-monitor.md)]
15
15
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.
17
17
18
18
This content applies to both versions of the service, *Azure Monitor for SAP solutions* and *Azure Monitor for SAP solutions (classic)*.
19
19
20
20
## Prerequisites
21
21
22
-
- An Azure subscription.
22
+
- An Azure subscription.
23
23
- 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).
25
25
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
27
39
28
40
1. Sign in to the [Azure portal](https://portal.azure.com).
29
41
1. Go to the Azure Monitor for SAP solutions or Azure Monitor for SAP solutions (classic) service.
30
42
1. Select **Create** to make a new Azure Monitor for SAP solutions resource.
31
43
1. Select **Add provider**.
32
44
1. Configure the following settings for the new provider:
33
45
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`.
36
48
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.
42
54
1. Continue to add more providers as needed.
43
55
1. Select **Review + create** to review the settings.
44
56
1. Select **Create** to finish creating the resource.
45
57
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.
0 commit comments