@@ -49,7 +49,7 @@ impl Fixture {
49
49
. inbound ( srv)
50
50
. run ( )
51
51
. await ;
52
- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
52
+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
53
53
54
54
let client = client:: new ( proxy. inbound , "tele.test.svc.cluster.local" ) ;
55
55
let tcp_dst_labels = metrics:: labels ( ) . label ( "direction" , "inbound" ) ;
@@ -83,7 +83,7 @@ impl Fixture {
83
83
. outbound ( srv)
84
84
. run ( )
85
85
. await ;
86
- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
86
+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
87
87
88
88
let client = client:: new ( proxy. outbound , "tele.test.svc.cluster.local" ) ;
89
89
let tcp_labels = metrics:: labels ( )
@@ -137,7 +137,7 @@ impl TcpFixture {
137
137
. await ;
138
138
139
139
let client = client:: tcp ( proxy. inbound ) ;
140
- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
140
+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
141
141
142
142
let src_labels = metrics:: labels ( )
143
143
. label ( "direction" , "inbound" )
@@ -175,7 +175,7 @@ impl TcpFixture {
175
175
. await ;
176
176
177
177
let client = client:: tcp ( proxy. outbound ) ;
178
- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
178
+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
179
179
180
180
let src_labels = metrics:: labels ( )
181
181
. label ( "direction" , "outbound" )
@@ -530,7 +530,7 @@ mod outbound_dst_labels {
530
530
. outbound ( srv)
531
531
. run ( )
532
532
. await ;
533
- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
533
+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
534
534
535
535
let client = client:: new ( proxy. outbound , dest) ;
536
536
let tcp_labels = metrics:: labels ( )
@@ -852,7 +852,7 @@ async fn metrics_have_no_double_commas() {
852
852
. run ( )
853
853
. await ;
854
854
let client = client:: new ( proxy. inbound , "tele.test.svc.cluster.local" ) ;
855
- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
855
+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
856
856
857
857
let scrape = metrics. get ( "/metrics" ) . await ;
858
858
assert ! ( !scrape. contains( ",," ) ) ;
0 commit comments