Connect your local development cluster to AutoOps
If you have an Elasticsearch cluster set up for local development or testing, you can connect it to AutoOps using Docker.
Ensure your system meets the following requirements before proceeding:
- You have set upElasticsearch for local development.
- Your local development cluster is on asupported Elasticsearch version (7.17.x and above).
- You have installedDocker Desktop.
- You have an Elastic Cloud account with theOrganization owner role.
Complete the following steps to connect your local development cluster to AutoOps.
- Run the following command in your terminal to open the
/etc/hostsfile in a text editor with administrator privileges:
vim /etc/hostsOn a new line in the
/etc/hostsfile, add an entry to map the Elasticsearch cluster URL to the IP address representing the local development cluster.The entry should be formatted as
127.0.0.1 {{hostname}}.Save the changes.
In your terminal, run the following command to reload the hostname service:
- For Linux:
/bin/systemctl restart systemd-hostnamed- For macOS:
sudo dscacheutil -flushcacheFollow the instructions toConnect to AutoOps with the following differences:
In theSelect installation method step, selectDocker.
In theConfigure agent step, when prompted to enter yourElasticsearch endpoint URL, enter the name of your local development cluster or enter the following:
http://localhost:9200In theInstall agent step, paste the command into the text editor and replace
docker run -d \with:docker run -d --network host \This replacement is also required if your cluster is running on macOS.
After completing all the steps, you canAccess AutoOps.