【问题标题】:Graphite docker image does not accept messages from Spring bootGraphite docker 镜像不接受来自 Spring Boot 的消息
【发布时间】:2016-06-24 09:11:53
【问题描述】:

我尝试在我的 PC 上运行的 Graphite Docker 映像存在问题。容器正常启动,但我无法发送任何消息以使其显示在“指标”选项卡下。卷安装也无济于事。默认 storage-schema.conf 应该接受所有消息。
用于测试的消息是这样的:

echo "test.bash.stats 42 date +%s" | nc 本地主机 2003。


此外,大多数时间(但不总是)在发送上述消息“400 Bad request”错误后都会得到响应。
以下图片已经过测试:
https://hub.docker.com/r/hopsoft/graphite-statsd/
https://hub.docker.com/r/kamon/grafana_graphite/
有什么想法吗,我缺少要额外配置的东西?

【问题讨论】:

  • 问题很简单。不必深入研究 - 只需使用正确的端口,而不是 Graphite GUI 端口...

标签: spring docker spring-boot graphite statsd


【解决方案1】:

尽管有上述解释的问题,但仍然存在与 Spring Boot Metrics 通过 StatsD 导出到 Graphite 相关的问题。
正如此处http://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-metrics.html49.8.3 节中所述示例:导出到 Statsd 只需要添加 com.timgroup:java-statsd-client 作为依赖项并添加属性 spring.metrics .export.statsd.host
不幸的是,没有任何东西发送到 Graphite(在本地 PC https://github.com/kamon-io/docker-grafana-graphite 上运行的 docker 映像)。我已经使用 Wireshark (udp.port=8125) 检查了网络。是否有一些东西需要添加到带有指标的 Spring Boot 项目中?

【讨论】:

    猜你喜欢
    • 2018-06-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-12
    • 1970-01-01
    • 2020-06-19
    相关资源
    最近更新 更多