Skip to content

Commit

Permalink
Update options flag to new double dash format
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lbdemv authored Oct 24, 2024
1 parent af5a581 commit 037b136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/nginx_prometheus_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
default => undef,
}

$options = "-nginx.scrape-uri '${scrape_uri}' ${extra_options}"
$options = "--nginx.scrape-uri '${scrape_uri}' ${extra_options}"

if $install_method == 'url' {
# Not a big fan of copypasting but prometheus::daemon takes for granted
Expand Down

0 comments on commit 037b136

Please sign in to comment.