diff --git a/otel-integration/k8s-helm/e2e-test/expected_test.go b/otel-integration/k8s-helm/e2e-test/expected_test.go index eb788435..21078ad4 100644 --- a/otel-integration/k8s-helm/e2e-test/expected_test.go +++ b/otel-integration/k8s-helm/e2e-test/expected_test.go @@ -99,108 +99,109 @@ var expectedResourceAttributesPrometheusreceiver = map[string]string{ } var expectedMetrics map[string]bool = map[string]bool{ - "system.network.connections": false, - "system.network.dropped": false, - "system.network.errors": false, - "system.network.io": false, - "system.network.packets": false, - "system.cpu.time": false, - "system.filesystem.inodes.usage": false, - "system.filesystem.usage": false, - "system.memory.usage": false, - "system.memory.utilization": false, - "system.cpu.load_average.15m": false, - "system.cpu.load_average.1m": false, - "system.cpu.load_average.5m": false, - "system.cpu.utilization": false, - "system.disk.io": false, - "system.disk.io_time": false, - "system.disk.merged": false, - "system.disk.operation_time": false, - "system.disk.operations": false, - "system.disk.pending_operations": false, - "system.disk.weighted_io_time": false, - "k8s.node.cpu.time": false, - "k8s.node.cpu.utilization": false, - "k8s.node.filesystem.available": false, - "k8s.node.filesystem.capacity": false, - "k8s.node.filesystem.usage": false, - "k8s.node.memory.available": false, - "k8s.node.memory.major_page_faults": false, - "k8s.node.memory.page_faults": false, - "k8s.node.memory.rss": false, - "k8s.node.memory.usage": false, - "k8s.node.memory.working_set": false, - "k8s.node.network.errors": false, - "k8s.node.network.io": false, - "k8s.pod.cpu.time": false, - "k8s.pod.cpu.utilization": false, - "k8s.pod.filesystem.available": false, - "k8s.pod.filesystem.capacity": false, - "k8s.pod.filesystem.usage": false, - "k8s.pod.memory.available": false, - "k8s.pod.memory.major_page_faults": false, - "k8s.pod.memory.page_faults": false, - "k8s.pod.memory.rss": false, - "k8s.pod.memory.usage": false, - "k8s.pod.memory.working_set": false, - "k8s.pod.network.errors": false, - "k8s.pod.network.io": false, - "container.cpu.time": false, - "container.cpu.utilization": false, - "container.filesystem.available": false, - "container.filesystem.capacity": false, - "container.filesystem.usage": false, - "container.memory.available": false, - "container.memory.major_page_faults": false, - "container.memory.page_faults": false, - "container.memory.rss": false, - "container.memory.usage": false, - "container.memory.working_set": false, - "otelcol_process_memory_rss": false, - "otelcol_receiver_accepted_metric_points": false, - "otelcol_exporter_queue_capacity": false, - "otelcol_otelsvc_k8s_ip_lookup_miss": false, - "otelcol_process_runtime_total_alloc_bytes": false, - "otelcol_otelsvc_k8s_pod_added": false, - "otelcol_process_runtime_total_sys_memory_bytes": false, - "otelcol_process_uptime": false, - "otelcol_processor_accepted_metric_points": false, - "otelcol_processor_batch_metadata_cardinality": false, - "otelcol_receiver_refused_log_records": false, - "otelcol_receiver_refused_metric_points": false, - "otelcol_exporter_queue_size": false, - "otelcol_exporter_send_failed_metric_points": false, - "otelcol_exporter_sent_metric_points": false, - "otelcol_exporter_sent_log_records": false, - "otelcol_otelsvc_k8s_pod_table_size": false, - "otelcol_otelsvc_k8s_pod_updated": false, - "otelcol_scraper_errored_metric_points": false, - "otelcol_process_cpu_seconds": false, - "otelcol_process_runtime_heap_alloc_bytes": false, - "otelcol_scraper_scraped_metric_points": false, - "otelcol_receiver_accepted_log_records": false, - "otelcol_processor_batch_timeout_trigger_send": false, - "otelcol_exporter_send_failed_log_records": false, - "otelcol_processor_batch_batch_send_size": false, - "otelcol_fileconsumer_open_files": false, - "otelcol_fileconsumer_reading_files": false, - "otelcol_processor_outgoing_items": false, - "otelcol_processor_incoming_items": false, - "otelcol_processor_accepted_spans": false, - "otelcol_receiver_accepted_spans": false, - "otelcol_receiver_refused_spans": false, - "otelcol_exporter_sent_spans": false, - "scrape_samples_scraped": false, - "scrape_samples_post_metric_relabeling": false, - "scrape_series_added": false, - "scrape_duration_seconds": false, - "up": false, - "process.cpu.time": false, - "process.cpu.utilization": false, - "process.disk.io": false, - "process.memory.usage": false, - "process.memory.virtual": false, - "process.memory.utilization": false, - "process.threads": false, + "system.network.connections": false, + "system.network.dropped": false, + "system.network.errors": false, + "system.network.io": false, + "system.network.packets": false, + "system.cpu.time": false, + "system.filesystem.inodes.usage": false, + "system.filesystem.usage": false, + "system.memory.usage": false, + "system.memory.utilization": false, + "system.cpu.load_average.15m": false, + "system.cpu.load_average.1m": false, + "system.cpu.load_average.5m": false, + "system.cpu.utilization": false, + "system.disk.io": false, + "system.disk.io_time": false, + "system.disk.merged": false, + "system.disk.operation_time": false, + "system.disk.operations": false, + "system.disk.pending_operations": false, + "system.disk.weighted_io_time": false, + "k8s.node.cpu.time": false, + "k8s.node.cpu.utilization": false, + "k8s.node.filesystem.available": false, + "k8s.node.filesystem.capacity": false, + "k8s.node.filesystem.usage": false, + "k8s.node.memory.available": false, + "k8s.node.memory.major_page_faults": false, + "k8s.node.memory.page_faults": false, + "k8s.node.memory.rss": false, + "k8s.node.memory.usage": false, + "k8s.node.memory.working_set": false, + "k8s.node.network.errors": false, + "k8s.node.network.io": false, + "k8s.pod.cpu.time": false, + "k8s.pod.cpu.utilization": false, + "k8s.pod.filesystem.available": false, + "k8s.pod.filesystem.capacity": false, + "k8s.pod.filesystem.usage": false, + "k8s.pod.memory.available": false, + "k8s.pod.memory.major_page_faults": false, + "k8s.pod.memory.page_faults": false, + "k8s.pod.memory.rss": false, + "k8s.pod.memory.usage": false, + "k8s.pod.memory.working_set": false, + "k8s.pod.network.errors": false, + "k8s.pod.network.io": false, + "container.cpu.time": false, + "container.cpu.utilization": false, + "container.filesystem.available": false, + "container.filesystem.capacity": false, + "container.filesystem.usage": false, + "container.memory.available": false, + "container.memory.major_page_faults": false, + "container.memory.page_faults": false, + "container.memory.rss": false, + "container.memory.usage": false, + "container.memory.working_set": false, + "otelcol_process_memory_rss": false, + "otelcol_receiver_accepted_metric_points": false, + "otelcol_exporter_queue_capacity": false, + "otelcol_otelsvc_k8s_ip_lookup_miss": false, + "otelcol_process_runtime_total_alloc_bytes": false, + "otelcol_otelsvc_k8s_pod_added": false, + "otelcol_process_runtime_total_sys_memory_bytes": false, + "otelcol_process_uptime": false, + "otelcol_processor_accepted_metric_points": false, + "otelcol_processor_batch_metadata_cardinality": false, + "otelcol_receiver_refused_log_records": false, + "otelcol_receiver_refused_metric_points": false, + "otelcol_exporter_queue_size": false, + "otelcol_exporter_send_failed_metric_points": false, + "otelcol_exporter_sent_metric_points": false, + "otelcol_exporter_sent_log_records": false, + "otelcol_otelsvc_k8s_pod_table_size": false, + "otelcol_otelsvc_k8s_pod_updated": false, + "otelcol_scraper_errored_metric_points": false, + "otelcol_process_cpu_seconds": false, + "otelcol_process_runtime_heap_alloc_bytes": false, + "otelcol_scraper_scraped_metric_points": false, + "otelcol_receiver_accepted_log_records": false, + "otelcol_processor_batch_timeout_trigger_send": false, + "otelcol_processor_batch_batch_size_trigger_send": false, + "otelcol_exporter_send_failed_log_records": false, + "otelcol_processor_batch_batch_send_size": false, + "otelcol_fileconsumer_open_files": false, + "otelcol_fileconsumer_reading_files": false, + "otelcol_processor_outgoing_items": false, + "otelcol_processor_incoming_items": false, + "otelcol_processor_accepted_spans": false, + "otelcol_receiver_accepted_spans": false, + "otelcol_receiver_refused_spans": false, + "otelcol_exporter_sent_spans": false, + "scrape_samples_scraped": false, + "scrape_samples_post_metric_relabeling": false, + "scrape_series_added": false, + "scrape_duration_seconds": false, + "up": false, + "process.cpu.time": false, + "process.cpu.utilization": false, + "process.disk.io": false, + "process.memory.usage": false, + "process.memory.virtual": false, + "process.memory.utilization": false, + "process.threads": false, } diff --git a/otel-integration/k8s-helm/e2e-test/main_test.go b/otel-integration/k8s-helm/e2e-test/main_test.go index 9fcb686f..1601e0e7 100644 --- a/otel-integration/k8s-helm/e2e-test/main_test.go +++ b/otel-integration/k8s-helm/e2e-test/main_test.go @@ -5,6 +5,7 @@ package e2e import ( "context" + "fmt" "strings" "testing" "time" @@ -111,6 +112,11 @@ func checkScopeMetrics(t *testing.T, rmetrics pmetric.ResourceMetrics) error { checkResourceAttributes(t, rmetrics.Resource().Attributes(), scopeNameTrimmed[4]) metrics := scope.Metrics() + + for j := 0; j < metrics.Len(); j++ { + metric := metrics.At(j) + fmt.Printf("full current metrics: %v\n", metric.Name()) + } for j := 0; j < metrics.Len(); j++ { metric := metrics.At(j)