Operations 7 min read

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.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
How to Deploy Nightingale: A Step‑by‑Step Docker Guide for High‑Availability Monitoring

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-compose

Generate and start the containers with Docker Compose.

cd /home/yeying-master/nightingale-master/dockerfiles
docker-compose up   # start

After 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.gz

After 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/g

Set 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 agent

Web 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.service

Login with admin/admin and configure dashboards to visualize monitoring data.

The final dashboard displays the complete monitoring view.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

monitoringDockerKubernetesGrafananightingale
MaGe Linux Operations
Written by

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.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.