Back-End/Prometheus-Grafana2 Grafana를 Prometheus와 연동하기 Grafana를 Prometheus와 연동하여 데이터를 시각화하는 방법1. Grafana 설치1) Grafana 저장소 추가sudo apt updatesudo apt install -y software-properties-commonsudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -2) Grafana 설치sudo apt updatesudo apt install -y grafana2. Grafana 서비스 설정1) Grafana 서비스 시작 및 등록sudo systemctl start grafa.. 2025. 3. 25. Prometheus 사용하는 방법 Prometheus 사용하는 방법 사용하는 이유- Prometheus를 통해 Spring Boot 애플리케이션의 성능등의 상태들을 모니터링을 하기 위해 사용합니다.1) HTTP 요청http_server_requests_seconds_count: HTTP 요청 총 횟수http_server_requests_seconds_sum: 요청 처리 시간 합계2) 시스템 리소스system_cpu_usage: 시스템 CPU 사용량jvm_memory_used_bytes: JVM 메모리 사용량3) 데이터베이스hikaricp_connections_active: 활성 DB 연결 수hikaricp_connections_idle: 유휴 DB 연결 수4) 애플리케이션 상태process_uptime_seconds: 애플리케이션 가동 .. 2024. 12. 8. 이전 1 다음