grafana-report在grafana7中遇到的问题

一、点击之后报错pdf报错:NO image renderer available/installed

查看grafana日志后,有以下报错:

Could not render image, no image renderer found/installed. For image rendering support please install the grafana-image-renderer plugin. Read more at https://grafana.com/docs/grafana/latest/administration/image_rendering/

所以,从官方插件库下载离线包grafana-image-renderer-3.5.0.linux-amd64,3.5.0以上版本需要8.0的grafana,所以我们选择最后一个版本。

解压到GRAFANA_HOME/data/plugins/插件文件夹中,比如我的文件路径为“/usr/local/grafana/data/plugins/”。

重启grafana-server。

二、再次点击生成pdf报错,查看后发现grafana日志

ror msg="Render request failed" logger=plugins.backend pluginId=grafana-image-renderer url="http://localhost:3000/d-solo/Bh5Q8Hpnz/_?from=now-24h&height=600&panelId=4&theme=light&to=now&var-hostname=192.168.113.100&width=1800&render=1" error="Error: Failed to launch the browser process!\n/usr/local/grafana/data/plugins/plugin-linux-x64-glibc/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n"
t=2023-05-05T10:55:35+0800 lvl=eror msg="Rendering failed." logger=context userId=0 orgId=1 uname= error="rendering failed: Error: Failed to launch the browser process!\n/usr/local/grafana/data/plugins/plugin-linux-x64-glibc/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n"

缺少lib库文件,然后查看ldd /usr/local/grafana/data/plugins/plugin-linux-x64-glibc/chrome-linux/chrome发现差了很多,配置好yum仓库后,根据not found的缺少的逐一安装。

我本地环境缺少以下:

yum install atk-1.28.0-2.el6.x86_64
yum install at-spi2-atk
yum install cups-libs
yum install libxkbcommon
yum install libXcomposite
yum install libXdamage
yum install libXrandr
yum install mesa-libgbm
yum install pango

三、再次点击pdf报错,grafana后台日志有报错日志:

/lib64/libnss3.so: version `NSS_3.22' not found 

升级nss

yum update nss 

正常生成。

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值