Skip to content

Commit bc3a40d

Browse files
authored
Merge pull request #110011 from MGoedtel/task1703306
new ARO v4.3 howto article
2 parents 3004471 + 7eb0e80 commit bc3a40d

10 files changed

+455
-82
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17351,6 +17351,11 @@
1735117351
"redirect_url": "/azure/monitoring/monitoring-container-insights-overview",
1735217352
"redirect_document_id": false
1735317353
},
17354+
{
17355+
"source_path": "articles/azure-monitor/insights/container-insights-optout-openshift.md",
17356+
"redirect_url": "/azure/azure-monitor/insights/container-insights-optout-openshift-v3",
17357+
"redirect_document_id": false
17358+
},
1735417359
{
1735517360
"source_path": "articles/mobile-engagement/mobile-engagement-send-personalized-notifications.md",
1735617361
"redirect_url": "/azure/azure-resource-manager/management/azure-subscription-service-limits#mobile-engagement-limits",

articles/azure-monitor/insights/container-insights-azure-redhat-setup.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: Configure Azure Red Hat OpenShift clusters with Azure Monitor for containers | Microsoft Docs
3-
description: This article describes how to configure monitoring of a Kubernetes cluster with Azure Monitor hosted on Azure Red Hat OpenShift.
2+
title: Configure Azure Red Hat OpenShift v3.x with Azure Monitor for containers | Microsoft Docs
3+
description: This article describes how to configure monitoring of a Kubernetes cluster with Azure Monitor hosted on Azure Red Hat OpenShift version 3 and higher.
44
ms.topic: conceptual
5-
ms.date: 02/12/2020
5+
ms.date: 04/02/2020
66
---
77

8-
# Configure Azure Red Hat OpenShift clusters with Azure Monitor for containers
8+
# Configure Azure Red Hat OpenShift v3 with Azure Monitor for containers
99

10-
Azure Monitor for containers provides rich monitoring experience for the Azure Kubernetes Service (AKS) and AKS Engine clusters. This article describes how to enable monitoring of Kubernetes clusters hosted on [Azure Red Hat OpenShift](../../openshift/intro-openshift.md) to achieve a similar monitoring experience.
10+
Azure Monitor for containers provides rich monitoring experience for the Azure Kubernetes Service (AKS) and AKS Engine clusters. This article describes how to enable monitoring of Kubernetes clusters hosted on [Azure Red Hat OpenShift](../../openshift/intro-openshift.md) version 3 and latest supported version of version 3, to achieve a similar monitoring experience.
1111

1212
>[!NOTE]
1313
>Support for Azure Red Hat OpenShift is a feature in public preview at this time.
@@ -200,4 +200,8 @@ The Log Analytics workspace has to be created before you enable monitoring using
200200
201201
- With monitoring enabled to collect health and resource utilization of your RedHat OpenShift cluster and workloads running on them, learn [how to use](container-insights-analyze.md) Azure Monitor for containers.
202202
203+
- By default, the containerized agent collects the stdout/ stderr container logs of all the containers running in all the namespaces except kube-system. To configure container log collection specific to particular namespace or namespaces, review [Container Insights agent configuration](container-insights-agent-config.md) to configure desired data collection settings to your ConfigMap configurations file.
204+
205+
- To scrape and analyze Prometheus metrics from your cluster, review [Configure Prometheus metrics scraping](container-insights-prometheus-integration.md)
206+
203207
- To learn how to stop monitoring your cluster with Azure Monitor for containers, see [How to Stop Monitoring Your Azure Red Hat OpenShift cluster](container-insights-optout-openshift.md).
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
---
2+
title: Configure Azure Red Hat OpenShift v4.x with Azure Monitor for containers | Microsoft Docs
3+
description: This article describes how to configure monitoring of a Kubernetes cluster with Azure Monitor hosted on Azure Red Hat OpenShift version 4 and higher.
4+
ms.topic: conceptual
5+
ms.date: 04/22/2020
6+
---
7+
8+
# Configure Azure Red Hat OpenShift v4.x with Azure Monitor for containers
9+
10+
Azure Monitor for containers provides rich monitoring experience for the Azure Kubernetes Service (AKS) and AKS Engine clusters. This article describes how to enable monitoring of Kubernetes clusters hosted on [Azure Red Hat OpenShift](../../openshift/intro-openshift.md) version 4.x to achieve a similar monitoring experience.
11+
12+
>[!NOTE]
13+
>Support for Azure Red Hat OpenShift is a feature in public preview at this time.
14+
>
15+
16+
Azure Monitor for containers can be enabled for one or more existing deployments of Azure Red Hat OpenShift v4.x using the following supported methods:
17+
18+
- For an existing cluster using the provided bash script and running in the [Azure CLI](https://docs.microsoft.com/cli/azure/openshift?view=azure-cli-latest#az-openshift-create).
19+
20+
## Supported and unsupported features
21+
22+
Azure Monitor for containers supports monitoring Azure Red Hat OpenShift v4.x as described in the [Overview](container-insights-overview.md) article, except for the following features:
23+
24+
- Live Data (preview)
25+
- [Collect metrics](container-insights-update-metrics.md) from cluster nodes and pods and storing them in the Azure Monitor metrics database
26+
27+
## Prerequisites
28+
29+
- Azure CLI version 2.0.72 or greater
30+
31+
- [Helm 3](https://helm.sh/docs/intro/install/) CLI tool
32+
33+
- [Bash version 4](https://www.gnu.org/software/bash/)
34+
35+
- [Kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) command-line tool
36+
37+
- To enable and access the features in Azure Monitor for containers, at a minimum you need to be a member of the Azure *Contributor* role in the Azure subscription, and a member of the [*Log Analytics Contributor*](../platform/manage-access.md#manage-access-using-azure-permissions) role of the Log Analytics workspace configured with Azure Monitor for containers.
38+
39+
- To view the monitoring data, you are a member of the [*Log Analytics reader*](../platform/manage-access.md#manage-access-using-azure-permissions) role permission with the Log Analytics workspace configured with Azure Monitor for containers.
40+
41+
## Enable for an existing cluster
42+
43+
Perform the following steps to enable monitoring of an Azure Red Hat OpenShift version 4 and higher cluster deployed in Azure using the provided bash script.
44+
45+
1. Sign into Azure
46+
47+
```azurecli
48+
az login
49+
```
50+
51+
2. Download and save the script to a local folder that configures your cluster with the monitoring add-on using the following commands:
52+
53+
`curl -LO https://raw.githubusercontent.com/microsoft/OMS-docker/ci_feature/docs/aroV4/onboarding_azuremonitor_for_containers.sh.`
54+
55+
3. To identify the **kube-context** of your cluster, after successful `oc login` on to your cluster, run the command `kubectl config current-context` and copy the value.
56+
57+
### Integrate with an existing workspace
58+
59+
The following step enables monitoring of your cluster using the bash script you downloaded earlier. To integrate with an existing Log Analytics workspace, perform the following steps to first identify the full resource ID of your Log Analytics workspace required for the `workspaceResourceId` parameter, and then run the command to enable the monitoring add-on against the specified workspace. If you don't have a workspace to specify, you can skip to step 5 and let the script create a new workspace for you.
60+
61+
1. List all the subscriptions that you have access to using the following command:
62+
63+
```azurecli
64+
az account list --all -o table
65+
```
66+
67+
The output will resemble the following:
68+
69+
```azurecli
70+
Name CloudName SubscriptionId State IsDefault
71+
------------------------------------ ----------- ------------------------------------ ------- -----------
72+
Microsoft Azure AzureCloud 68627f8c-91fO-4905-z48q-b032a81f8vy0 Enabled True
73+
```
74+
75+
Copy the value for **SubscriptionId**.
76+
77+
2. Switch to the subscription hosting the Log Analytics workspace using the following command:
78+
79+
```azurecli
80+
az account set -s <subscriptionId of the workspace>
81+
```
82+
83+
3. The following example displays the list of workspaces in your subscriptions in the default JSON format.
84+
85+
```
86+
az resource list --resource-type Microsoft.OperationalInsights/workspaces -o json
87+
```
88+
89+
In the output, find the workspace name, and then copy the full resource ID of that Log Analytics workspace under the field **ID**.
90+
91+
4. Run the following command to enable monitoring, replacing the value for the `workspaceResourceId` parameter:
92+
93+
`bash onboarding_azuremonitor_for_containers.sh <kube-context> <azureAroV4ResourceId> <LogAnayticsWorkspaceResourceId>`
94+
95+
Example:
96+
97+
`bash onboarding_azuremonitor_for_containers.sh MyK8sTestCluster /subscriptions/57ac26cf-a9f0-4908-b300-9a4e9a0fb205/resourceGroups/test-aro-v4-rg/providers/Microsoft.RedHatOpenShift/OpenShiftClusters/test-aro-v4 /subscriptions/57ac26cf-a9f0-4908-b300-9a4e9a0fb205/resourcegroups/test-la-workspace-rg/providers/microsoft.operationalinsights/workspaces/test-la-workspace`
98+
99+
After you've enabled monitoring, it might take about 15 minutes before you can view health metrics for the cluster.
100+
101+
### Integrate with default workspace
102+
103+
The following step enables monitoring of your Azure Red Hat OpenShift v4.x cluster using the bash script you downloaded. In this example, you are not required to per-create or specify an existing workspace. This command simplifies the process for you by creating a default workspace in the default resource group of the cluster subscription if one does not already exist in the region. The default workspace created resembles the format of *DefaultWorkspace-\<GUID>-\<Region>*.
104+
105+
`bash onboarding_azuremonitor_for_containers.sh <kube-context> <azureAroV4ResourceId>`
106+
107+
For example:
108+
109+
`bash onboarding_azuremonitor_for_containers.sh MyK8sTestCluster /subscriptions/57ac26cf-a9f0-4908-b300-9a4e9a0fb205/resourceGroups/test-aro-v4-rg/providers/Microsoft.RedHatOpenShift/OpenShiftClusters/test-aro-v4`
110+
111+
After you've enabled monitoring, it might take about 15 minutes before you can view health metrics for the cluster.
112+
113+
### From the Azure portal
114+
115+
The multi-cluster view in Azure Monitor for containers highlights your Azure Red Hat OpenShift clusters that don't have monitoring enabled under the **Non-monitored clusters** tab. The **Enable** option next to your cluster does not initiate onboarding of monitoring from the portal. You are redirected to this article to manually enable monitoring following the steps earlier in this article.
116+
117+
1. Sign in to the [Azure portal](https://portal.azure.com).
118+
119+
2. On the Azure portal menu or from the Home page, select **Azure Monitor**. Under the **Insights** section, select **Containers**.
120+
121+
3. On the **Monitor - containers** page, select **Non-monitored clusters**.
122+
123+
4. From the list of non-monitored clusters, find the cluster in the list and click **Enable**. You can identify the results in the list by looking for the value **ARO** under the column **CLUSTER TYPE**. After you click **Enable**, you are redirected to this article.
124+
125+
## Next steps
126+
127+
- With monitoring enabled to collect health and resource utilization of your RedHat OpenShift version 4.x cluster and workloads running on them, learn [how to use](container-insights-analyze.md) Azure Monitor for containers.
128+
129+
- By default, the containerized agent collects the stdout/ stderr container logs of all the containers running in all the namespaces except kube-system. To configure container log collection specific to particular namespace or namespaces, review [Container Insights agent configuration](container-insights-agent-config.md) to configure desired data collection settings to your ConfigMap configurations file.
130+
131+
- To scrape and analyze Prometheus metrics from your cluster, review [Configure Prometheus metrics scraping](container-insights-prometheus-integration.md)
132+
133+
- To learn how to stop monitoring your cluster with Azure Monitor for containers, see [How to Stop Monitoring Your Azure Red Hat OpenShift cluster](container-insights-optout-openshift.md).

articles/azure-monitor/insights/container-insights-hybrid-setup.md

Lines changed: 47 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,33 @@
22
title: Configure Hybrid Kubernetes clusters with Azure Monitor for containers | Microsoft Docs
33
description: This article describes how you can configure Azure Monitor for containers to monitor Kubernetes clusters hosted on Azure Stack or other environment.
44
ms.topic: conceptual
5-
ms.date: 01/24/2020
5+
ms.date: 04/22/2020
66
---
77

88
# Configure hybrid Kubernetes clusters with Azure Monitor for containers
99

1010
Azure Monitor for containers provides rich monitoring experience for the Azure Kubernetes Service (AKS) and [AKS Engine on Azure](https://github.com/Azure/aks-engine), which is a self-managed Kubernetes cluster hosted on Azure. This article describes how to enable monitoring of Kubernetes clusters hosted outside of Azure and achieve a similar monitoring experience.
1111

12+
## Supported configurations
13+
14+
The following is officially supported with Azure Monitor for containers.
15+
16+
* Environments:
17+
18+
* Kubernetes on-premises
19+
20+
* AKS Engine on Azure and Azure Stack. For more information, see [AKS Engine on Azure Stack](https://docs.microsoft.com/azure-stack/user/azure-stack-kubernetes-aks-engine-overview?view=azs-1908)
21+
22+
* [OpenShift](https://docs.openshift.com/container-platform/4.3/welcome/index.html) version 4 and higher, on-premises or other cloud environments.
23+
24+
* Versions of Kubernetes and support policy are the same as versions of [AKS supported](../../aks/supported-kubernetes-versions.md).
25+
26+
* Container Runtime: Docker, Moby, and CRI compatible runtimes such CRI-O and ContainerD.
27+
28+
* Linux OS release for master and worked nodes: Ubuntu (18.04 LTS and 16.04 LTS), and Red Hat Enterprise Linux CoreOS 43.81.
29+
30+
* Access control supported: Kubernetes RBAC and non-RBAC
31+
1232
## Prerequisites
1333

1434
Before you start, make sure that you have the following:
@@ -28,10 +48,9 @@ Before you start, make sure that you have the following:
2848
* The following proxy and firewall configuration information is required for the containerized version of the Log Analytics agent for Linux to communicate with Azure Monitor:
2949

3050
|Agent Resource|Ports |
31-
|------|---------|
32-
|*.ods.opinsights.azure.com |Port 443 |
33-
|*.oms.opinsights.azure.com |Port 443 |
34-
|*.blob.core.windows.net |Port 443 |
51+
|------|---------|
52+
|*.ods.opinsights.azure.com |Port 443 |
53+
|*.oms.opinsights.azure.com |Port 443 |
3554
|*.dc.services.visualstudio.com |Port 443 |
3655

3756
* The containerized agent requires Kubelet's `cAdvisor secure port: 10250` or `unsecure port :10255` to be opened on all nodes in the cluster to collect performance metrics. We recommend you configure `secure port: 10250` on the Kubelet's cAdvisor if it's not configured already.
@@ -41,16 +60,6 @@ Before you start, make sure that you have the following:
4160
>[!IMPORTANT]
4261
>The minimum agent version supported for monitoring hybrid Kubernetes clusters is ciprod10182019 or later.
4362
44-
## Supported configurations
45-
46-
The following is officially supported with Azure Monitor for containers.
47-
48-
- Environments: Kubernetes on-premises, AKS Engine on Azure and Azure Stack. For more information, see [AKS Engine on Azure Stack](https://docs.microsoft.com/azure-stack/user/azure-stack-kubernetes-aks-engine-overview?view=azs-1908).
49-
- Versions of Kubernetes and support policy are the same as versions of [AKS supported](../../aks/supported-kubernetes-versions.md).
50-
- Container Runtime: Docker and Moby
51-
- Linux OS release for master and worked nodes: Ubuntu (18.04 LTS and 16.04 LTS)
52-
- Access control supported: Kubernetes RBAC and non-RBAC
53-
5463
## Enable monitoring
5564

5665
Enabling Azure Monitor for containers for the hybrid Kubernetes cluster consists of performing the following steps in order.
@@ -237,7 +246,7 @@ To first identify the full resource ID of your Log Analytics workspace required
237246
## Install the chart
238247
239248
>[!NOTE]
240-
>The following commands are applicable only for Helm version 2. Use of the --name parameter is not applicable with Helm version 3.
249+
>The following commands are applicable only for Helm version 2. Use of the `--name` parameter is not applicable with Helm version 3.
241250
242251
To enable the HELM chart, do the following:
243252
@@ -268,6 +277,28 @@ To enable the HELM chart, do the following:
268277
--set omsagent.domain=opinsights.azure.us,omsagent.secret.wsid=<your_workspace_id>,omsagent.secret.key=<your_workspace_key>,omsagent.env.clusterName=<your_cluster_name> incubator/azuremonitor-containers
269278
```
270279
280+
### Enable the Helm chart using the API Model
281+
282+
You can specify an addon in the AKS Engine cluster specification json file, also referred to as the API Model. In this addon, provide the base64 encoded version of `WorkspaceGUID` and `WorkspaceKey` of the Log Analytics Workspace where the collected monitoring data is stored.
283+
284+
Supported API definitions for the Azure Stack Hub cluster can be found in this example - [kubernetes-container-monitoring_existing_workspace_id_and_key.json](https://github.com/Azure/aks-engine/blob/master/examples/addons/container-monitoring/kubernetes-container-monitoring_existing_workspace_id_and_key.json). Specifically, find the **addons** property in **kubernetesConfig**:
285+
286+
```json
287+
"orchestratorType": "Kubernetes",
288+
"kubernetesConfig": {
289+
"addons": [
290+
{
291+
"name": "container-monitoring",
292+
"enabled": true,
293+
"config": {
294+
"workspaceGuid": "<Azure Log Analytics Workspace Guid in Base-64 encoded>",
295+
"workspaceKey": "<Azure Log Analytics Workspace Key in Base-64 encoded>"
296+
}
297+
}
298+
]
299+
}
300+
```
301+
271302
## Configure agent data collection
272303

273304
Staring with chart version 1.0.0, the agent data collection settings are controlled from the ConfigMap. Refer to documentation about agent data collection settings [here](container-insights-agent-config.md).

articles/azure-monitor/insights/container-insights-onboard.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: How to enable Azure Monitor for containers | Microsoft Docs
33
description: This article describes how you enable and configure Azure Monitor for containers so you can understand how your container is performing and what performance-related issues have been identified.
44
ms.topic: conceptual
5-
ms.date: 11/18/2019
5+
ms.date: 04/21/2020
66

77
---
88

@@ -16,7 +16,9 @@ This article provides an overview of the options available to setup Azure Monito
1616

1717
- Self-managed Kubernetes clusters hosted on [Azure Stack](https://docs.microsoft.com/azure-stack/user/azure-stack-kubernetes-aks-engine-overview?view=azs-1910) or on-premises using AKS Engine.
1818

19-
- [Azure Red Hat OpenShift](../../openshift/intro-openshift.md)
19+
- [Azure Red Hat OpenShift](../../openshift/intro-openshift.md) version 3.x and 4.x
20+
21+
- [Red Hat OpenShift](https://docs.openshift.com/container-platform/4.3/welcome/index.html) version 4.x
2022

2123
Azure Monitor for containers can be enabled for new, or one or more existing deployments of Kubernetes using the following supported methods:
2224

@@ -58,8 +60,7 @@ The information in the following table lists the proxy and firewall configuratio
5860
|Agent Resource|Ports |
5961
|--------------|------|
6062
| *.ods.opinsights.azure.com | 443 |
61-
| *.oms.opinsights.azure.com | 443 |
62-
| *.blob.core.windows.net | 443 |
63+
| *.oms.opinsights.azure.com | 443 |
6364
| dc.services.visualstudio.com | 443 |
6465
| *.microsoftonline.com | 443 |
6566
| *.monitoring.azure.com | 443 |
@@ -71,7 +72,6 @@ The information in the following table lists the proxy and firewall configuratio
7172
|--------------|------|-------------|
7273
| *.ods.opinsights.azure.cn | 443 | Data ingestion |
7374
| *.oms.opinsights.azure.cn | 443 | OMS onboarding |
74-
| *.blob.core.windows.net | 443 | Used for monitoring outbound connectivity. |
7575
| microsoft.com | 80 | Used for network connectivity. This is only required if the agent image version is ciprod09262019 or earlier. |
7676
| dc.services.visualstudio.com | 443 | For for agent telemetry using Azure Public Cloud Application Insights. |
7777

@@ -81,7 +81,6 @@ The information in the following table lists the proxy and firewall configuratio
8181
|--------------|------|-------------|
8282
| *.ods.opinsights.azure.us | 443 | Data ingestion |
8383
| *.oms.opinsights.azure.us | 443 | OMS onboarding |
84-
| *.blob.core.windows.net | 443 | Used for monitoring outbound connectivity. |
8584
| microsoft.com | 80 | Used for network connectivity. This is only required if the agent image version is ciprod09262019 or earlier. |
8685
| dc.services.visualstudio.com | 443 | For agent telemetry using Azure Public Cloud Application Insights. |
8786

0 commit comments

Comments
 (0)