You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe what you would like to achieve
Currently, the log and prefix list paths cannot be specified absolute, they are all prepended by this.config.volume.
It's not a good practice to force this kind of behaviour as it prevent log paths to be specified on a proper directory in /var/log and the prefix list in a proper configuration directory like /etc/bgpalerter (it doesn't make much sense to force it in the data directory)
Describe why the current solution (if any) is not satisfactory
Inflexible, force bad practice, can be workaround with symlinks probably (but it makes the setup harder to understand)
Provide an example
N/R
Your information
N/R
The text was updated successfully, but these errors were encountered:
I have currently several installations where logs are in /var/log/ and data and configurations are on other directories. If you specify an absolute path in logging.direcotry this will be respected. The same goes for monitoredPrefixesFiles and alertDataDirectory.
The volume parameter is used to override the default behavior, mostly in two situations: (1) when you want to create "virtual environments", e.g., you want to have a single installation of BGPalerter swapping multiple instances operating confined in a different directory each (with relative paths); or (2) when you are using docker and you want to create a persistent volume.
The volume parameter is not set by default by BGPalerter and it is not contained in the example configuration because it is a bit of a corner use case. I would suggest you to remove it from your config. However, I will improve the documentation to make this clear! Thanks for reporting
Okay indeed it's not clear that the --d is not required, not just for the data directory and that it modifies the behavior of all the path parameters in the configuration file, I will make a try tomorrow without, indeed it would be nice to add some details about this behavior in the documentation :)
Describe what you would like to achieve
Currently, the log and prefix list paths cannot be specified absolute, they are all prepended by
this.config.volume
.It's not a good practice to force this kind of behaviour as it prevent log paths to be specified on a proper directory in
/var/log
and the prefix list in a proper configuration directory like/etc/bgpalerter
(it doesn't make much sense to force it in the data directory)Describe why the current solution (if any) is not satisfactory
Inflexible, force bad practice, can be workaround with symlinks probably (but it makes the setup harder to understand)
Provide an example
N/R
Your information
N/R
The text was updated successfully, but these errors were encountered: