puppet-prometheus
puppet-prometheus copied to clipboard
node_exporter.pp does not provide direct way to override the listening port
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 6.26.1
- Ruby:
- Distribution:
- Module version: 13.3.0
How to reproduce (e.g Puppet code you use)
Can't provide a negative. While there's the ability to change "scrape_port" which is used to provide an exported resource to prometheus server, that scrape_port value is not used elsewhere, so then node_exporter still listens on its default.
What are you seeing
No override of the listening port in a direct manner that will update both runtime setting of web.listen-address and scrape_port.
It can be provided as part of "extra_options" but then one must still also update scrape_port too.
What behaviour did you expect instead
To be able to set one value for port and have it reflect in the runtime of the service and its listening port as well as what is exported as a resource to prometheus server.