-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Update options flag for nginx-prometheus-exporter to new double dash format #816
base: master
Are you sure you want to change the base?
Conversation
@lbdemv do you know since when the "--" versions are supported? |
Sorry, I didn't actually check that. I just saw it and went on to fix the current warning... Maybe I can dwell into that later today, if it is important. |
As i see that, the deprecation change is made in nginx/nginx-prometheus-exporter#460 The initial issue seem to be the change to kigpin in nginx/nginx-prometheus-exporter#420 which was flagged as a breaking change in the mentioned v1.0.0 changelog |
I see. The default version in this module is currently 0.11.0 (https://github.com/voxpupuli/puppet-prometheus/blob/master/manifests/nginx_prometheus_exporter.pp#L66) so we need a version comparision here. Also there is a pending MR (#783) to update the version but that needs some work :( |
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.
We still need the version comparison.
@tuxmea I'm not sure if you are waiting for me to add anything? Or was this comment more like a memo for yourself? |
memo |
@lbdemv we need something like this:
The tests need to be changed to check both cases. If you don't mind I could update your PR accordingly. |
The nginx exporter logs the following deprecation warning after startup. ``` nginx-prometheus-exporter: the flag format is deprecated and will be removed in a future release, please use the new format: --nginx.scrape-uri ``` This PR intends to fix that deprecated format and use the current flag format with double dashes.
I don't mind at all. Go right ahead 😄 |
Pull Request (PR) description
The nginx exporter logs the following deprecation warning after startup.
This PR intends to fix the deprecated flag format and use the current flag format with double dashes.
This Pull Request (PR) fixes the following issues
No issue opened so far.