Webmail Website Panel VPS Panel Client Panel
Client Services
Guides

Advanced Infrastructure Visibility: Monitoring with Prometheus and Grafana

Operating blindly is a critical engineering failure. Learn how to deploy Prometheus and Grafana on CLOUD HIVE DC to gather time-series metrics and build real-time observability dashboards.

Advanced Infrastructure Visibility: Monitoring with Prometheus and Grafana

The Observability Paradigm

Operating a production environment without granular visibility is a critical engineering failure. When CPU spikes or memory leaks occur on your KVM VPS, you cannot rely on reactive troubleshooting. You need a proactive observability stack. Prometheus, a powerful time-series database, paired with Grafana, an advanced visualization platform, forms the industry standard for infrastructure monitoring. Before exposing monitoring ports, you must restrict access using strict firewall rules, as detailed in our Securing Your Server manual.

Exposing System Metrics

Prometheus operates on a pull-based model. It requires target endpoints to scrape. To monitor hardware and OS-level metrics, you must install the Node Exporter daemon on every target machine. Download the binary, extract it, and move it to your binaries path to execute it system-wide:

wget https://github.com/prometheus/node_exporter/releases/download/v1.6.1/node_exporter-1.6.1.linux-amd64.tar.gz
tar xvfz node_exporter-*.tar.gz
sudo mv node_exporter-*/node_exporter /usr/local/bin/

Configuring the Time-Series Database

Next, you must configure the central Prometheus server to scrape the newly exposed metrics. Open the primary configuration file and define the scrape jobs. You will instruct Prometheus to query the local Node Exporter instance running on port 9100 every 15 seconds:

sudo nano /etc/prometheus/prometheus.yml

Append the target configuration block to the file, ensuring strict YAML indentation. This explicit definition tells the engine exactly where to pull the telemetry data:

scrape_configs:
  - job_name: "node_exporter"
    static_configs:
      - targets: ["localhost:9100"]

Visualizing Telemetry with Grafana

Raw time-series data is difficult to interpret during an incident. Grafana connects to the Prometheus data source and translates PromQL queries into comprehensive visual dashboards. Install Grafana from the official repository, start the server, and access the web interface on port 3000 to map the health of your CLOUD HIVE DC infrastructure natively:

sudo apt-get install -y apt-transport-https software-properties-common
sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
sudo apt-get update && sudo apt-get install grafana -y
sudo systemctl enable --now grafana-server
AI
AI
CLOUD HIVE DC AI
Welcome aboard!
Ask me anything about CLOUD HIVE DC services. 🚀
I'm still learning, so please be patient with me 😊😋
👨‍💻 An operator has joined the chat