BIGDATA/νλ‘μμ½μμ€ν
Grafana + Prometheus λͺ¨λν°λ§ ꡬμΆ
π°νν
2022. 5. 25. 17:45
λ°μν
Prometheus λ€μ΄λ‘λ
- wget https://github.com/prometheus/prometheus/releases/download/v2.35.0/prometheus-2.35.0.linux-amd64.tar.gz
- 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 λ€μ΄λ‘λ
- wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.5.3-1.x86_64.rpm
- sudo yum install grafana-enterprise-8.5.3-1.x86_64.rpm
Grafana μ€ν
- sudo systemctl daemon-reload
- sudo systemctl start grafana-server
- sudo systemctl status grafana-server
- 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-
- grafana-server.service - Grafana instance
- sudo systemctl enable grafana-server
728x90
λ°μν