Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.01 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.01 KB

Monitoring Preevy environments using Prometheus and Grafana

  1. Add the node_exporter service to your project's compose file
services:
  node_exporter:
    image: quay.io/prometheus/node-exporter:latest
    container_name: node_exporter
    command:
      - '--path.rootfs=/host'
    pid: host
    restart: unless-stopped
    volumes:
      - '/:/host:ro,rslave'
    ports:
      - "9100"
  1. Deploy the project using Preevy

preevy up

Copy the URL for the node_exporter service.

Repeat this step for all your environments.

  1. Customize prometheus/prometheus.yaml to add the node_exporter URLs from the deployed environments to the targets element.

  2. Run docker compose up -d to start the Prometheus and Grafana services on your machine. You could also use Preevy to host the services as an environment.

  3. Login to Grafana at http://localhost:9091 (default username/password is grafana/grafana). Under "dashboards", you should see the "Node Exporter full" dashboard.