SLV 설치 - Prometheus
SLV 설치 - Prometheus

왜 Prometheus인가?
Prometheus는 시계열 모니터링의 사실상 표준으로, 강력한 쿼리 언어(PromQL)와 풍부한 exporter 생태계로 메트릭을 수집합니다.
slv install로 설치하면 모든 환경에서 Grafana 대시보드와 알림 규칙에 공급되는 일관된 메트릭 백본을 얻을 수 있습니다.하이라이트
- Prometheus: https://prometheus.io/
- 풀 기반 스크레이핑으로 관측 트래픽을 예측 가능하게 유지하고, PromQL이 실행 가능한 인사이트를 표면화합니다.
- Grafana 및 Alertmanager와 네이티브 통합되어 추가 설정 없이 시각화와 알림을 할 수 있습니다.
설치 프로그램 실행
Prometheus를 실행할 호스트를 대상으로 지정하고 컴포넌트 선택기에서 선택하세요.
bash
$ slv install -i 1.1.1.1,
🚀 Installing software components...
? Select Software Component to Install (Redis)
Redis
TiDB (MySQL Cluster)
Grafana
❯ Prometheus
Node Exporter
Kafka Cluster$ slv install -i 1.1.1.1,
🚀 Installing software components...
? Select Software Component to Install (Redis)
Redis
TiDB (MySQL Cluster)
Grafana
❯ Prometheus
Node Exporter
Kafka Cluster참고:1.1.1.1을 자신의 서버 IP 주소로 바꾸세요.
세부 정보 확인
플레이북이 시작되기 전에 인벤토리, 플레이북 경로 및 선택적 limit을 확인합니다.
bash
🚀 Installing software components...
? Select Software Component to Install (Redis) › Prometheus
✅ You selected: Prometheus
📋 Installation Details:
Software: Prometheus
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-prometheus.yml
? Do you want to proceed with the installation? (y/N) › 🚀 Installing software components...
? Select Software Component to Install (Redis) › Prometheus
✅ You selected: Prometheus
📋 Installation Details:
Software: Prometheus
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-prometheus.yml
? Do you want to proceed with the installation? (y/N) › Ansible 실행 관찰
slv는 Ansible을 활용하여 Prometheus를 systemd 서비스로 설치하고 기본 구성을 배치합니다.bash
🚀 Running ansible: ansible-playbook -i 1.1.1.1, -u solv /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-prometheus.yml
PLAY [Install and configure Prometheus] **************************************************************
TASK [Gathering Facts] *******************************************************************************🚀 Running ansible: ansible-playbook -i 1.1.1.1, -u solv /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-prometheus.yml
PLAY [Install and configure Prometheus] **************************************************************
TASK [Gathering Facts] *******************************************************************************엔드포인트 확인
완료되면 CLI가 Prometheus 웹 UI URL을 출력하므로 타겟이 올바르게 스크레이핑되고 있는지 확인할 수 있습니다.
bash
✅ Installation completed successfully!
🌐 Access Information:
Prometheus URL: http://1.1.1.1:3090✅ Installation completed successfully!
🌐 Access Information:
Prometheus URL: http://1.1.1.1:3090대시보드
http://1.1.1.1:3090을 열어 Prometheus 타겟 페이지를 확인하세요. Grafana와 연결하면 PromQL로 메트릭을 그래프화하고 Alertmanager로 알림 규칙을 설정할 수 있습니다.