λ°˜μ‘ν˜•

Prometheus λ‹€μš΄λ‘œλ“œ

  1. wget https://github.com/prometheus/prometheus/releases/download/v2.35.0/prometheus-2.35.0.linux-amd64.tar.gz 
  2. tar xvzf prometheus-2.35.0.linux-amd64.tar.gz

Prometheus μ‹€ν–‰

nohup ./prometheus --config.file=prometheus.yml >> ./prometheus_run.log 2>&1 &

μ•Όλ―ˆνŒŒμΌμ— 적힌 config 값듀을 ν† λŒ€λ‘œ prometheus 싀행됨

address=0.0.0.0:9090

Grafana λ‹€μš΄λ‘œλ“œ

  1. wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.5.3-1.x86_64.rpm
  2. sudo yum install grafana-enterprise-8.5.3-1.x86_64.rpm

Grafana μ‹€ν–‰

  1. sudo systemctl daemon-reload
  2. sudo systemctl start grafana-server
  3. sudo systemctl status grafana-server
    1. grafana-server.service - Grafana instance
         Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; disabled; vendor preset: disabled)
         Active: active (running) since Wed 2022-05-25 17:15:47 KST; 5s ago
           Docs: http://docs.grafana.org
       Main PID: 15426 (grafana-server)
          Tasks: 9
         CGroup: /system.slice/grafana-server.service
                 β””─15426 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --pidfile=/var/run/grafana/grafana-
  4. sudo systemctl enable grafana-server

 

 

728x90
λ°˜μ‘ν˜•

+ Recent posts