의견 보내기
구성 동기화 로그 쿼리
bookmark_border bookmark
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 페이지에는 로그 탐색기 에서 사용할 수 있는 쿼리가 포함되어 있습니다.
이러한 쿼리를 사용하여 로그 데이터를 검색, 확인, 분석할 수 있습니다. 이러한 로그에는 연산자 또는 조정자 포드가 다시 시작될 때 nomos bugreport
로 캡처되지 않는 중요한 이전 데이터가 포함될 수 있습니다.
가장 중요한 로그를 찾으려면 심각도별로 문제를 정렬한 후 타임스탬프를 조정하여 기간을 제어합니다.
쿼리/필터 이름
표현식
참고
조정 관리자 로그 확인
resource . type = "k8s_container"
resource . labels . project_id = "PROJECT_ID "
resource . labels . cluster_name = "CLUSTER_NAME "
resource . labels . namespace_name = "config-management-system"
resource . labels . container_name = "reconciler-manager"
timestamp >= "START_TIME "
timestamp <= "STOP_TIME "
네임스페이스 저장소의 조정자 로그 확인
resource . type = "k8s_container"
resource . labels . project_id = "PROJECT_ID "
resource . labels . cluster_name = "CLUSTER_NAME "
resource . labels . namespace_name = "config-management-system"
resource . labels . container_name = "reconciler"
resource . labels . pod_name : "ns-reconciler-NAMESPACE "
timestamp >= "START_TIME "
timestamp <= "STOP_TIME "
git-sync
로그를 보려면 resource.laels.container_name
을 git-sync
로 변경합니다. 루트 조정자 로그를 보려면 resource.labels.pod_name
을 root-reconciler
로 변경합니다.
클러스터가 특정 기간 내에 업그레이드되었는지 확인
resource . type = "gke_cluster"
resource . labels . project_id = "PROJECT_ID "
resource . labels . cluster_name = "CLUSTER_NAME "
resource . labels . location = "LOCATION "
timestamp >= "START_TIME "
timestamp <= "STOP_TIME "
쿼리한 클러스터가 업그레이드되지 않은 경우 결과는 비어 있습니다.
조정자 포드를 시작할 수 없는지 확인
resource . type = "k8s_pod"
resource . labels . project_id = "PROJECT_ID "
resource . labels . cluster_name = "CLUSTER_NAME "
resource . labels . location = "LOCATION "
resource . labels . pod_name : "ns-reconciler-NAMESPACE "
timestamp >= "START_TIME "
timestamp <= "STOP_TIME "
구성 동기화 관련 포드에 대한 오류가 표시되면 해당 포드를 연결된 타임스탬프에서 시작할 수 없음을 의미합니다.
ConfigMap 작업 확인
resource . type = "k8s_cluster"
resource . labels . project_id = "PROJECT_ID "
resource . labels . cluster_name = "CLUSTER_NAME "
resource . labels . location = "LOCATION "
protoPayload . methodName : "io.k8s.core.v1.configmaps"
protoPayload . resourceName : "core/v1/namespaces/config-management-system/configmaps/ns-reconciler-cap-logging-service"
timestamp >= "START_TIME "
timestamp <= "STOP_TIME "
RepoSync 작업 확인
resource . type = "k8s_cluster"
resource . labels . project_id = "PROJECT_ID "
resource . labels . cluster_name = "CLUSTER_NAME "
resource . labels . location = "LOCATION "
protoPayload . methodName : "reposyncs"
protoPayload . resourceName : "namespaces/cap-logging-service/reposyncs"
timestamp >= "START_TIME "
timestamp <= "STOP_TIME "
git-sync
에서 동기화된 모든 Git 버전 나열
resource . type = "k8s_container"
resource . labels . project_id = "PROJECT_ID "
resource . labels . location = "LOCATION "
resource . labels . cluster_name = "CLUSTER_NAME "
resource . labels . namespace_name = "config-management-system"
resource . labels . pod_name : "git-importer-" severity >= DEFAULT
"adding worktree"
다음을 바꿉니다.
PROJECT_ID
: 프로젝트 ID입니다.
CLUSTER_NAME
: 쿼리하려는 클러스터의 이름입니다.
START_TIME
: 로그 수집을 시작할 시간을 설정합니다. 타임스탬프가 있는 쿼리를 작성할 때는 YYYY-MM-DDT00:00:00Z 형식을 사용해야 합니다.
STOP_TIME
: 로그 수집을 중지할 시간을 설정합니다. 타임스탬프가 있는 쿼리를 작성할 때는 YYYY-MM-DDT00:00:00Z 형식을 사용해야 합니다.
NAMESPACE
: 네임스페이스 저장소를 만든 네임스페이스
LOCATION
: 클러스터를 만든 위치
의견 보내기
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스 에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스 에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책 을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-03-06(UTC)
의견을 전달하고 싶나요?
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-03-06(UTC)"],[],[]]