Hello,

I am trying to add labels to metrics fetched from Confluent Cloud.
We are monitoring some 35 Kafka clusters.

scrape_configs:
  - job_name: Confluent Cloud 
    scrape_interval: 1m
    scrape_timeout: 1m 
    honor_timestamps: true
    static_configs: 
      - targets: - api.telemetry.confluent.cloud 
    scheme: https
    basic_auth: 
      username: <Cloud API Key> 
      password: <Cloud API Secret> 
    metrics_path: /v2/metrics/cloud/export 
    params: 
        "resource.kafka.id": 
           - lkc-1 
           - lkc-2
           - lkc-3
           - lkc-4 
           - lkc-5
           - lkc-6
           - lkc-etc etc


Each lkc-xxxx represent a cluster which belongs to a department.
I would like to add a departmentID to the metrics belonging to to each 
cluster.
For example lkc-1 and lkc-5 would beong to department "analytics"

How would i go about adding labels to the metrics?

Best regards
Christian Oelsner

-- 
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/aab95aae-25b8-4a63-b1b5-69a6af6968cdn%40googlegroups.com.

Reply via email to