graphite - 从 Icinga2 读取 Graphite 事件

标签 graphite icinga icinga2 graphite-carbon

在我们的实验室中,我们目前正在使用两个系统来远程监控敏感数量等:

  • Icinga2 ,作为一个监控系统,它从称为 Watchdog 的日志记录 DAQ 中读取数据,并在测量值超过用户定义的阈值时发出警报;
  • Graphite将来自 Carbon 的数据(通过网络或其他方式(保存在磁盘上)接收并存储)绘制到网页上,以便远程访问。

  • 到目前为止,我们只能拥有 Icinga2 无论它在 Graphite 上收到什么,我们都可以看到它。

    是否有可能拥有 Icinga2 阅读 来自 Graphite ?还有其他程序直接将内容写入 Graphite,并且无法通过 DAQ 看门狗从 Icinga 读取(缺少端口)。理想情况下,我们希望在到达 Graphite 的任何东西上创建警报(Icinga2 可以做到)。

    最佳答案

    有几个 check_graphite 插件实现允许您查询 Graphite web 提供的 API。不幸的是,我在这里没有推荐,请尝试最适合您需求的 Google 点击。

    它们都连接到 Graphite Web API:

    http://graphite.readthedocs.io/en/latest/render_api.html

    Graphite 本身已经非常强大,您可以让它聚合数据点并减少插件中的逻辑,以仅评估给定的阈值并返回输出和状态。

    如果您使用的是 Grafana,您还可以查看他们的警报和通知条件,并让例如网络 Hook 将检查结果传回 Icinga 2 的 REST API。

    http://docs.grafana.org/alerting/rules/
    http://docs.grafana.org/alerting/notifications/

    关于graphite - 从 Icinga2 读取 Graphite 事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46160728/

    相关文章:

    monitoring - 使用 OR 运算符的 Graphite 度量搜索

    linux - icinga2 check_cluster 插件及其在 2.3+ 中的实现

    centos - 未找到 Nagios JMX 插件 check_jmx 命令

    python - 在 Bash 脚本中传递参数的 CURL API

    ssl - Logstash 的 Icinga 输出插件导致 OpenSSL::SSL::SSLError:certificate verify failed 问题

    ubuntu - Icinga2 正在监控同一个主机

    export-to-csv - Statsd & Graphite - 以 CSV 格式获取数据

    graphite - 比较 t 和 t-7 天的值

    graphite - 在grafana中将多个系列相互划分

    centos - 无法在 CentOS 8 上安装 Icinga Web 2