You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
📚 마이크로미터, 프로메테우스, 그라파나 정리
0. 요약.
1. 마이크로미터 소개
2. 메트릭 확인하기
/actuator/metrics→ 전체 메트릭 목록 제공/actuator/metrics/{name}→ 특정 메트릭 상세 확인jvm.memory.used: JVM 메모리 사용량tag=area:heap/tag=area:nonheap으로 힙/비힙 분류http.server.requests: HTTP 요청 수, 상태코드별 분류 가능3. 다양한 메트릭
application.started.time: 시작까지 걸린 시간application.ready.time: 준비 완료까지 걸린 시간http.server.requests(uri, method, status, exception 등 태깅)jdbc.connections.*,hikaricp.*logback.events(레벨별 로그 수)server.tomcat.mbeanregistry.enabled: true필요)4. 프로메테우스와 그라파나 소개
5. 프로메테우스
설치 및 실행
http://localhost:9090접속해 확인애플리케이션 연동
implementation 'io.micrometer:micrometer-registry-prometheus'/actuator/prometheus활성화 → Prometheus 포맷으로 메트릭 제공Prometheus 설정 (
prometheus.yml)10s~1m간격 추천기본 기능
sum,count,topk,increase(),rate()등 제공http_server_requests_seconds_count{method="GET"}메트릭 종류
increase(),rate()활용해야 의미 있는 그래프 가능6. 그라파나
설치 및 실행
grafana-server실행http://localhost:3000접속 → 기본 계정 admin/adminPrometheus 데이터소스 연동
http://localhost:9090Save & test로 연결 확인대시보드 구성
system_cpu_usage,process_cpu_usagedisk_total_bytes,disk_free_bytes7. 문제 상황 모니터링 예시
Active connection증가 확인ERROR로그 반복 발생 →logback_events_total확인Beta Was this translation helpful? Give feedback.
All reactions