From b5921c9978c91bd475075c8bf6e1dbe39c7485ad Mon Sep 17 00:00:00 2001 From: wajihaparvez Date: Fri, 8 Aug 2025 17:59:49 -0400 Subject: [PATCH 1/6] Add page about connecting localhost to AutoOps --- .../autoops/cc-autoops-as-cloud-connected.md | 3 +- .../cc-connect-local-dev-to-autoops.md | 57 +++++++++++++++++++ .../cc-connect-self-managed-to-autoops.md | 36 ++++++------ deploy-manage/toc.yml | 1 + 4 files changed, 80 insertions(+), 17 deletions(-) create mode 100644 deploy-manage/monitor/autoops/cc-connect-local-dev-to-autoops.md diff --git a/deploy-manage/monitor/autoops/cc-autoops-as-cloud-connected.md b/deploy-manage/monitor/autoops/cc-autoops-as-cloud-connected.md index 8e3a077bd1..4b12c585af 100644 --- a/deploy-manage/monitor/autoops/cc-autoops-as-cloud-connected.md +++ b/deploy-manage/monitor/autoops/cc-autoops-as-cloud-connected.md @@ -17,7 +17,8 @@ Cloud Connect enables users of ECE, ECK, and self-managed clusters to use {{eclo In this section, you'll find the following information: -* How to [connect your cluster to AutoOps](/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops.md) +* How to [connect your self-managed cluster to AutoOps](/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops.md) +* How to [connect your local development cluster to AutoOps](/deploy-manage/monitor/autoops/cc-connect-local-dev-to-autoops.md) * How to [manage users of your connected clusters](/deploy-manage/monitor/autoops/cc-manage-users.md) * [FAQs](/deploy-manage/monitor/autoops/cc-cloud-connect-autoops-faq.md) about AutoOps for your clusters * A [troubleshooting guide](/deploy-manage/monitor/autoops/cc-cloud-connect-autoops-troubleshooting.md) to help you with any issues you may encounter \ No newline at end of file diff --git a/deploy-manage/monitor/autoops/cc-connect-local-dev-to-autoops.md b/deploy-manage/monitor/autoops/cc-connect-local-dev-to-autoops.md new file mode 100644 index 0000000000..e4e90b5716 --- /dev/null +++ b/deploy-manage/monitor/autoops/cc-connect-local-dev-to-autoops.md @@ -0,0 +1,57 @@ +--- +applies_to: + deployment: + self: +navigation_title: Connect your local development cluster +--- + +# Connect your local development cluster to AutoOps + +If you have an {{es}} cluster set up for local development or testing, you can connect it to AutoOps using Docker. + +## Prerequisites + +Ensure your system meets the following requirements before proceeding: + +* You have set up [{{es}} for local development](/deploy-manage/deploy/self-managed/local-development-installation-quickstart.md). +* You have installed [Docker Desktop](https://www.docker.com/products/docker-desktop). +* You have an {{ecloud}} account with the [Organization owner role](/deploy-manage/monitor/autoops/cc-manage-users.md#assign-roles). + +## Connect your local development cluster to AutoOps + +Complete the following steps to connect your local development cluster to AutoOps. + +1. Run the following command in your terminal to open the `/etc/hosts` file in a text editor with administrator privileges: + + ```sh + vim /etc/hosts + ``` +2. On a new line in the `/etc/hosts` file, add an entry to map the {{es}} cluster URL to the IP address representing the local development cluster. + + The entry should be formatted as `127.0.0.1 {{hostname}}`. +3. Save the changes. +4. In your terminal, run the following command to reload the hostname service: + * For Linux: + ```sh + /bin/systemctl restart systemd-hostnamed + ``` + * For macOS: + ```sh + sudo dscacheutil -flushcache + ``` +5. Follow the instructions to [Connect to AutoOps](/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops.md#connect-to-autoops) with the following differences: + * In the [Select installation method](/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops.md#select-installation-method) step, select **Docker**. + * In the [Configure agent](/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops.md#configure-agent) step, when prompted to enter your **{{es}} endpoint URL**, enter the name of your local development cluster or enter the folllowing: + ```sh + http://localhost:9200 + ``` + * In the [Install agent](/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops.md#install-agent) step, paste the command into the text editor and replace `docker run -d \` with: + ```sh + docker run -d --network host \ + ``` + +After completing all the steps, you can [Access AutoOps](/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops.md#access-autoops). + + + + diff --git a/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops.md b/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops.md index 78691bff3b..71ee6b518b 100644 --- a/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops.md +++ b/deploy-manage/monitor/autoops/cc-connect-self-managed-to-autoops.md @@ -4,15 +4,19 @@ applies_to: self: ece: eck: -navigation_title: Connect your cluster +navigation_title: Connect your self-managed cluster --- -# Connect your cluster to AutoOps +# Connect your self-managed cluster to AutoOps To use AutoOps with your ECE, ECK, or self-managed cluster, you first need to create an {{ecloud}} account or log in to your existing account. An installation wizard will then guide you through the steps of installing {{agent}} to send metrics from your cluster to AutoOps in {{ecloud}}. Complete the steps in the following subsections to connect your cluster to AutoOps. The connection process takes about 10 minutes. +:::{note} +If you have an {{es}} cluster set up for local development or testing, you can connect it to AutoOps using Docker. Refer to [](/deploy-manage/monitor/autoops/cc-connect-local-dev-to-autoops.md). +::: + ## Prerequisites Ensure your system meets the following requirements before proceeding: @@ -86,8 +90,8 @@ This is the first step of the installation wizard. Your cluster ships metrics to Select one of the following methods to install {{agent}}: -* Kubernetes -* Docker +* **Kubernetes** +* **Docker**