Closed cglewis closed 5 years ago
Also, it looks like it's actually Prometheus that is being HUP'd and not Faucet, is that intended? I didn't think that would actually apply changes made to the config?
https://github.com/faucetsdn/faucetagent/blob/master/faucetagent.py#L184
cmd = 'fuser -k -HUP %d/tcp' % self.prometheus_port
Oh, re 2 - forgot it wasn't pointing to the aggregator (on 9090), so that makes sense, nevermind.
Reload currently performs a HUP every time a configuration is set, it would be nice to have an option to not do that if Faucet is using the environment variable
FAUCET_CONFIG_STAT_RELOAD=1
which automatically reloads the config whenever it detects the config has changed.