Skip to content

Commit

Permalink
unhide slow_operations config (#18757)
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zhengda authored Oct 3, 2024
1 parent bdd7dc8 commit af62c99
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
1 change: 0 additions & 1 deletion mongo/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ files:
example: 10
- name: slow_operations
description: Configure collection of MongoDB slow operations.
hidden: true
options:
- name: enabled
description: |
Expand Down
20 changes: 20 additions & 0 deletions mongo/datadog_checks/mongo/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,26 @@ instances:
#
# collection_interval: 10

## Configure collection of MongoDB slow operations.
#
# slow_operations:

## @param enabled - boolean - optional - default: true
## Enable collection of slow operations. Requires `dbm: true`.
#
# enabled: true

## @param collection_interval - number - optional - default: 10
## Set the slow operations collection interval in seconds. Each collection involves capturing
## profiled slow operations from sys.profile collection or from the Slow Query log.
#
# collection_interval: 10

## @param max_operations - number - optional - default: 1000
## Set the maximum number of slow operations to collect per interval.
#
# max_operations: 1000

## Configure collection of MongoDB schemas (inferred) by sampling documents.
#
# schemas:
Expand Down

0 comments on commit af62c99

Please sign in to comment.