From 96052fe992d9cf1171b5f5565f37e7ee585847ee Mon Sep 17 00:00:00 2001 From: Kar k1 Date: Fri, 19 Sep 2025 21:39:41 +0530 Subject: [PATCH] remote host info --- instruction.md | 96 +++++++++++++++++++++++++++++++++++++++ prometheus/prometheus.yml | 32 +++++++++---- 2 files changed, 118 insertions(+), 10 deletions(-) create mode 100644 instruction.md diff --git a/instruction.md b/instruction.md new file mode 100644 index 0000000..cc1b76e --- /dev/null +++ b/instruction.md @@ -0,0 +1,96 @@ +# Adding a Remote Node to Monitoring + +## Prerequisites +- A remote Linux server with SSH access +- Node Exporter installed on the remote server +- Port 9100 open on the remote server's firewall + +## Step 1: Install Node Exporter on Remote VM + +SSH into your remote VM and run: + +```bash +# Download and extract Node Exporter +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-1.6.1.linux-amd64.tar.gz +cd node_exporter-1.6.1.linux-amd64/ + +# Create a systemd service +sudo tee /etc/systemd/system/node_exporter.service > /dev/null <