【问题标题】:Postgresql Monitoring using Grafana使用 Grafana 进行 Postgresql 监控
【发布时间】:2019-09-03 11:14:54
【问题描述】:

我是 Grafana 的新手。我们已经设置了 grafana,现在我们想使用它来监控我们的 postgresql 数据库。

我们已经创建了 postgresql 数据源,并提供了我们 psql 数据库机器和连接的所有必需详细信息,在 Grafana 中显示 ok。现在我们已经导入了 ID 为 9948 的 Grafana 仪表板,仪表板已导入,但没有显示任何统计信息。

我们收到以下错误:

Error pq: relation "collectd" does not exist
Error Templating init failed
pq: relation "identifiers" does not exist

我们在 DB 机器上也使用 apt install collectd 安装了 collectd,但在 collectd.conf 文件中没有找到任何可配置选项。

你能帮帮我吗?

谢谢。

【问题讨论】:

  • 你可以使用pgwatch2
  • @LaurenzAlbe,感谢您的回复。我们对此有所了解。但是我们还需要监控一些其他的东西,比如系统、应用程序等。所以我们希望所有人都使用 Grafana。

标签: postgresql datasource grafana


【解决方案1】:

您需要安装 timescaleDB 并创建 PG 扩展。

\c 数据库

如果不存在则创建扩展 timescaledb CASCADE;

完成后,按照以下 git 项目的说明进行操作。

https://github.com/petercelentanojr/timescaledb_collectd_resources/blob/master/collectd_timescaledb_schema/collectd_timescaledb_bootstrap.sql

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-03-25
    • 2020-09-08
    • 1970-01-01
    • 1970-01-01
    • 2023-03-11
    • 1970-01-01
    • 2019-07-09
    相关资源
    最近更新 更多