Skip to content
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

Setting Innodb_buffer_pool_pages_total to 1, to avoid an issue with Datadog's collector #2431

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions sql/variables/status_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -1619,10 +1619,12 @@ var statusVars = map[string]sql.StatusVariable{
Default: int64(0),
},
"Innodb_buffer_pool_pages_total": &sql.MySQLStatusVariable{
Name: "Innodb_buffer_pool_pages_total",
Scope: sql.StatusVariableScope_Global,
Type: types.NewSystemIntType("Innodb_buffer_pool_pages_total", 0, 0, false),
Default: int64(0),
Name: "Innodb_buffer_pool_pages_total",
Scope: sql.StatusVariableScope_Global,
Type: types.NewSystemIntType("Innodb_buffer_pool_pages_total", 0, 0, false),
// NOTE: Datadog errors out with a divide by zero error if this is zero,
// so for now, we just report 1.
Default: int64(1),
},
"Innodb_buffer_pool_read_ahead": &sql.MySQLStatusVariable{
Name: "Innodb_buffer_pool_read_ahead",
Expand Down
Loading