feat(scrape,discovery,promtext): 수집 계층 이관 - #13
Merged
Merged
Conversation
Prometheus 텍스트 파서·타겟 발견(static/kubernetes)·스크레이프 루프를 옮겼다. promtext 와 discovery 는 의존이 없어 그대로 왔고, scrape 만 개조했다. scrape 는 *tsdb.DB 대신 Appender 인터페이스를 받는다 — promql 이 저장 계층 인터페이스를 스스로 정의한 것과 같은 이유다. tsdb.DB 가 그 시그니처를 이미 만족하므로 어댑터가 필요 없고, 테스트는 저장 엔진 없이 가짜 하나로 끝난다.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 의 ① 데이터 유입입니다. Prometheus 텍스트 파서 · 타겟 발견(static/kubernetes) · 스크레이프 루프를 옮겼습니다.
promtext와discovery는 내부 의존이 없어 그대로 왔고,scrape만 개조했습니다.Appender인터페이스scrape가*tsdb.DB를 직접 받던 것을 인터페이스로 바꿨습니다:promql 이 저장 계층 인터페이스를 스스로 정의한 것과 같은 이유입니다.
tsdb.DB가 이미 이 시그니처를 만족하므로 어댑터가 필요 없고, 테스트는 저장 엔진 없이 가짜 하나로 끝납니다.검증
이관된 테스트가 그대로 통과합니다 — 스크레이프 사이클·타겟 발견·텍스트 파싱.