monitoring - 将 Graphite 指标与 bosun 集成

标签 monitoring graphite bosun

我正在为 bosun 运行 Docker 容器。我想将 Graphite 指标与 bosun 集成。
为此需要进行哪些配置更改?

最佳答案

@kyle-brandt 的回答是可以的,我给了它一个赞,但它和 Bosun 文档并没有真正解释如何使用你没有托管的 Graphite,即hostedgraphite.com。使用文档和一些试验和错误我想通了。所以这里是这样的:

  • 制作 Graphite API key :http://docs.hostedgraphite.com/advanced/access-keys.html (您应该将 IP 地址列入白名单)。假设您有 https://www.hostedgraphite.com/deadbeef/431-831/graphite/ .
  • 创建 data.conf和:
    tsdbHost = localhost:4242 stateFile = /data/bosun.state graphiteHost = https://www.hostedgraphite.com/deadbeef/431-831/graphite/render
  • 启动 Docker 容器: docker run -d \ -p 80:8070 \ --name=bosun \ -v `pwd`/bosun.conf:/data/bosun.conf \ stackexchange/bosun 请注意,我没有进行 4242 端口映射,因为我只是从 hostsgraphite.com 获取数据,并且将 8070 映射到 80,这样在浏览器中转到 Bosun 时就不必指定端口。
  • 添加表达式:docs说用GraphiteQuery但这对我不起作用,graphite而是工作。例如:graphite("my.long.metric.name.for.some.method", "10m", "", "") .还有一个example graphite alertexamples文档的一部分(感谢@kyle-brandt)。
  • 关于monitoring - 将 Graphite 指标与 bosun 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31981042/

    相关文章:

    graphite - 当使用通配符绘制指标时,是否有办法强制对匹配指标进行排序?

    Bosun如何添加不同标签的系列?

    linux - 纳吉奥斯十一 : Provide Multiple Arguments to a Command

    rest - AWS 上有关 Web 服务运行状况的电子邮件警报

    Graphite,为同一个键发送多个值 : only one remains

    graph - 默认情况下使 Graphite UI 数据累积

    Bosun:如何通过取消分组来处理空数字集?

    go - Bosun 添加外部收集器

    process - 监控 Windows 上的进程正常运行时间

    monitoring - Java 9 Jigsaw 对 javaagent 的支持