Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-5590

Prometheus Remote write - Custom http headers per namespace

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Monitoring
    • None
    • False
    • None
    • False
    • Not Selected

      Prometheus Remote write - Custom http headers per namespace  

      Customers remote write endpoint is using http headers as a tennent ID

      so the CU would like to be able specify a custom header per namespace

      Currenly using the below config, the second header statement overwrites the first

       

      prometheus:
        remoteWrite:
        - headers:
            X-Scope-OrgID: "ocp-netscaler"
          name: "NetscalerCPX"
          url: "https://endpoint1.com:9009/api/v1/push"
          writeRelabelConfigs:
          - action: "keep"
            regex: "^(netscaler|netscaler-external)$"
            sourceLabels:
            - "namespace"
          - action: "replace"
            replacement: "XYZ"
            targetLabel: "tier"
        - headers:
            X-Scope-OrgID: "ocp-ns1"
          name: "Portworx"
          url: "https://endpoint1.com:9009/api/v1/push"
          writeRelabelConfigs:
          - action: "keep"
            regex: "^(portworx)$"
            sourceLabels:
            - "namespace"

       

       

            rh-ee-rfloren Roger Florén
            rhn-support-nigsmith Nigel Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: