db.getProfilingStatus()Retorna: O nível
profile, configuraçãoslowOpThresholdMs, configuraçãoslowOpInProgressThresholdMse configuraçãoslowOpSampleRateatual.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.Você pode definir o filtro de perfil com:
o método shell
db.setProfilingLevel(), ouA opção de arquivo de configuração do
operationProfiling.filter.
Compatibilidade
Esse método está disponível em implantações hospedadas nos seguintes ambientes:
- MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud
Importante
This command is not supported in M0 and Flex clusters. For more information, see Unsupported Commands.
MongoDB Enterprise: a versão autogerenciada e baseada em assinatura do MongoDB
MongoDB Community: uma versão com código disponível, de uso gratuito e autogerenciada do MongoDB