db.getProfilingStatus()반환합니다: 현재
profile레벨,slowOpThresholdMs설정,slowOpInProgressThresholdMs설정 및slowOpSampleRate설정입니다.You can set a
filterto control which operations are logged by the profiler. When set, any configured filters are also returned bydb.getProfilingStatus(), along with anoteexplaining filter behavior.다음 중 하나를 사용하여 프로파일링 필터를 설정할 수 있습니다.
db.setProfilingLevel()shell 메서드 또는operationProfiling.filter구성 파일 옵션입니다.
호환성
이 메서드는 다음 환경에서 호스팅되는 배포에서 사용할 수 있습니다.
- MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud
중요
This command is not supported in M0 and Flex clusters. For more information, see Unsupported Commands.
MongoDB Enterprise: MongoDB의 구독 기반 자체 관리 버전
MongoDB Community: MongoDB의 소스 사용 가능 무료 자체 관리 버전