Assuming you have Linux system & docker installed.
wget https://github.com/prometheus/node_exporter/releases/download/v1.10.2/node_exporter-1.10.2.linux-amd64.tar.gz
tar xvfz node_exporter-1.10.2.linux-amd64.tar.gz
cd node_exporter-1.10.2.linux-amd64`
./node_exporter```
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'node-exporter'
static_configs:
- targets: ['host.docker.internal:9100']
docker volume create prometheus-data
docker run -d \
--name prometheus \
-p 9090:9090 \
--add-host=host.docker.internal:host-gateway \
-v /home/sunil/Desktop/Sunil/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml \
-v prometheus-data:/prometheus \
prom/prometheus
http://localhost:9090/targets

http://localhost:9090/query

ex: promtool check config /etc/prometheus/prometheus.yml
Next Page: Architecture
Main Page: Click Here