How to Deploy Nightingale: A Step‑by‑Step Docker Guide for High‑Availability Monitoring
This article provides a comprehensive, step‑by‑step tutorial for installing the open‑source Nightingale monitoring platform using Docker, covering code retrieval, Docker‑compose setup, node configuration, service startup, Grafana integration, and essential UI features, enabling a high‑availability, hybrid‑cloud monitoring solution.
Step 1: Pull the code
Clone the Nightingale repository from GitHub or download the latest tar package.
Step 2: Configure startup items
Download docker-compose and make it executable.
curl -L https://github.com/docker/compose/releases/download/1.25.0-rc4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-composeGenerate and start the containers with Docker Compose.
cd /home/yeying-master/nightingale-master/dockerfiles
docker-compose up # startAfter startup, docker ps shows four containers.
Note: Ensure required ports are free.
If no errors appear, the service is accessible.
Initial login credentials are root / root.2020.
Step 3: Configure a node
wget http://116.85.64.82/n9e.tar.gz
tar -xf n9e.tar.gzAfter extraction, copy configuration files to the node directory.
Edit address.yml to replace the default IP with the master node’s IP.
:%s/192\.168\.106\.132/ip/gSet up a systemd service for the agent.
vim /usr/lib/systemd/system/agent.service
[Unit]
Description=n9e agent
After=network-online.target
Wants=network-online.target
[Service]
User=root
Group=root
Type=simple
Environment="GIN_MODE=release"
ExecStart=/home/n9e/n9e-agent
WorkingDirectory=/home/n9e
Restart=always
RestartSec=1
StartLimitInterval=0
[Install]
WantedBy=multi-user.target systemctl restart agent
systemctl enable agent
systemctl status agentWeb UI and resource management
Access the web interface, add node information, mount resources, and manage tasks.
The task execution center allows batch task execution across nodes.
Grafana integration
Install Grafana and add the Nightingale data source plugin.
wget https://dl.grafana.com/oss/release/grafana-7.3.2-1.x86_64.rpm
sudo rpm -i --nodeps grafana-7.3.2-1.x86_64.rpm
systemctl start grafana-server.service
systemctl status grafana-server.service grafana-cli --pluginUrl https://github.com/n9e/grafana-n9e-datasource/archive/v1.5.3.zip plugins install grafana-n9e-datasource
systemctl restart grafana-server.serviceLogin with admin/admin and configure dashboards to visualize monitoring data.
The final dashboard displays the complete monitoring view.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
