OpenObserve is an open-source observability platform designed to provide comprehensive monitoring, logging, and tracing capabilities for modern applications.
This tutorial explains how to install OpenObserve inside a Docker container on Linux. Commands have been tested on Ubuntu.
Prepare environment
Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.
Install OpenObserve
- Host network
Run the following command to create a container for OpenObserve that uses host network:
docker run -d --name=openobserve --restart=always --network=host \
-v /opt/openobserve/data:/data \
-e ZO_ROOT_USER_EMAIL=root@example.com \
-e ZO_ROOT_USER_PASSWORD=pwd123 \
public.ecr.aws/zinclabs/openobserve
- User-defined bridge network
User-defined bridge network can be used for listening on different port. By default, OpenObserve service is listening on port 5080. It can be changed with -p
option.
docker network create app-net
docker run -d --name=openobserve --restart=always --network=app-net \
-p 8080:5080 \
-v /opt/openobserve/data:/data \
-e ZO_ROOT_USER_EMAIL=root@example.com \
-e ZO_ROOT_USER_PASSWORD=pwd123 \
public.ecr.aws/zinclabs/openobserve
Note: don't forget to change root email and password.
Testing OpenObserve
Open a web browser and go to http://<IP_ADDRESS>:5080
, where <IP_ADDRESS>
is the IP address of the system. Log in to the web UI with the email and password.
Uninstall OpenObserve
To completely remove OpenObserve, remove its container:
docker rm --force openobserve
Remove OpenObserve image:
docker rmi public.ecr.aws/zinclabs/openobserve
You can also remove OpenObserve data:
sudo rm -rf /opt/openobserve
If a user-defined bridge network was created, you can delete it as follows:
docker network rm app-net
Leave a Comment
Cancel reply