Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging 시스템 개선, Grafana labs LGTM 스택 도입기 #59

Closed
ecsimsw opened this issue Nov 20, 2024 · 1 comment
Closed

Logging 시스템 개선, Grafana labs LGTM 스택 도입기 #59

ecsimsw opened this issue Nov 20, 2024 · 1 comment

Comments

@ecsimsw
Copy link
Owner

ecsimsw commented Nov 20, 2024

@ecsimsw ecsimsw changed the title ECS metric, log 수집 방법 ECS metric, log 수집 Nov 20, 2024
@ecsimsw ecsimsw changed the title ECS metric, log 수집 Logging 시스템 개선, 비용 계산 Nov 21, 2024
@ecsimsw
Copy link
Owner Author

ecsimsw commented Nov 21, 2024

LGTM

LGTM 환경 테스트

- LGTM : Loki, Grafana + Prometheus를 포함한 Grafana Labs의 로그/메트릭 모니터링 스택
- 오픈 소스이기에 클라우드 사용 비용없이 자체적인 로그 저장, 쿼리 가능
- 환경 구성이 쉽고, 기존 프로젝트에 변경점이 없음

테스트를 위한 로컬 환경 구성

- Prometheus : 대시보드, 모니터링 화면단
- Promtail : 로그 전달
- Loki : 로그 인덱싱, 기록하는 중앙 DB
- Loki를 위한 DB Storage 구성 필요 / In memory or S3를 주로 사용

#### 로그 검색
1. 특정 시간 범위로 로그 검색

image

2. 파일 단위로 로그 검색

image

3. 키워드 검색

  • 여러 필터링 조건을 조합하여 검색
    - 로그 라인에 키워드 포함 여부, 불포함 여부, 정규식 매칭 여부과 각 조건 AND, OR 처리로 검색 가능

image

4. 로그 검색 결과 예시

image

@ecsimsw ecsimsw changed the title Logging 시스템 개선, 비용 계산 Logging 시스템 개선, Grafana labs LGTM 스택 도입기 Nov 26, 2024
@ecsimsw ecsimsw closed this as completed Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant