Docker Online Installation
Prerequisites
The complete installation package is provided in the form of a tar.gz
compressed package.
For convenience, it is divided into two types: Offline Version (offline_install_x.x.x.tar.gz
) and Online Version (online_install_x.x.x.tar.gz
). Please choose according to your deployment environment.
- Resources: CPU 8 Cores / Memory 16 GB / Storage 100 GB / Network 1000 Mbps
- Operating System: Redhat / CentOS 7.6+ / RockyLinux 8.x+ / Debian / Ubuntu and other mainstream operating systems
- Able to access lighthouse-2f2v2u.swr-pro.myhuaweicloud.com to obtain Docker images
- Correctly configured package manager sources (yum or apt)
1. Get and Extract the Installation Package
In the following file, 1.11.0
is the version number, which needs to be replaced with the actual version number you want to install
wget http://static.lighthouse.validations.cn/packages/lighthouse_online_1.11.0.tar.gz
tar zxvf lighthouse_online_1.11.0.tar.gz
2. Execute the lighthouse.sh
Script to Install
# Enter the extracted installation package directory
cd lighthouse
# Installation script
./lighthouse.sh install
# Check service status
./lighthouse.sh ls
# Stop services
./lighthouse.sh stop
# Stop a specific service
./lighthouse.sh stop xxx
# Restart services
./lighthouse.sh restart
# Restart a specific service
./lighthouse.sh restart xxx
# Uninstall services
./lighthouse.sh uninstall
# Check version
./lighthouse.sh -v
3. Wait for Installation
Starting compose services...
[+] Running 14/14
✔ Container file-server Running
✔ Container light-trans Running
✔ Container light-redis Running
✔ Container light-postgresql Running
✔ Container light-zookeeper-1 Running
✔ Container light-queryservice-rpc Running
✔ Container light-clickhouse Healthy
✔ Container light-schema-migrator Exited ✔ Container light-queryservice-api Started
✔ Container light-sg-query-service Healthy
✔ Container light-core-rpc Running
✔ Container light-otel-collector Started
✔ Container light-core-api Running
✔ Container light-obs-ui Started
Compose services started successfully
Check Installation Status
Execute the following command in the lighthouse installation directory to check the status:
./lighthouse.sh ls
Except for the light-schema-migrator
service, all other services should be in running
status, indicating that the lighthouse
platform is installed correctly.
Login to Lighthouse Platform
Enter the deployed service address http://{IP}
in your browser (replace this with your actual deployment service address, for example, 192.168.2.116
).
When accessing the backend for the first time, you will be prompted to create an administrator account. After successful creation, you will automatically log into the Lighthouse Observability Platform.
Run Demo (Optional)
The Demo data mainly includes APM, Log, and RUM.
Enter the lighthouse installation directory and execute the following command, replacing {IP}
with your local IP address, without brackets, for example, 192.168.2.116
.
cd /opt/lighthouse/deploy/docker-compose/
PROFILER_EXPORTER_ENDPOINT={IP}:8085 OPTIONAL_SERVICE_REPLICAS=1 docker compose --env-file /opt/lighthouse/.env up -d light-demo
RUM data needs to be manually triggered to be reported. Follow these steps:
After running the demo
container above, visit the website at 192.168.2.116:8082
. Clicking on relevant pages will report the website's RUM data to the monitoring platform.
Afterwards, you can go to the "User Experience Monitoring" module in the Lighthouse platform to view the data.