Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirrors status的grafana iframe无法加载 #386

Open
zhsj opened this issue Mar 12, 2022 · 4 comments
Open

Mirrors status的grafana iframe无法加载 #386

zhsj opened this issue Mar 12, 2022 · 4 comments

Comments

@zhsj
Copy link
Contributor

zhsj commented Mar 12, 2022

chrome正在默认开启“Block third-party cookies”[1]。我发现我在用的 chromium dev 版本已经开启了。

从而造成 grafana 的 iframe 已经无法加载。

image

我建议去掉 iframe,而直接给一个到 grafana 的链接。或者和 tuna 一样,用 server side render 渲染成图片嵌在 status 页面。

[1] https://blog.google/products/chrome/updated-timeline-privacy-sandbox-milestones/

@taoky
Copy link
Member

taoky commented Mar 14, 2022

看起来是新版本 Chrome 加的限制,我用 Chrome stable + 阻止第三方 cookies 的环境没有复现,但是 Chrome canary 可以。预计最近改成渲染图片的方式。

@taoky
Copy link
Member

taoky commented Mar 20, 2022

@WhenMelancholy 配好了图片渲染,但是发现渲染容器似乎没有自带有效缓存(https://community.grafana.com/t/is-there-any-caching-for-rendered-panels/9384),每次刷新 VM 的 CPU 就全被 Chromium 吃了。

另相关 issue:

@gaoyifan
Copy link
Member

或许可以降低更新频率,比如10分钟更新一次,渲染结果(静态图片)放在 /srv/www

@zhsj
Copy link
Contributor Author

zhsj commented Mar 21, 2022

或许可以降低更新频率,比如10分钟更新一次,渲染结果(静态图片)放在 /srv/www

Tuna就是这样做的,mirrors上展示的图片不是直接从grafana拿的,而是事先渲染并保存好的图片。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants