Skip to content

Commit 6fd2a89

Browse files
committed
updated section
1 parent 57ddd7c commit 6fd2a89

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ After you have successfully deployed the chart, you can review the data for your
280280
281281
## Troubleshooting
282282
283-
If you encounter an error while attempting to enable monitoring for your hybrid Kubernetes cluster, the script [TroubleshootError_nonAzureK8s.ps1](https://raw.githubusercontent.com/microsoft/OMS-docker/ci_feature/Troubleshoot/TroubleshootError_nonAzureK8s.ps1) is provided to help detect and fixe the issues encountered. The issues it is designed to detect and attempt correction of are the following:
283+
If you encounter an error while attempting to enable monitoring for your hybrid Kubernetes cluster, download the PowerShell script [TroubleshootError_nonAzureK8s.ps1](https://raw.githubusercontent.com/microsoft/OMS-docker/ci_feature/Troubleshoot/TroubleshootError_nonAzureK8s.ps1) is provided to help detect and fix the issues encountered. The issues it is designed to detect and attempt correction of are the following:
284284
285285
* The specified Log Analytics workspace is valid
286286
* The Log Analytics workspace is configured with the Azure Monitor for Containers solution. If not, configure the workspace.
@@ -291,6 +291,12 @@ If you encounter an error while attempting to enable monitoring for your hybrid
291291
* Validate all the Linux worker nodes have `kubernetes.io/role=agent` label to schedule rs pod. If it doesn't exist, add it.
292292
* Validate `cAdvisor port: 10255` is opened on all nodes in the cluster.
293293
294+
To execute with Azure PowerShell, use the following commands in the folder that contains the script:
295+
296+
```powershell
297+
.\TroubleshootError_nonAzureK8s.ps1 - azureLogAnalyticsWorkspaceResourceId </subscriptions/<subscriptionId>/resourceGroups/<resourcegroupName>/providers/Microsoft.OperationalInsights/workspaces/<workspaceName> -kubeConfig
298+
```
299+
294300
## Next steps
295301

296302
With monitoring enabled to collect health and resource utilization of your hybrid Kubernetes cluster and workloads running on them, learn [how to use](container-insights-analyze.md) Azure Monitor for containers.

0 commit comments

Comments
 (0)