We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 014065d commit 802d93eCopy full SHA for 802d93e
linkerd/app/outbound/src/metrics.rs
@@ -84,10 +84,13 @@ where
84
85
impl PromMetrics {
86
pub fn register(registry: &mut prom::Registry) -> Self {
87
- Self {
88
- http: crate::http::HttpMetrics::register(registry.sub_registry_with_prefix("http")),
89
- opaq: crate::opaq::OpaqMetrics::register(registry.sub_registry_with_prefix("tcp")),
90
- }
+ // NOTE: HTTP metrics are scoped internally, since this configures both
+ // HTTP and gRPC scopes.
+ let http = crate::http::HttpMetrics::register(registry);
+
91
+ let opaq = crate::opaq::OpaqMetrics::register(registry.sub_registry_with_prefix("tcp"));
92
93
+ Self { http, opaq }
94
}
95
96
0 commit comments