使用gitlab 对grafana用户做认证


 登录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做认证的按钮

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM