From 6ed7bb7159698163e81d1edef2ff7d65dc7900c0 Mon Sep 17 00:00:00 2001 From: pridhi Date: Sun, 8 Jan 2023 12:19:47 +0530 Subject: [PATCH] Removed labels from system-metrics --- .../system_metrics/__init__.py | 29 +------------------ 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py b/instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py index 413c61ba8f..b689660600 100644 --- a/instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py @@ -119,38 +119,11 @@ def __init__( self._config = _DEFAULT_CONFIG else: self._config = config - self._labels = {} if labels is None else labels self._meter = None self._python_implementation = python_implementation().lower() self._proc = psutil.Process(os.getpid()) - - self._system_cpu_time_labels = self._labels.copy() - self._system_cpu_utilization_labels = self._labels.copy() - - self._system_memory_usage_labels = self._labels.copy() - self._system_memory_utilization_labels = self._labels.copy() - - self._system_swap_usage_labels = self._labels.copy() - self._system_swap_utilization_labels = self._labels.copy() - - self._system_disk_io_labels = self._labels.copy() - self._system_disk_operations_labels = self._labels.copy() - self._system_disk_time_labels = self._labels.copy() - self._system_disk_merged_labels = self._labels.copy() - - self._system_network_dropped_packets_labels = self._labels.copy() - self._system_network_packets_labels = self._labels.copy() - self._system_network_errors_labels = self._labels.copy() - self._system_network_io_labels = self._labels.copy() - self._system_network_connections_labels = self._labels.copy() - - self._system_thread_count_labels = self._labels.copy() - - self._runtime_memory_labels = self._labels.copy() - self._runtime_cpu_time_labels = self._labels.copy() - self._runtime_gc_count_labels = self._labels.copy() - + def instrumentation_dependencies(self) -> Collection[str]: return _instruments