puppet-prometheus icon indicating copy to clipboard operation
puppet-prometheus copied to clipboard

postgres_exporter: extra_options vs options

Open mika opened this issue 7 years ago • 2 comments

Inside postgres_exporter.pp we have:

#  [*extra_options*]
#  Extra options added to the startup command
#  For a full list of the exporter's supported extra options
#  please refer to https://github.com/wrouesnel/postgres_exporter

... while the option is actually called $options and only supported as such.

Either the docs should be adjusted or support for extra_options should be added (to keep the behavior with other exporters in sync?). (I'm not sure how to properly do the later one without breaking existing setups, that's why I don't provide a PR yet.)

mika avatar Sep 13 '18 06:09 mika

I just ran into this as well. The other exporters seem to call it extra_options, so should this be renamed in postgres_exporter too?

zeha avatar May 29 '19 13:05 zeha

The docs have been changed. Actually options is not documented now :( About changing it to extra_options, I am not sure if this inconsistency warrants a breaking change.

TheMeier avatar May 05 '24 11:05 TheMeier