登录gitlab服务页面创建应用AK
修改grafana的配置文件 grafana.ini
#################################### GitLab Auth ######################### [auth.gitlab] enabled = true allow_sign_up = true client_id = ab69a5a4a95c6dd425fe9021e241fd23b5542ed361cda7543c1359fe3368e21f client_secret = 02c2d534fbb3eb64d3c97350a61cc8c5938904bf1268e380983e56f1c89ed99b scopes = api auth_url = https://git.wp.info/oauth/authorize # token_url = https://git.wp.info/oauth/token api_url = https://git.wp.info.com/api/v4 ;allowed_domains = ;allowed_groups =
重新启动grafana-server服务,登录页面中出现调转到gitlab做认证的按钮