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

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

相关推荐
三不原则1 天前
Prometheus 入门:快速搭建基础监控,监控 CPU / 内存指标
prometheus
oMcLin1 天前
如何打造Linux运维监控平台:Prometheus + Grafana实战与性能优化
linux·运维·prometheus
庸子3 天前
Kubernetes 可观测性实战:解构 Prometheus + Grafana 企业级监控架构
kubernetes·grafana·prometheus
goodlook01233 天前
监控平台搭建-钉钉消息通知-dingtalk-webhook篇(四)
grafana·prometheus
goodlook01233 天前
监控平台搭建-监控指标展示-Grafana篇(五)
java·算法·docker·grafana·prometheus
我爱学习好爱好爱3 天前
Prometheus监控栈 监控tomcat和消息队列
消息队列·tomcat·prometheus
一周困⁸天.3 天前
Prometheus
prometheus
ZYMFZ3 天前
Prometheus 监控平台详解与部署
prometheus
我爱学习好爱好爱4 天前
Prometheus监控栈 监控Springboot2+Vue3+redis项目
数据库·redis·prometheus
一枚正在学习的小白5 天前
prometheus监控对外服务
运维·prometheus