Connect your local development cluster to AutoOps
Self-Managed
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 up Elasticsearch for local development.
- You have installed Docker Desktop.
- You have an Elastic Cloud account with the Organization 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/hosts
file in a text editor with administrator privileges:
vim /etc/hosts
On a new line in the
/etc/hosts
file, 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 -flushcache
Follow the instructions to Connect to AutoOps with the following differences:
In the Select installation method step, select Docker.
In the Configure agent step, when prompted to enter your Elasticsearch endpoint URL, enter the name of your local development cluster or enter the following:
http://localhost:9200
In the Install 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 can Access AutoOps.