telemetry: try guess hostname or external IP addr for metrics (#2412)

This commit is contained in:
wasaga 2021-08-03 18:10:14 -04:00 committed by GitHub
parent 94eb3c1149
commit 204aa30b6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 81 additions and 15 deletions

View file

@ -24,7 +24,6 @@ func TestMetricsURL(t *testing.T) {
for _, opt := range []config.Options{
{MetricsAddr: "my.host:"},
{MetricsAddr: "my.host:9090", MetricsBasicAuth: "SMTH"},
{MetricsAddr: ":9090"},
{MetricsAddr: "my.host"},
} {
_, err := metricsURL(opt)