프로미스 설치가 되었다면 등록만 해주고, 그라파나에서 연동해주면 끄읏

서버에서 prometheus.yml에 호스트를 추가해준다.
group 으로 묶고 서버들을 포함시킬 수 있다.
나는 각 실제 클러스터 노드들로 구성을 테스트 해봤다.


느무 쉽쥬~~ systemctl 퍼미션 error 때문에... 20시간을 날렸다~~~~~~~~~~~
chmod, chown로 해결이 가능한걸 으이그 라는 생각을 했다면... 다시 공부하세요~~~
프로미스 설치가 되었다면 등록만 해주고, 그라파나에서 연동해주면 끄읏

서버에서 prometheus.yml에 호스트를 추가해준다.
group 으로 묶고 서버들을 포함시킬 수 있다.
나는 각 실제 클러스터 노드들로 구성을 테스트 해봤다.


느무 쉽쥬~~ systemctl 퍼미션 error 때문에... 20시간을 날렸다~~~~~~~~~~~
chmod, chown로 해결이 가능한걸 으이그 라는 생각을 했다면... 다시 공부하세요~~~

tar -zxvf prometheus-2.43.0.linux-amd64.tar.gz

폴더명은 prometheus-2.43.0.linux-amd64.tar.gz -> prometheus로 바꾸고 제가 설치를 하고자하는 /BiO/Install 로 mv했습니다~
그후 systemctl에 데몬 실행 준비를 해주고 스타트~
vi /etc/systemd/system/prometheus.service
[Unit]
Description=Prometheus Server
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target
[Service]
User=root
Restart=on-failure
#Change this line if you download ther
#Prometheus on different path user
ExecStart=/BiO/Install/prometheus \
--config.file=/BiO/Install/prometheus/prometheus.yml \
--storage.tsdb.path=/data/prometheus \
--web.console.templates=/BiO/Install/prometheus/consoles \
--web.console.libraries=/BiO/Install/prometheus/console_libraries \
--web.listen-address=0.0.0.0:9090 \
--web.enable-admin-api
[Install]
WantedBy=multi-user.target

systemctl daemon-reload;systemctl start prometheus.service; systemctl status prometheus.service
데몬 리로드, 스타트, 스텟터스~ 확인~~~~ 후 웹으로도 확인 !


짜쟌
| 우분투 20.04 그라파나 Grafana INSTALL [매우 간단] (0) | 2023.04.16 |
|---|