1. 대표적인 장애 상황 CPU 사용량이 과도하게 많아질 때JVM 메모리가 과도하게 많아질 때데이터베이스 연결(Database Connection)이 과도하게 많아질 때에러 로그가 갑자기 치솟을 때 2. CPU 사용량 시뮬레이션package com.monitor.sample;import lombok.extern.slf4j.Slf4j;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RestController;import javax.sql.DataSource;i..
1. 대시보드 템플릿 지난 블로그 글에서는 직접 대시보드를 만들어봤다.직접 대시보드를 만들어서 모니터링해도 되지만,누군가가 미리 만들어 놓은 대시보드를 사용하는 게 훨씬 효율적이다. 아래 사이트에 접속하면 이미 만들어져 있는 대시보드를 확인할 수 있다. https://grafana.com/grafana/dashboards Grafana dashboards | Grafana LabsNo results found. Please clear one or more filters.grafana.com 2. 대시보드 템플릿 import 하기 사용하고자 하는 템플릿의 ID를 copy 하거나 기억해둔 다음 import하면 끝이다. ID를 넣고 Load를 클릭한 다음, 데이터 소스를 프로메테우스 로 지정해주면 된다...
1. PrometheusFrom metrics to insightPower your metrics and alerting with the leadingopen-source monitoring solution. 메트릭으로부터 인사이트를 얻으라.Prometheus는 오픈소스다.https://prometheus.io/ Prometheus - Monitoring system & time series databaseAn open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.prometheus.io 2. 메트릭..