Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions source/common/config/well_known_names.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ TagNameValues::TagNameValues() {
// grpc.(<stat_prefix>).**
addTokenized(GOOGLE_GRPC_CLIENT_PREFIX, "grpc.$.**");

// [*.]grpc.(<stat_prefix>.)streams_closed_<gRPC_status_code>
// Handles gRPC client stats where the stat_prefix is embedded inside a longer
// stat name (e.g. listener_manager.lds.grpc.(<lds_cluster>.)streams_closed_1,
// sds.client_cert.grpc.(<sds_cluster>.)streams_closed_12).
addRe2(GOOGLE_GRPC_CLIENT_PREFIX, R"(\.grpc\.((.+)\.streams_closed_\d+)$)", ".grpc.");

// listener.[<address>.]ssl.certificate.(<cert_name>).<metric_name> or
// cluster.[<cluster_name>.]ssl.certificate.(<cert_name>).<metric_name>
addRe2(TLS_CERTIFICATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ class AccessLogIntegrationTest : public Grpc::GrpcClientIntegrationParamTest,
public HttpIntegrationTest {
public:
AccessLogIntegrationTest() : HttpIntegrationTest(Http::CodecType::HTTP1, ipVersion()) {
// TODO(ggreenway): add tag extraction rules.
// Missing stat tag-extraction rule for stat 'grpc.accesslog.streams_closed_11' and stat_prefix
// 'accesslog'.
skip_tag_extraction_rule_check_ = true;
}

void createUpstreams() override {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ class TcpGrpcAccessLogIntegrationTest : public Grpc::GrpcClientIntegrationParamT
public:
TcpGrpcAccessLogIntegrationTest()
: BaseIntegrationTest(ipVersion(), ConfigHelper::tcpProxyConfig()) {
// TODO(ggreenway): add tag extraction rules.
// Missing stat tag-extraction rule for stat 'grpc.accesslog.streams_closed_14' and stat_prefix
// 'accesslog'.
skip_tag_extraction_rule_check_ = true;

enableHalfClose(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ class RatelimitIntegrationTest : public Grpc::GrpcClientIntegrationParamTest,
public HttpIntegrationTest {
public:
RatelimitIntegrationTest() : HttpIntegrationTest(Http::CodecClient::Type::HTTP2, ipVersion()) {
// TODO(ggreenway): add tag extraction rules.
skip_tag_extraction_rule_check_ = true;
}

void createUpstreams() override {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ class MetricsServiceIntegrationTest : public Grpc::GrpcClientIntegrationParamTes
public HttpIntegrationTest {
public:
MetricsServiceIntegrationTest() : HttpIntegrationTest(Http::CodecType::HTTP1, ipVersion()) {
// TODO(ggreenway): add tag extraction rules.
// Missing stat tag-extraction rule for stat 'grpc.metrics_service.streams_closed_14' and
// stat_prefix 'metrics_service'.
skip_tag_extraction_rule_check_ = true;
}

void createUpstreams() override {
Expand Down
4 changes: 0 additions & 4 deletions test/integration/extension_discovery_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ class ExtensionDiscoveryIntegrationTest : public Grpc::GrpcClientIntegrationPara
public HttpIntegrationTest {
public:
ExtensionDiscoveryIntegrationTest() : HttpIntegrationTest(Http::CodecType::HTTP1, ipVersion()) {
// TODO(ggreenway): add tag extraction rules.
// Missing stat tag-extraction rule for stat
// 'listener_manager.lds.grpc.lds_cluster.streams_closed_10' and stat_prefix 'lds_cluster'.
skip_tag_extraction_rule_check_ = true;
}

void addDynamicFilter(const std::string& name, bool apply_without_warming,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ class ListenerExtensionDiscoveryIntegrationTestBase : public Grpc::GrpcClientInt
const std::string& listener_filter_name)
: HttpIntegrationTest(downstream_type, ipVersion(), config),
filter_name_(listener_filter_name), port_name_("http") {
// TODO(ggreenway): add tag extraction rules.
// Missing stat tag-extraction rule for stat
// 'extension_config_discovery.tcp_listener_filter.foo.grpc.ecds_cluster.streams_closed_7' and
// stat_prefix 'ecds_cluster'.
skip_tag_extraction_rule_check_ = true;
}

void addDynamicFilterWithType(const std::string& filter_name,
Expand Down
8 changes: 0 additions & 8 deletions test/integration/listener_lds_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ class ListenerIntegrationTestBase : public HttpIntegrationTest {

ListenerIntegrationTestBase(Network::Address::IpVersion version, const std::string& config)
: HttpIntegrationTest(Http::CodecType::HTTP1, version, config) {
// TODO(ggreenway): add tag extraction rules.
// Missing stat tag-extraction rule for stat
// 'listener_manager.lds.grpc.lds_cluster.streams_closed_1' and stat_prefix 'lds_cluster'.
skip_tag_extraction_rule_check_ = true;
}

~ListenerIntegrationTestBase() override { resetConnections(); }
Expand Down Expand Up @@ -1193,10 +1189,6 @@ class ListenerFilterIntegrationTest : public BaseIntegrationTest,
stat_prefix: tcp_stats
cluster: cluster_0
)EOF") {
// TODO(ggreenway): add tag extraction rules.
// Missing stat tag-extraction rule for stat
// 'listener_manager.lds.grpc.lds_cluster.streams_closed_1' and stat_prefix 'lds_cluster'.
skip_tag_extraction_rule_check_ = true;
}

~ListenerFilterIntegrationTest() override {
Expand Down
5 changes: 0 additions & 5 deletions test/integration/scoped_rds.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ class ScopedRdsIntegrationTest : public HttpIntegrationTest,
};

ScopedRdsIntegrationTest() : HttpIntegrationTest(Http::CodecType::HTTP1, ipVersion()) {
// TODO(ggreenway): add tag extraction rules.
// Missing stat tag-extraction rule for stat
// 'http.scoped_rds.foo-scoped-routes.grpc.srds_cluster.streams_closed_16' and stat_prefix
// 'srds_cluster'.
skip_tag_extraction_rule_check_ = true;

config_helper_.addRuntimeOverride("envoy.reloadable_features.unified_mux",
(sotwOrDelta() == Grpc::SotwOrDelta::UnifiedSotw ||
Expand Down
10 changes: 0 additions & 10 deletions test/integration/sds_dynamic_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,12 @@ class SdsDynamicIntegrationBaseTest : public Grpc::BaseGrpcClientIntegrationPara
SdsDynamicIntegrationBaseTest()
: HttpIntegrationTest(Http::CodecType::HTTP1, GetParam().ip_version),
test_quic_(GetParam().test_quic) {
// TODO(ggreenway): add tag extraction rules.
// Missing stat tag-extraction rule for stat
// 'sds.client_cert.grpc.sds_cluster.lyft.com.streams_closed_12' and stat_prefix
// 'sds_cluster.lyft.com'.
skip_tag_extraction_rule_check_ = true;
}

SdsDynamicIntegrationBaseTest(Http::CodecType downstream_protocol,
Network::Address::IpVersion version, const std::string& config)
: HttpIntegrationTest(downstream_protocol, version, config),
test_quic_(GetParam().test_quic) {
// TODO(ggreenway): add tag extraction rules.
// Missing stat tag-extraction rule for stat
// 'sds.client_cert.grpc.sds_cluster.lyft.com.streams_closed_12' and stat_prefix
// 'sds_cluster.lyft.com'.
skip_tag_extraction_rule_check_ = true;
}

Network::Address::IpVersion ipVersion() const override { return GetParam().ip_version; }
Expand Down