Grafana OAuth 登录

  • Choerodon平台版本:0.23.0

  • 运行环境:自主搭建

  • 问题描述:

    想 Grafana 通过 Choerodon 的 OAuth 登录,请问如何配置?

首先是猪齿鱼中添加一个 oauth 客户端。其次在 prometheus-operator 中添加下面的配置

grafana:
    auth.generic_oauth:
      name: Choerodon
      enabled: true
      allow_sign_up: true
      client_id: grafana
      client_secret: grafana
      scopes: default
      auth_url: http://api.example.choerodon.io/oauth/oauth/authorize
      token_url: http://api..example.choerodon.io/oauth/oauth/token
      api_url: http://api..example.choerodon.io/iam/choerodon/v1/users/self

配置好了,但 Viewer 查不了任何面板?