If I am reading the documentation correctly as documented here 
- 
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
 
- any existing labels on a time series should not be over-written by the 
external label value if honor labels is set to true.

However in reality I am not seeing this as the case. Configuration snippet:

global: 
  scrape_interval: 15s 
  scrape_timeout: 10s 
  evaluation_interval: 30s 
  external_labels: 
    account: services 
    environment: infrastructure 
    prometheus: prometheus/prometheus prometheus_replica: 
    prometheus-prometheus-0 
    region: us-west-2

scrape_configs:
- job_name: kafka/node 
  honor_labels: true 
  honor_timestamps: true 
  scrape_interval: 15s 
  scrape_timeout: 10s 
  metrics_path: /metrics 
  scheme: http 
  follow_redirects: true 
  enable_http2: true 
  static_configs: 
   - targets: 
      - b-1.kafka.xxxxx.kafka.us-west-2.amazonaws.com:11002 
      - b-2.kafka.xxxxxxx.kafka.us-west-2.amazonaws.com:11002
      labels: 
        account: non-prod


When I query these metrics from the prometheus server directly the account 
name is non-prod. However when pulled through Thanos which aggregates 
across many clusters the value is set to services. 

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/619d589d-f469-42ed-8709-c8a424c6bbb5n%40googlegroups.com.

Reply via email to