Open jneo8 opened 2 months ago
I suggest we split the get_exporter
into get_installed_exporters
(for getting the installed exporters instances, used in places other than install even) and install_exporters
(for installation only, used in install or upgrade events) functions
On branch
/dev/refactor-multiple-exporter-support
The current install function of
BaseExporter
class is:and the timing to trigger this install function is on
The logic only include the systemd service config file generate, which is because we hide the
prometheus-hardware-exporter
dependency in charm's packaging, which is working fine.But this become a issue when now we need to include more exporter services which are not a python package. There is no hook we can use to handle the install process of the required resource/dependency for exporter.