Skip to content

Commit 2006c27

Browse files
committed
updated documentation with suggested changes
1 parent bcb3e35 commit 2006c27

File tree

2 files changed

+77
-36
lines changed

2 files changed

+77
-36
lines changed

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

Lines changed: 55 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,44 @@ 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-
### Steps to install HA Cluster Exporter on RHEl system:
36+
### Install HA Cluster Exporter on RHEL
3737
1. Install the required packages on the system.
38-
1. yum install pcp pcp-pmda-hacluster
38+
39+
```bash
40+
yum install pcp pcp-pmda-hacluster
41+
```
42+
3943
1. Enable and start the required PCP Collector Services.
40-
1. systemctl enable pmcd
41-
1. systemctl start pmcd
42-
1. Install and enable the HA Cluster PMDA. (replace $PCP_PMDAS_DIR with the path where hacluster is installed, use find command in linux to find it)
43-
1. cd $PCP_PMDAS_DIR/hacluster
44-
1. ./install
45-
1. Enable and start the pmproxy service.
46-
1. sstemctl start pmproxy
47-
1. systemctl enable pmproxy
48-
1. Data will then be collected by PCP on the system and can be exported via pmproxy at the following address:
49-
1. http://<'servername or ip address'>:44322/metrics?names=ha_cluster
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.
5074

5175
## Create provider for Azure Monitor for SAP solutions
5276

@@ -61,7 +85,7 @@ For RHEL-based pacemaker clusters, also install [PMProxy](https://access.redhat.
6185
1. For **Type**, select **High-availability cluster (Pacemaker)**.
6286
1. Configure providers for each node of the cluster by entering the endpoint URL for **HA Cluster Exporter Endpoint**.
6387
64-
1. For SUSE-based clusters, enter `http://<'IP address'> :9664/metrics`.
88+
1. For SUSE-based clusters, enter `http://<IP-address> :9664/metrics`.
6589
6690
![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)
6791
@@ -81,15 +105,26 @@ For RHEL-based pacemaker clusters, also install [PMProxy](https://access.redhat.
81105
82106
1. Select **Create** to finish creating the resource.
83107
84-
## Trouble shooting guide for common exceptions
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+
```
85121
86-
### Unable to reach the prometheus endpoint
87-
The provider settings validation operation has failed with code ‘PrometheusURLConnectionFailure’.
122+
1. Reenable the HA cluster exporter agent.
123+
```bash
124+
systemctl enable pmproxy
125+
```
88126
89-
1. Try to restart the ha cluster exporter agent:
90-
1. sstemctl start pmproxy
91-
1. systemctl enable pmproxy
92-
1. Please verify if the prometheus endpoint provided is reachable from the subnet provided while creating Azure Monitor for Sap Solutions resource.
127+
1. Verify that the Prometheus endpoint is reachable from the subnet that provided while creating the Azure Monitor for SAP solutions resource.
93128
94129
## Next steps
95130

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

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,21 @@ This content applies to both versions of the service, *Azure Monitor for SAP sol
2121

2222
- 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-
### 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`
26+
To install the node exporter on Linux:
3427

35-
## Create Linux provider
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
3639

3740
1. Sign in to the [Azure portal](https://portal.azure.com).
3841
1. Go to the Azure Monitor for SAP solutions or Azure Monitor for SAP solutions (classic) service.
@@ -52,18 +55,21 @@ You can follow the step by step [guide to install node exporter on linux system]
5255
1. Select **Review + create** to review the settings.
5356
1. Select **Create** to finish creating the resource.
5457

55-
## Trouble shooting guide for common exceptions
58+
## Troubleshooting
59+
60+
Use these steps to resolve common errors.
61+
62+
### Unable to reach the Prometheus endpoint
5663

57-
### Unable to reach the prometheus endpoint
58-
The provider settings validation operation has failed with code ‘PrometheusURLConnectionFailure’.
64+
When the provider settings validation operation fails with the code ‘PrometheusURLConnectionFailure’:
5965

6066
1. Open firewall port 9100 on the Linux host.
6167
1. If you're using `firewall-cmd`, run `_firewall-cmd_ _--permanent_ _--add-port=9100/tcp_ ` then `_firewall-cmd_ _--reload_`.
6268
1. If you're using `ufw`, run `_ufw_ _allow_ _9100/tcp_` then `_ufw_ _reload_`.
6369
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-
1. Please verify if the prometheus endpoint provided is reachable from the subnet provided while creating Azure Monitor for Sap Solutions resource.
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.
6773

6874
## Next steps
6975

0 commit comments

Comments
 (0)