Bosun currently uses the host name as part of the key when storing its state and metrics in its store. When running it in Docker, the host name will be the container ID and change frequently, leaving a lot of old state in the database which never gets cleaned up.
Allow the user to specify the name of the Bosun instance which can be used instead of the host name.
How this feature will help you/your organisation
See above
Possible solution or implementation details
Use the existing Hostname configuration setting as the instances hostname. If this has not been set then continue to use the OS hostname as at present.
Strictly speaking, this would be a breaking change as the Hostname configuration setting is already in use for constructing template links. This feels like quite a niche feature and may not even be used so the proposal is that we don't add another new config flag (which would have a confusing name). This should be clearly stated in the release note though. Plus we are planning on asking the community about the features they use prior to cutting our next release.
Short description
Bosun currently uses the host name as part of the key when storing its state and metrics in its store. When running it in Docker, the host name will be the container ID and change frequently, leaving a lot of old state in the database which never gets cleaned up.
Allow the user to specify the name of the Bosun instance which can be used instead of the host name.
How this feature will help you/your organisation
See above
Possible solution or implementation details
Use the existing
Hostname
configuration setting as the instances hostname. If this has not been set then continue to use the OS hostname as at present.Strictly speaking, this would be a breaking change as the
Hostname
configuration setting is already in use for constructing template links. This feels like quite a niche feature and may not even be used so the proposal is that we don't add another new config flag (which would have a confusing name). This should be clearly stated in the release note though. Plus we are planning on asking the community about the features they use prior to cutting our next release.Example/links if any
N/A