Create High Availability cluster provider for Azure Monitor for SAP solutions (preview)
Important
Azure Monitor for SAP solutions is currently in PREVIEW. See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
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.
This content applies to both Azure Monitor for SAP solutions and Azure Monitor for SAP solutions (classic) versions.
Prerequisites
- An Azure subscription.
- An existing Azure Monitor for SAP solutions resource. To create an Azure Monitor for SAP solutions resource, see the quickstart for the Azure portal or the quickstart for PowerShell.
Install HA agent
Before adding providers for HA (Pacemaker) clusters, install the appropriate agent for your environment in each cluster node.
For SUSE-based clusters, install ha_cluster_provider in each node. For more information, see the HA cluster exporter installation guide. Supported SUSE versions include SLES for SAP 12 SP3 and above.
For RHEL-based clusters, install performance co-pilot (PCP) and the pcp-pmda-hacluster sub package in each node.For more information, see the PCP HACLUSTER agent installation guide. Supported RHEL versions include 8.2, 8.4 and above.
For RHEL-based pacemaker clusters, also install PMProxy in each node.
Install HA Cluster Exporter on RHEL
Install the required packages on the system.
yum install pcp pcp-pmda-hacluster
Enable and start the required PCP Collector Services.
systemctl enable pmcd
systemctl start pmcd
Install and enable the HA Cluster PMDA. Replace
$PCP_PMDAS_DIR
with the path wherehacluster
is installed. Use thefind
command in Linuxto find the path.cd $PCP_PMDAS_DIR/hacluster
. ./install
Enable and start the
pmproxy
service.sstemctl start pmproxy
systemctl enable pmproxy
Data will then be collected by PCP on the system. You can export the data using
pmproxy
athttp://<SERVER-NAME-OR-IP-ADDRESS>:44322/metrics?names=ha_cluster
. Replace<SERVER-NAME-OR-IP-ADDRESS>
with your server name or IP address.
Prerequisites to enable secure communication
To enable TLS 1.2 or higher, follow the steps mentioned here
Create provider for Azure Monitor for SAP solutions
Sign in to the Azure portal.
Go to the Azure Monitor for SAP solutions service.
Open your Azure Monitor for SAP solutions resource.
In the resource's menu, under Settings, select Providers.
Select Add to add a new provider.
For Type, select High-availability cluster (Pacemaker).
Optional Select Enable secure communciation, choose a certificate type
Configure providers for each node of the cluster by entering the endpoint URL for HA Cluster Exporter Endpoint.
- For SUSE-based clusters, enter
http://<IP-address> :9664/metrics
.
- For RHEL-based clusters, enter
http://<'IP address'>:44322/metrics?names=ha_cluster
.
- For SUSE-based clusters, enter
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.Select Add provider to save.
Continue to add more providers as needed.
Select Review + create to review the settings.
Select Create to finish creating the resource.
Troubleshooting
Use the following troubleshooting steps for common errors.
Unable to reach the Prometheus endpoint
When the provider settings validation operation fails with the code ‘PrometheusURLConnectionFailure’:
Restart the HA cluster exporter agent.
sstemctl start pmproxy
Reenable the HA cluster exporter agent.
systemctl enable pmproxy
Verify that the Prometheus endpoint is reachable from the subnet that provided while creating the Azure Monitor for SAP solutions resource.
Next steps
Feedback
Submit and view feedback for