grafana限制folder普通用户访问

1、选择需要限制普通用户访问的folder,在右上角点击编辑permission

2、将Editor和Viewer都叉掉

3、将dashboard下的资源重新整理

我们需要将直接放在dashboard下的资源放到新的folder,然后再给folder permissions处理

迁移报错

bash 复制代码
Cannot save provisioned dashboard

需要将garafana的配置文件下的/etc/grafana/provisioning/dashboards/下的*.yaml文件进行更改配置,例如 sc-dashboardproviders.yaml

将allowUiUpdates: false改成allowUiUpdates: true

如下

yaml 复制代码
apiVersion: 1
providers:
  - name: 'sidecarProvider'
    orgId: 1
    folder: ''
    folderUid: ''
    type: file
    disableDeletion: false
    allowUiUpdates: true
    updateIntervalSeconds: 30
    options:
      foldersFromFilesStructure: false
      path: /tmp/dashboards

然后重启grafana

4、创建普通用户

5、用户授权

定位到Organization--> Change role

弹出选择框,选择view、Editor权限则之前限制的folder都没法操作

相关推荐
JasonChen@6661 天前
Prometheus 黑盒监控入门:Blackbox Exporter 配置全解析(20)
prometheus·blackbox
JasonChen@6663 天前
Prometheus 存储实战:本地 TSDB 配置与 VictoriaMetrics 远端存储对接(18)
grafana·prometheus·victoria
JasonChen@6664 天前
Grafana 权限管理实战:用户授权与 Team 团队管理(17)
grafana·prometheus
JasonChen@6665 天前
pushgateway组件实现自定义监控数据采集(16)
grafana·prometheus·pushgateway
W_son7 天前
14.Grafana 监控看板实战:新建、调优、变量配置全流程
grafana·prometheus
真上帝的左手8 天前
2. 编程语言-Java-Spring Boot-集成SkyWalking + Prometheus 性能工程闭环实战
java·spring boot·性能优化·架构·系统架构·prometheus·skywalking
BullSmall9 天前
Prometheus监控栈安全加固全攻略
安全·grafana·prometheus
JasonChen@66611 天前
prometheus静态监控static_config案例四(10)
grafana·prometheus
JasonChen@66612 天前
prometheus静态监控static_config案例二(8)
grafana·prometheus
JasonChen@66616 天前
prometheus静态监控static_configs案例一(7)
prometheus