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

External configuration for prometheus-libvirt-exporter.service #37

Open
fprzewozny opened this issue May 17, 2024 · 1 comment
Open

Comments

@fprzewozny
Copy link

Hey,
prometheus-libvirt-exporter allows for some configuration to be passed as arguments (the most important for me is web.listen-address) which is great, but if systemd service is used (prometheus-libvirt-exporter.service) then the only way to change execution arguments is to change the .service file (which may be fine in small scale, without configuration management). It would be really useful if some kind of configuration file was present outside prometheus-libvirt-exporter.service file (f.e. /etc/prometheus-libvirt-exporter or /etc/default/prometheus-libvirt-exporter).

Please let me know @frittentheke what do you think about it.

Thank you,
Franciszek

@frittentheke
Copy link
Collaborator

Did you look into systemd unit drop-ins to override / adjust settings of the base unit? Check out https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html

Otherwise I suppose you are looking for something like this

Please gladly send in a PR @fprzewozny !

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

No branches or pull requests

2 participants