Skip to content

Commit

Permalink
Fix link to script in troubleshooting README (#711)
Browse files Browse the repository at this point in the history
Creating a PR to get this -> https://github.com/Azure/prometheus-collector/pull/710/files merged in as currently its not possible to run workflows from forks in the prometheus-collector repository.
  • Loading branch information
bragi92 authored Jan 9, 2024
1 parent 834a854 commit b310a67
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions internal/scripts/troubleshoot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ You can use the troubleshooting script provided [here](https://raw.githubusercon

Steps:
- Open powershell using the [cloudshell](https://docs.microsoft.com/en-us/azure/cloud-shell/overview) in the azure portal.
> Note: This script supported on any Powershell supported environment: Windows and Non-Windows.

> Note: This script supported on any Powershell supported environment: Windows and Non-Windows.
For Linux, refer [Install-Powershell-On-Linux](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7) and
For Mac OS, refer [install-powershell-core-on-mac](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-7) how to install powershell
- Make sure that you're using powershell (selected by default)
- Run the following command to change home directory - `cd ~`
- Run the following command to download the script - `curl -LO https://raw.githubusercontent.com/Azure/prometheus-collector/kaveesh/troubleshoot/internal/scripts/troubleshoot/TroubleshootError.ps1`
> Note: In some versions of Powershell above CURL command may not work in such cases, you can try `curl https://raw.githubusercontent.com/Azure/prometheus-collector/kaveesh/troubleshoot/internal/scripts/troubleshoot/TroubleshootError.ps1 -O TroubleshootError.ps1`
- Run the following command to download the script - `curl -LO https://raw.githubusercontent.com/Azure/prometheus-collector/main/internal/scripts/troubleshoot/TroubleshootError.ps1`

> Note: In some versions of Powershell above CURL command may not work in such cases, you can try `curl https://raw.githubusercontent.com/Azure/prometheus-collector/main/internal/scripts/troubleshoot/TroubleshootError.ps1`

- Run the following command to execute the script - `./TroubleshootError.ps1 -ClusterResourceId <resourceIdoftheCluster>`
> Note: For AKS, resourceIdoftheCluster should be in this format `/subscriptions/<subId>/resourceGroups/<rgName>/providers/Microsoft.ContainerService/managedClusters/<clusterName>`.
- This script will generate a TroubleshootDump.txt and a ZIP file called debugLogs.zip which collects detailed information about container health onboarding.
- Please [create a support ticket](https://azure.microsoft.com/en-us/support/create-ticket) in Azure and send these two files alongwith it. We will respond back to you.

0 comments on commit b310a67

Please sign in to comment.