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

Add support for mysqld_exporter version 0.11.0 #247

Merged
merged 3 commits into from
Aug 22, 2018
Merged

Add support for mysqld_exporter version 0.11.0 #247

merged 3 commits into from
Aug 22, 2018

Conversation

TheMeier
Copy link
Contributor

@TheMeier TheMeier commented Aug 3, 2018

Pull Request (PR) description

Update mysqld_exporter version to 0.11.0
mysqld_exporter flags now use the Kingpin library, and require double-dashes. prometheus/mysqld_exporter#222

Breaking change: if you do not set a version for mysqld_exporter and set extra_options make sure
you update extra_options to be compatible with version 0.11.0 and greater.

@@ -137,7 +137,7 @@
notify => $notify_service,
}

$options = "-config.my-cnf=${cnf_config_path} ${extra_options}"
$options = "--config.my-cnf==${cnf_config_path} ${extra_options}"
Copy link
Member

Choose a reason for hiding this comment

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

this change would make it backwards incompatible. Can you implement a selector statement that uses the old or the new syntax, depending on the version?

@bastelfreak bastelfreak added enhancement New feature or request needs-rebase labels Aug 3, 2018
@bastelfreak
Copy link
Member

Hi @TheMeier, thanks for the PR. Can you please take a look at the inline comment I made? Also please rebase and take a look at the used email address. It isn't associated with your github account.

@TheMeier
Copy link
Contributor Author

TheMeier commented Aug 4, 2018

@bastelfreak i am not so sure this can be done in a non backward-breaking way. The point is users could be using $extra_options and those would have to be changed by the user.
I put the code in anyway...

@TheMeier
Copy link
Contributor Author

TheMeier commented Aug 4, 2018

Also rebased..

@TheMeier
Copy link
Contributor Author

ping

@alexjfisher
Copy link
Member

Whatever we do here, we should probably also do on #179

@@ -168,7 +168,7 @@ prometheus::mysqld_exporter::group: 'mysqld-exporter'
prometheus::mysqld_exporter::package_ensure: 'latest'
prometheus::mysqld_exporter::package_name: 'mysqld_exporter'
prometheus::mysqld_exporter::user: 'mysqld-exporter'
prometheus::mysqld_exporter::version: '0.9.0'
prometheus::mysqld_exporter::version: '0.11.0'
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps we should support the newer version, but leave the default alone? We could later update several exporter default versions in a single breaking change in a different PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This sounds like a good compromise to me. It users to upgrade withought changing any of the current behaviour.

Flags now use the Kingpin library, and require double-dashes. prometheus/mysqld_exporter#222

Breaking change: if you do not set a version for mysqld_exporter *and* set `extra_options` make sure
you update `extra_options` to be compatible with version 0.11.0 and greater.
@bastelfreak bastelfreak changed the title update mysqld_exporter version to 0.11.0 Add support for mysqld_exporter version 0.11.0 Aug 18, 2018
@bastelfreak
Copy link
Member

@TheMeier thanks for the updates. Can you please add an acceptance test that installs version 0.9.0 and afterwards bumps it to 0.11.0? Let us know if you need any help. You can find us in #voxpupuli on the freenode IRC network and on https://puppetcommunity.slack.com.

@TheMeier
Copy link
Contributor Author

@bastelfreak done

@alexjfisher alexjfisher merged commit 8596b33 into voxpupuli:master Aug 22, 2018
@alexjfisher
Copy link
Member

@TheMeier Thanks!

cegeka-jenkins pushed a commit to cegeka/puppet-prometheus that referenced this pull request Aug 28, 2019
Flags now use the Kingpin library, and require double-dashes. prometheus/mysqld_exporter#222
Rovanion pushed a commit to Rovanion/puppet-prometheus that referenced this pull request May 5, 2021
Flags now use the Kingpin library, and require double-dashes. prometheus/mysqld_exporter#222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants