[Linux] Grafana 설치

슬터디·2023년 12월 6일
0

[YOU] 기술분석

목록 보기
11/24

Node_Exporter 설치

  • Prometheus 모니터링 시스템과 함께 사용하기 위해 개발된 오픈 소스 소프트웨어
  • 운영 중인 시스템에서 다양한 메트릭 정보를 수집하여 Prometheus에 전달

Grafana 설치

  • dnf install grafana -y
  • systemctl enable grafana-server.service
  • systemctl start grafana-server.service
  • systemctl status grafana-server.service
  • ss -pltn | grep grafana
    • 3000 포트 Listen 중

Grafana 웹 설정

  • admin / admin 으로 로그인 후,
  • Grafana 공식 홈페이지에서 대시보드 툴을 import 해서 사용함

모니터링 작동 확인

vm에 부하를 발생시키는 Tool 설치

  • dnf install stress-ng -y

부하 생성 후, 대시보드 확인

  • stress-ng -c 0 --cpu-load 85 -t 120
    • 0번 CPU에 85%의 부하를 120초 동안 발생
  • stress-ng --vm 1 -t 120 --vm-bytes 503176K
    • 503176k 메모리 영역을 allocation
  • dd if=/dev/zero of=dump.file bs=1G count=10
    • 0으로 가득찬 10GB 파일 생성
  • df -h로 파일 시스템 사용률 확인도 가능
profile
기억력이 맹구라 늘 기록해야해

0개의 댓글