dosbat工程师知识库
文章

Grafana设置免登陆访问

系统运维2 分钟阅读

Grafana设置免密查看监控

报错场景

需求场景

更方便查看Grafana监控数据,设置免登陆访问。

解决方法

修改Grafana配置文件

在Grafana的配置文件/etc/grafana/grafana.ini 中,找到[auth.anonymous]配置块,将其下的匿名访问控制enabled设置为true,组织权限设置为Viewer。

INI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(Viewer:只读模式,Editor:可编辑模式,Admin:管理员模式)

[auth.anonymous]

# enable anonymous access

enabled = true

# specify organization name that should be used for unauthenticated users

org_name = Main Org.

# specify role for unauthenticated users

org_role = Viewer

重启Grafana服务

SHELL
1
systemctl restart grafana-server

验证测试

访问grafana

Grafana设置免登陆访问

https://dosbat.com/l2afjj7m/
作者
0x01
发布于
更新于

搜索

本文目录