How to uninstall the Site24x7 Kubernetes monitoring agent

How to uninstall the Site24x7 Kubernetes monitoring agent

Execute the below commands to uninstall the Site24x7 Kubernetes monitoring agent from your cluster:

  • Deletion command for the DaemonSet agent deployed using a YAML file:

            kubectl delete -f site24x7-agent.yaml


or

            kubectl delete ds,sa site24x7-agent -n <namespace>; \

            kubectl delete clusterrole,clusterrolebinding site24x7; 

or

            kubectl delete ds,sa,clusterrole,clusterrolebinding -A -l app.kubernetes.io/owner=site24x7

Input your namespace instead of <namespace>.

  • Deletion command for kube-state-metrics deployed using a YAML file:

            kubectl delete -f site24x7-kube-state-metrics.yaml

or 

            kubectl delete deploy,sa kube-state-metrics -n kube-system; \

            kubectl delete clusterrole,clusterrolebinding kube-state-metrics;

or 

            kubectl delete deploy,sa,clusterrole,clusterrolebinding -A -l app.kubernetes.io/name=site24x7-kube-state-metrics

 

  • Deletion command for a DaemonSet agent deployed using Helm:


           helm uninstall <release_name>\

           helm repo remove site24x7

Input your release name instead of <release_name>.

 


    • Related Articles

    • How to uninstall the Site24x7 Windows Server Monitoring Agent

      Method 1: To uninstall the Site24x7 Windows Server Monitoring Agent, click the link below: https://staticdownloads.site24x7.com/server/Site24x7WindowsAgentUninstall.zip Unzip and execute the Uninstall.bat file in the Command Prompt as an ...
    • Add Node.js agent in Kubernetes via InitContainers (using prebuilt agent image)

      To integrate the APM Insight Node.js agent into your Kubernetes applications using InitContainers, follow the steps given below: Step 1: Create an empty volume that will be used to copy the agent files during the initContainers process. Example: ...
    • Prerequisites for Node.js agent installation

      For a smooth Node.js agent installation, ensure that you've fulfilled the following prerequisites. The environment should have node version 16.20.2 or above installed. The application user should have full permission to access the agent directory. ...
    • Troubleshooting false positive alerts in monitoring

      Problem False positive alerts are being generated. Possible cause The monitoring system is down in some locations. The Website monitor might be configured for one location, such as Seattle, but may appear down when accessed from another location, ...
    • Bundled .NET and .NET Core agents in a single MSI

      In APM Insight .NET agent version 6.8.0, the .NET and .NET Core agents have been bundled into a single MSI, enabling unified monitoring of both application types. Upgrade requirements for .NET Core agent 6.7 and below If you're using .NET Core agent ...