﻿# Scrape label conflicts: distinguish exported model labels from target labels

A practical investigation of scrape label conflicts: distinguish exported model labels from target labels, with explicit observations, control cases and evidence limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-observe-prometheus-scrape-label-conflicts/
Language: en

## The diagnostic situation

A target configuration attaches a model label for dashboard convenience, while the serving exporter reports a label with the same name. After scraping, the query sees the target value and the source value under an exported label name. Investigators believe the server reported the wrong model. The discrepancy may instead be a configured conflict-resolution rule at ingestion.

## Why the observation changes meaning

Prometheus honor_labels controls conflicts between scraped labels and server-side target labels. With the documented default behavior, conflicting source labels are renamed with an exported_ prefix and server-side labels are attached. The alternate setting preserves source values for conflicts. This is a collection representation rule, not a model-routing decision or proof that a source label is trustworthy.

## Define the instrumentation contract

Define ownership for each serving and collection label. Keep scrape target identity distinct from selected model release identity. Document effective honor_labels, relabeling stages and downstream queries together. Avoid using one generic model field for incompatible meanings such as endpoint catalog name and actual handled revision. Prefer explicit namespaces where the collection system and exporter describe different entities.

## A bounded verification procedure

Prepare a test exporter with a safe source label and a target configuration carrying a different value for the same key. Inspect both exporter output and stored samples under the intended setting. Change only the conflict policy in a controlled fixture, then compare labels and dashboard filters. Include a nonconflicting label as a control for unrelated transformation failures.

## Evidence required for acceptance

Acceptance evidence includes raw exposition, effective target configuration, resulting label sets and exact query selectors. Show which value came from the exporter and which from service discovery or manual target configuration. Verify that alerts still select the intended population after renaming. A query returning no series can reflect an incorrect selector rather than absence of serving work or a successful rollout.

## Failure cases and limits

Enabling honor_labels globally can change other trust and grouping assumptions; it is not a universal fix for model identity. A metric label still needs a verified relationship to actual artifacts if that claim matters. This protocol diagnoses scrape conflicts in the tested path and does not establish model correctness, cross-cluster uniqueness or the integrity of labels supplied by an untrusted exporter.

## Primary references and related reading

Inspect effective honor_labels behavior before treating a surviving label as the model selected by the server. [Prometheus scrape configuration](https://prometheus.io/docs/prometheus/latest/configuration/configuration/); [Prometheus jobs and instances](https://prometheus.io/docs/concepts/jobs_instances/).

The proposed investigation of prometheus scrape label conflicts is not an executed deployment benchmark. Related reading: [Prometheus relabel_configs vs metric_relabel_configs: where to filter data](/journal/prometheus-target-vs-metric-relabeling/); [Model aliases and revisions: provider response identity](/journal/provider-model-alias-revision-identity/).
