【问题标题】:For datadog how to check posgresql up and running (on Linuxredhat server)对于 datadog 如何检查 postgresql 启动和运行(在 Linux Redhat 服务器上)
【发布时间】:2018-11-09 13:27:03
【问题描述】:

我们不愿意使用 DD 代理。我们如何知道 PostgresSQL 是否在我的 Redhat linux 服务器上启动并运行,以便在 postgres 关闭时创建警报。

【问题讨论】:

  • "我们不愿意使用 DD 代理。"您能否详细说明原因,所以人们不会提出类似问题的解决方案?你考虑过像 Nagios、Monit 等吗?
  • 我们的 DD 代理许可证有限

标签: postgresql datadog


【解决方案1】:

只要运行代理的主机具有访问权限,您就可以从其他主机监控数据库。所以对于配置文件中的这一部分:

instances:
  - host: localhost
    port: 5432

https://github.com/DataDog/integrations-core/blob/master/postgres/datadog_checks/postgres/data/conf.yaml.example#L4

您可以设置 IP,而不是使用 localhost。这将允许您在不添加新代理的情况下监控您的数据库。然后,您只需按照正常的postrgres setup 操作即可访问所有指标和service checks,包括postgres.can_connect,这可能是您关心的。

【讨论】:

    猜你喜欢
    • 2015-08-27
    • 2016-02-16
    • 1970-01-01
    • 2015-06-11
    • 1970-01-01
    • 2016-10-11
    • 2016-08-18
    • 2019-08-15
    • 1970-01-01
    相关资源
    最近更新 更多