mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +02:00
telemetry: try guess hostname or external IP addr for metrics (#2412)
This commit is contained in:
parent
94eb3c1149
commit
204aa30b6e
3 changed files with 81 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue