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

MySQL - Option for collecting global variables #6790

Merged
merged 4 commits into from
Dec 11, 2019

Conversation

benhymans
Copy link
Contributor

@benhymans benhymans commented Dec 11, 2019

This PR addresses Issue #6789

There should be a config value that allows for enabling/disabling collection of MySQL Global Variables.

  • Readme: Added line for boolean config for collecting global vars
  • mysql.go: added line to retrieve config value
  • mysql.go: added logic to either collect or not collect vars based on config

closes #6789

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

Ben Hymans and others added 3 commits December 6, 2019 13:12
- Readme: Added line for boolean config for collecting global vars
- mysql.go: added line to retrieve  config value
- mysql.go: added logic to either collect or not collect vars based on config

Co-Authored-By: Matthew Iverson <esity@users.noreply.github.com>
@Esity
Copy link

Esity commented Dec 11, 2019

@danielnelson & @glinton
Looking for review on simple feature flag

@@ -94,6 +95,9 @@ const sampleConfig = `
## gather metrics from SHOW BINARY LOGS command output
# gather_binary_logs = false

## gather metrics from PERFORMANCE_SCHEMA.GLOBAL_VARIABLES
# gather_global_variables = false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was previously always enabled, so we should display this as true here and initialize it to true in the plugins init() function.

@danielnelson danielnelson added area/mysql feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin labels Dec 11, 2019
@danielnelson danielnelson added this to the 1.13.0 milestone Dec 11, 2019
@danielnelson danielnelson merged commit 4def7cc into influxdata:master Dec 11, 2019
danielnelson pushed a commit that referenced this pull request Dec 11, 2019
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mysql feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MySQL Input Plugin should have config option to disable collecting global vars
3 participants