Monitoring을 사용하면 대시보드를 만들거나 알림을 설정할 수 있습니다. Google Cloud Console에서 Monitoring으로 이동하여 액세스할 수 있습니다. 기본 모니터링 측정항목 (요청 수, 크기, 지연 시간)을 보려면 측정항목 탐색기로 이동하여 resource_type:consumed_api 및 service:servicedirectory.googleapis.com로 필터링합니다.
로그 보기
서비스 디렉터리는 로깅을 통해 볼 수 있는 감사 로그를 생성합니다.
감사 로그
감사 로그는 '누가 언제 어디서 무엇을 했는가'라는 질문에 답하는 데 도움이 됩니다.
서비스 디렉터리는 관리자 활동 및 데이터 액세스라는 두 가지 유형의 감사 로그를 기록합니다. 관리자 활동 로그는 항상 사용 설정되며 다음 서비스 디렉터리 작업에 적용됩니다.
CreateNamespace
UpdateNamespace
DeleteNamespace
SetIamPolicy
다른 모든 서비스 디렉터리 작업은 데이터 액세스 로그로 간주되며 기본적으로 사용 설정되지 않습니다. 데이터 액세스 로그에도 Logging 가격 책정 및 할당량이 적용되지만 관리자 활동 로그에는 적용되지 않습니다. 데이터 액세스 로깅을 사용 설정하려면 데이터 액세스 로그 구성을 참고하세요.
로깅에서 이러한 로그를 보려면 리소스 드롭다운 메뉴에서 Service Directory Namespace를 선택하고 로그 드롭다운에서 적절하게 cloudaudit.googleapis.com/activity 또는 cloudaudit.googleapis.com/data_access를 선택합니다.
[[["이해하기 쉬움","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-09-10(UTC)"],[],[],null,["# View logs and metrics\n\nYou can use\n[Cloud Monitoring](/monitoring)\nand\n[Cloud Logging](/logging)\nwith Service Directory.\n\nMonitor\n-------\n\nMonitoring lets you create dashboards or set up\nalerts. You can access it by visiting\n[Monitoring](https://app.google.stackdriver.com/)\nin Google Cloud console. To view basic monitoring metrics (request\ncount, size, and latency), go to the **Metrics Explorer** and filter by\n`resource_type:consumed_api` and `service:servicedirectory.googleapis.com`.\n\nView logs\n---------\n\nService Directory produces audit logs that you can view through\nLogging.\n\n### Audit logs\n\n[Audit logs](/logging/docs/audit)\ncan help you answer the questions \"Who did what, where, and when?\".\nService Directory writes two types of audit logs: **admin activity** and\n**data access**. Admin activity logs are always enabled and apply to the\nfollowing Service Directory operations:\n\n- CreateNamespace\n- UpdateNamespace\n- DeleteNamespace\n- SetIamPolicy\n\nAll other Service Directory operations are considered data access logs and are\nnot enabled by default. Data access logs are also subject to\nLogging pricing and quota, whereas neither applies to admin\nactivity logs. To enable data access logging, see\n[Configuring Data Access logs](/logging/docs/audit/configure-data-access#config-console).\n\nTo see these logs in\n[Logging](/logging/docs/view/logs-explorer-interface#getting_started),\nselect `Service Directory Namespace` from the **Resource** drop-down menu and\n`cloudaudit.googleapis.com/activity` or `cloudaudit.googleapis.com/data_access`,\nas appropriate, from the **Logs** drop-down.\n\nWhat's next\n-----------\n\n- To get a thorough understanding of Monitoring, see the [Monitoring documentation](/monitoring/docs).\n- To find solutions for common issues that you might encounter when using Service Directory, see [Troubleshooting](/service-directory/docs/troubleshooting)."]]