From 72ef78ef279a7dccec41ddcb4ddb7feaabdadc53 Mon Sep 17 00:00:00 2001 From: Hauser Zhi Date: Fri, 6 Nov 2026 00:56:48 +0800 Subject: [PATCH] fix(observability): target process PID datapoints Use the Collector datapoint context so process_pid is removed only from process metric datapoints. Keep the shared resource process.pid intact for sibling and lock metrics. Co-Authored-By: heihutu Co-Authored-By: zhi22915 --- .docker/observability/otel-collector-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.docker/observability/otel-collector-config.yaml b/.docker/observability/otel-collector-config.yaml index c9c2670f7..63d28814f 100644 --- a/.docker/observability/otel-collector-config.yaml +++ b/.docker/observability/otel-collector-config.yaml @@ -34,9 +34,9 @@ processors: # RustFS process metrics already expose process_pid as a metric label. # Remove only the duplicate datapoint label and keep the shared resource # process.pid available to sibling metrics and lock histograms. - - context: metric + - context: datapoint statements: - - delete_key(attributes, "process_pid") where IsMatch(name, "^rustfs_system_process_") + - delete_key(attributes, "process_pid") where IsMatch(metric.name, "^rustfs_system_process_") transform/logs: error_mode: ignore log_statements: