Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
The tests are failing in main after upgrade of the core dependency to 0.99 where the rpc/grpc metrics are not exported in the default (normal) telemetry level anymore. This change remove those metrics from the list of expected metrics by the integration tests
  • Loading branch information
dmitryax committed Apr 29, 2024
1 parent 460148c commit 5a3b92e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 3,424 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,6 @@ resource_metrics:
service.name: myjob
scope_metrics:
- metrics:
- name: otelcol_http_client_request_size
description: Measures the size of HTTP request messages.
type: DoubleMonotonicCumulativeSum
attributes:
http_method: GET
http_status_code: <ANY>
net_peer_name: <ANY>
net_peer_port: <ANY>
service_instance_id: <ANY>
service_name: otelcol
service_version: <VERSION_FROM_BUILD>
- name: otelcol_http_client_response_size
description: Measures the size of HTTP response messages.
type: DoubleMonotonicCumulativeSum
attributes:
rpc_grpc_status_code: "0"
rpc_method: Export
rpc_service: opentelemetry.proto.collector.metrics.v1.MetricsService
rpc_system: grpc
service_instance_id: <ANY>
service_name: otelcol
service_version: <VERSION_FROM_BUILD>
- name: otelcol_http_client_duration
description: Measures the duration of outbound HTTP requests.
type: Histogram
attributes:
receiver: lightprometheus/myjob
service_instance_id: <ANY>
service_name: otelcol
service_version: <VERSION_FROM_BUILD>
- name: otelcol_process_runtime_total_sys_memory_bytes
description: Total bytes of memory obtained from the OS (see 'go doc runtime.MemStats.Sys')
type: DoubleGauge
Expand Down Expand Up @@ -142,59 +112,6 @@ resource_metrics:
service_instance_id: <ANY>
service_name: otelcol
service_version: <VERSION_FROM_BUILD>
- attributes:
rpc_grpc_status_code: "0"
rpc_method: <ANY>
rpc_service: opentelemetry.proto.collector.metrics.v1.MetricsService
rpc_system: grpc
service_instance_id: <ANY>
service_name: otelcol
service_version: <VERSION_FROM_BUILD>
description: Measures the duration of inbound RPC.
name: otelcol_rpc_client_duration
type: Histogram
- attributes:
rpc_method: <ANY>
rpc_service: opentelemetry.proto.collector.metrics.v1.MetricsService
rpc_system: grpc
service_instance_id: <ANY>
service_name: otelcol
service_version: <VERSION_FROM_BUILD>
description: Measures size of RPC request messages (uncompressed).
name: otelcol_rpc_client_request_size
type: Histogram
- attributes:
rpc_grpc_status_code: "0"
rpc_method: <ANY>
rpc_service: opentelemetry.proto.collector.metrics.v1.MetricsService
rpc_system: grpc
service_instance_id: <ANY>
service_name: otelcol
service_version: <VERSION_FROM_BUILD>
description: Measures the number of messages received per RPC. Should be 1 for all non-streaming RPCs.
name: otelcol_rpc_client_requests_per_rpc
type: Histogram
- attributes:
rpc_method: <ANY>
rpc_service: opentelemetry.proto.collector.metrics.v1.MetricsService
rpc_system: grpc
service_instance_id: <ANY>
service_name: otelcol
service_version: <VERSION_FROM_BUILD>
description: Measures size of RPC response messages (uncompressed).
name: otelcol_rpc_client_response_size
type: Histogram
- attributes:
rpc_grpc_status_code: "0"
rpc_method: <ANY>
rpc_service: opentelemetry.proto.collector.metrics.v1.MetricsService
rpc_system: grpc
service_instance_id: <ANY>
service_name: otelcol
service_version: <VERSION_FROM_BUILD>
description: Measures the number of messages received per RPC. Should be 1 for all non-streaming RPCs.
name: otelcol_rpc_client_responses_per_rpc
type: Histogram
- attributes:
service_instance_id: <ANY>
service_name: otelcol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,6 @@ func TestPrometheusExporterProvidesOTelInternalMetrics(t *testing.T) {
"otelcol_process_runtime_total_sys_memory_bytes",
"otelcol_process_uptime",
"otelcol_receiver_accepted_metric_points",
"otelcol_rpc_client_duration",
"otelcol_rpc_client_duration_bucket",
"otelcol_rpc_client_duration_count",
"otelcol_rpc_client_request_size",
"otelcol_rpc_client_request_size_bucket",
"otelcol_rpc_client_request_size_count",
"otelcol_rpc_client_requests_per_rpc",
"otelcol_rpc_client_requests_per_rpc_bucket",
"otelcol_rpc_client_requests_per_rpc_count",
"otelcol_rpc_client_response_size",
"otelcol_rpc_client_response_size_bucket",
"otelcol_rpc_client_response_size_count",
"otelcol_rpc_client_responses_per_rpc",
"otelcol_rpc_client_responses_per_rpc_bucket",
"otelcol_rpc_client_responses_per_rpc_count",
))
}

Expand Down
Loading

0 comments on commit 5a3b92e

Please sign in to comment.