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

Expose OAuth2 settings for remote write in the CMO configuration

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Activity

          People

            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

            Dates

              Created:
              Updated:
              Resolved: