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
[mysqld]
# 슬로우 쿼리를 FILE로 출력
log_output = FILE
# 출력할 파일 위치를 설정
slow_query_log_file = /var/log/mysql/mysql-slow.log
# 슬로우 쿼리 활성화
slow_query_log = 1
# 아래 변수에 지정된 초(seconds)이상 쿼리가 수행되면 슬로우 쿼리에 기록
long_query_time = 2
spring actuator endpoint로부터 데이터를 받을 수 있도록 prometheus.yml 수정
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'#...
- job_name: daangn_server_nodemetrics_path: /actuator/prometheusstatic_configs:
- targets: ['localhost:8081','localhost:8881','localhost:9081']
작업내용
PR
목차
슬로우 쿼리 로그 활성화
my.cnf
에 슬로우 쿼리(2초
) 로그 활성화 옵션 적용스프링부트 actuator 적용
애플리케이션 상태 확인
을 위해 스프링부트 actuator 적용health
와prometheus
만 열어놓음application.yml
프로메테우스 & grafana 적용
프로메테우스
spring actuator
endpoint로부터 데이터를 받을 수 있도록prometheus.yml
수정grafana
JVM (Micrometer)
적용The text was updated successfully, but these errors were encountered: