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 のバージョン