「Grafana」- 常见错误汇总

问题排查(⇒ Setup/Enable diagnostics to troubleshoot Grafana)

Enable diagnostics to troubleshoot Grafana | Grafana documentation

通过 Grafana 的 Trace 和 Profiling 对其进行分析和排查;

Panel plugin not found: stat

Grafana panel plugin “stat” not found · Issue #233 · unifi-poller/unifi-poller

问题描述:在 Dashboard 中,某些 View 显示 Panel plugin not found: stat 消息。

解决方案:Either upgrade to Grafana 6.6+ or change the stat panel to singlestat.

在 Grafana 中,如果长时间未操作,将自动退出登录

Grafana Frontend Session Timeout – Grafana – Grafana Labs Community Forums

增加登录状态保持时间:

  auth:
    login_maximum_inactive_lifetime_duration: 2M
    login_maximum_lifetime_duration: 2M
    token_rotation_interval_minutes: 1000

Cannot read properties of undefined

当选择特定面板时,产生如下错误:

Templating [xxxxxxx]
Error updating options: Cannot read properties of undefined (reading 'map')

原因分析

针对我们的场景,变量 Variables 是关联的,在切换 Variables 后,相关的其他 Variables 没有对应值,所以产生该错误。

解决方案

修改 Variables 参数,仅选择具有特定标签的值,即过滤掉无用值。