728x90
- SoundCloud사에서 만든 오픈소스 시스템 모니터링 및 경고 툴킷
- 현재 독립형 오픈소스 프로젝트로 많은 회사들이 사용하고 있음
- kubernetes에서도 Prometheus를 사용하여 매트릭 수집 및 대시보드 구축하는 방식을 지향함
<아키텍쳐>
< 설치 - Linux >
- Centos 7 환경 (Vmware player 가상 환경)에서 설치 진행
- Prometheus 다운로드 (https://prometheus.io/download/ 참고)
- linux용 설치 tar 파일 다운로드 및 Linux 서버 업로드
tar -xzvf prometheus-2.50.1.linux-amd64.tar.gz //tar파일 설치 서버에 이동 후 압축 해제
- Prometheus 서비스 등록 (자동 실행)
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
ExecStart=/root/install/prometheus-2.50.1.linux-amd64/prometheus \
--config.file=/root/install/prometheus-2.50.1.linux-amd64/prometheus.yml \
--storage.tsdb.path=/root/install/prometheus-2.50.1.linux-amd64/data
[Install]
WantedBy=multi-user.target
- Prometheus 서버 실행
systemctl daemon-reload
systemctl start prometheus
systemctl status prometheus
//기본 포트 9090
- Prometheus 서버 접속 테스트
Node-exporter?
- UNIX 계열 커널을 가진 하드웨어와 OS 등 "시스템 메트릭"을 수집하는 exporter
- Prometheus 재단이 공식적으로 지원하고 있는 exporter 중 하나
- Prometheus로 모니터링 시스템을 구축 시 시스템 메트릭 수집을 위해 가장 우선적으로 고려되는 exporter
- 수집 주요 항목
- Memory RAM total, RAM Used, RAM Cache, RAM Free
Disk Disk Space, IOPS, Mounts CPU CPU Load, CPU Memory Disk Network Network traffic, TCP flow, Connections - 아키텍쳐
728x90
'Prometheus' 카테고리의 다른 글
[Prometheus] Redis_exporter 연동 (Linux) (0) | 2024.08.26 |
---|---|
[Prometheus] mysqld_exporter 연동 (Linux) (0) | 2024.08.26 |
[Prometheus] Node-exporter 연동 (Linux) (0) | 2024.08.26 |