Uploaded image for project: 'OpenShift Monitoring'
  1. OpenShift Monitoring
  2. MON-2208

Expose OAuth2 settings for remote write in the CMO configuration

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • CMO

      Prometheus and Prometheus operator already support OAuth2 for remote write. This should be possible to configure the same in the CMO configuration:

      apiVersion: v1
      kind: ConfigMap
      metadata:
        name: cluster-monitoring-config
        namespace: openshift-monitoring
      data:
        config.yaml: |
          prometheusK8s:
            remoteWrite:
            - url: "https://remote-write.endpoint"
              oauth2:
                clientId:
                  secret:
                    name: oauth2-credentials
                    key: id
                clientSecret:
                  name: oauth2-credentials
                  key: secret
                tokenUrl: "https://example.com/oauth"
                scopes: []
                endpointParams: {} 

      DoD:

      • Ability to configure OAuth2 for remote write in the openshift-monitoring/cluster-monitoring-config configmap
      • Ability to configure OAuth2 for remote write in the openshift-user-workload-monitoring/user-workload-monitoring-config configmap

              hasun@redhat.com Haoyu Sun
              spasquie@redhat.com Simon Pasquier
              Junqi Zhao Junqi Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: