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

Update options flag to new double dash format #816

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lbdemv
Copy link

@lbdemv lbdemv commented Oct 24, 2024

Pull Request (PR) description

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 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.

lbdemv and others added 2 commits October 24, 2024 12:36
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.
@TheMeier
Copy link
Contributor

@lbdemv do you know since when the "--" versions are supported?
https://github.com/nginxinc/nginx-prometheus-exporter/releases/tag/v1.0.0 ?

@lbdemv
Copy link
Author

lbdemv commented Oct 24, 2024

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.

@lbdemv
Copy link
Author

lbdemv commented Oct 24, 2024

As i see that, the deprecation change is made in nginxinc/nginx-prometheus-exporter#460
It was a fix for nginxinc/nginx-prometheus-exporter#447

The initial issue seem to be the change to kigpin in nginxinc/nginx-prometheus-exporter#420 which was flagged as a breaking change in the mentioned v1.0.0 changelog

@TheMeier
Copy link
Contributor

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 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants