【问题标题】:visualize metrics from a postgres db on grafana在 grafana 上可视化来自 postgres db 的指标
【发布时间】:2017-08-30 15:02:10
【问题描述】:

我想在 grafana 上可视化我的 postgres 数据库中的一些指标。 我安装了支持 postgres 数据源的 grafana 修改版本,现在我可以输入我的 postgres 数据库作为我的指标的数据源。

问题是,当我进入面板以获取指标图表并选择要绘制的列和表...时,我收到此错误:

"message: "Data error: pq: relation "\public.table_name\" does not exist, Query: SELECT round(extract(epoch from ts::timestamptz)/20)*20*1000 AS time_msec, count(column_name.value) FROM public.table_name WHERE ts> (now() - '6h'::interval) GROUP BY round(extract(epoch from ts::timestamptz)/20)*20*1000"

有人知道错误来自哪里吗?

【问题讨论】:

    标签: postgresql grafana


    【解决方案1】:

    已解决:

    我必须自己手动编写table name,而不是选择Grafana 提出的那个。

    【讨论】:

      猜你喜欢
      • 2018-05-18
      • 2021-09-25
      • 1970-01-01
      • 1970-01-01
      • 2015-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多