-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PMM-7 Add flag to enable collstats details and disable them by default. #997
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,8 @@ | |
|
||
CollectAll bool `name:"collect-all" help:"Enable all collectors. Same as specifying all --collector.<name>"` | ||
|
||
CollStatsLimit int `name:"collector.collstats-limit" help:"Disable collstats, dbstats, topmetrics and indexstats collector if there are more than <n> collections. 0=No limit" default:"0"` | ||
CollStatsLimit int `name:"collector.collstats-limit" help:"Disable collstats, dbstats, topmetrics and indexstats collector if there are more than <n> collections. 0=No limit" default:"0"` | ||
Check failure on line 73 in main.go GitHub Actions / Lint Check
|
||
CollStatsEnableDetails bool `name:"collector.collstats-enable-details" help:"Enable collecting index details and wired tiger metrics from $collStats" default:"false"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [golangci-lint] reported by reviewdog 🐶 |
||
|
||
ProfileTimeTS int `name:"collector.profile-time-ts" help:"Set time for scrape slow queries." default:"30"` | ||
|
||
|
@@ -192,10 +193,11 @@ | |
|
||
EnableOverrideDescendingIndex: opts.EnableOverrideDescendingIndex, | ||
|
||
CollStatsLimit: opts.CollStatsLimit, | ||
CollectAll: opts.CollectAll, | ||
ProfileTimeTS: opts.ProfileTimeTS, | ||
CurrentOpSlowTime: opts.CurrentOpSlowTime, | ||
CollStatsLimit: opts.CollStatsLimit, | ||
CollStatsEnableDetails: opts.CollStatsEnableDetails, | ||
CollectAll: opts.CollectAll, | ||
ProfileTimeTS: opts.ProfileTimeTS, | ||
CurrentOpSlowTime: opts.CurrentOpSlowTime, | ||
} | ||
|
||
e := exporter.New(exporterOpts) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci-lint] reported by reviewdog 🐶
tag is not aligned, should be: default:"0" help:"Disable collstats, dbstats, topmetrics and indexstats collector if there are more than collections. 0=No limit" name:"collector.collstats-limit" (tagalign)