-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Metrics Provider uses bind address by default (#331)
* Metrics Provider uses bind address by default This commit ensures MetricsEndpointProvider uses bind_address rather than socket.fqdn() by default and only falls back to fqdn() if bind address is not valid. This change was made because it was found that in some cases fqdn() did not return resolvable addresses for example if MetricsEndpointProvider charm was in a LXD could on localhost and MetricsEndpointProvider was on a Microk8s cloud on the same host. * Replace Multiline conditional with single line Co-authored-by: Leon <[email protected]> Co-authored-by: Leon <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters