﻿# Private metric labels can be added only at the remote-write boundary

A practical investigation of private metric labels can be added only at the remote-write boundary, with explicit observations, control cases and evidence limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-sovereign-prometheus-external-label-outbound-private-dimensions/
Language: en

## The deployment scenario

A private inference pool checks local metric samples for tenant-related labels before allowing export to an external dashboard. The local view contains only approved resource dimensions, yet a global external label adds an internal project identifier during external communication. The review’s observation point is too early. The question is what metadata the outbound series carries after all export-stage transformations, not simply what a local query displays.

## The data and control mechanism

Prometheus configures external_labels for communication with external systems. The documentation states that they are added when the series does not already contain that label, and write relabeling follows their application. Remote-write series carry label names and values as part of their identity. A local ingestion or query observation therefore cannot automatically establish the final label set that a remote recipient receives.

## Define the intended boundary

Define an outbound label contract, including global metadata and environment-derived configuration values. Distinguish a deliberate project identifier from a prohibited tenant or document dimension. Inspect conflicting existing label names as well, because external defaults do not overwrite them. A proposed privacy review must examine the final series representation without assuming that a dashboard aggregation removes fields from the underlying export or that one scrubbed metric represents every metric family.

## A step-by-step review

First review the effective global and remote-write configuration. Use synthetic series with a missing external-label name and with an existing value for that name. Observe the transformed payload at a controlled receiver, comparing it with local samples. Exercise the intended write-stage rule after metadata addition. The fixture should reveal an outbound-only marker without sending real tenant identifiers to an external service merely to prove that the path exists.

## Evidence required for acceptance

Acceptance evidence retains local and outbound label sets, configuration revision and the receiver observation. Include a negative control where an external label introduces a forbidden synthetic marker. Confirm that required series remain distinguishable after the chosen transformation, rather than claiming a valid aggregate when removing a label collapses identities. A local query that lacks the marker is useful as a comparison, but cannot replace observing the stage that actually communicates externally.

## Failure cases and limits

The protocol does not establish deletion of previously exported history or control other telemetry channels. Remote protocol versions and recipient behavior require their own compatibility checks. Metadata can be sensitive without containing raw prompts, but that sensitivity is determined by the deployment’s declared contract. The bounded result is an evidence-backed outbound label inventory, without treating clean local metrics or a simplified dashboard as proof that no private dimensions were transmitted.

## Primary references and related reading

Inspect external_labels and the transmitted series, because local metric views may not show metadata added for external communication. [Prometheus external labels and remote-write transformation order](https://prometheus.io/docs/prometheus/latest/configuration/configuration/); [Prometheus remote-write labelled series payload](https://prometheus.io/docs/specs/prw/remote_write_spec/).

The proposed investigation of prometheus external label outbound private dimensions is a proposed technical boundary review; no production workload or private data was used. Related reading: [Prometheus relabel_configs vs metric_relabel_configs: where to filter data](/journal/prometheus-target-vs-metric-relabeling/); [Prometheus remote_write falls behind: WAL, queues and shards](/journal/prometheus-remote-write-wal-backlog/).
