sudo apt install prometheus prometheus-node-exporter prometheus-process-exporterCreate config dir:
sudo mkdir /etc/process-exporterCreate config file /etc/process-exporter/config.yml:
process_names:
  - name: "{{.Comm}}"
    cmdline:
      - '.+'Add config file to ARGS file of process-exporter /etc/default/prometheus-process-exporter:
ARGS="-config.path /etc/process-exporter/config.yml"Restart service:
sudo systemctl restart prometheus-process-exporter.serviceThe node_exporter is already added to the config by installation. Add process-exporter to the Prometheus config.
- In 
/etc/prometheus/prometheus.ymladd the following config to the end:: 
  - job_name: process_exporter
    static_configs:
      - targets: ['localhost:9256']Restart service:
sudo systemctl restart prometheusGo to: http://localhost:9090/classic/service-discovery
If everything is OK, you should see as the following:
sudo apt install -y apt-transport-https software-properties-common
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
sudo apt update
sudo apt install grafana -y
sudo systemctl enable grafana-server
sudo systemctl start grafana-serverGo to: http://localhost:3000
- For the first login, the username and password is `admin.
 - You will be asked to change them.
 
Go to: http://localhost:3000/connections/datasources/new
- Choose Prometheus with everything else is default.
 
Go to: http://localhost:3000/dashboard/import
Add following dashboards IDs by community:
- 1860 (node_exporter, full system usage)
 
- 22161 (process_exporter, by process)
 
- 13882 (process_exporter, by process)
 - 249
 



