SpringBoot/Jersey和Splunk/OTel收集器之间的冲突

问题描述 投票:0回答:1

我的组织正在部署一个使用 Spring Boot 和 Jersey 的 API。这是必需的,因为需要设置一些端点并使用 Jersey,但我们通常的基础设施支持基于 Spring Boot 的 API。

在本地集群中,我们能够很好地运行 pod。但是,当部署到我们的 K8s 集群时,就绪/活性探测失败,并且 pod 进入了 CrashLoopBackoff 状态。使用 Spring Actuator 设置活性/就绪探针。

但是,当我们禁用将指标发送到 Splunk 的 OTEL 代理 时,我们能够将应用程序部署到集群。我们没有看到任何端口与 OTEL 代理和应用程序发生冲突。据我们所知,代理人和泽西岛之间可能存在某种冲突,但我们不知道是什么。

有人在使用 OpenTelemetry 和 SpringBoot/Jersey 应用程序时遇到过类似的问题吗?

一些

application.properties

# These application properties allow Spring Boot Actuator to handle `/api/users/actuator/*` requests,
# while `/api/users/v2/*` requests will be handled by the application & Jersey endpoints
server.servlet.context-path=/api/users
spring.jersey.application-path=/v2

使用 splunk_otel_java:https://github.com/signalfx/splunk-otel-java

java spring-boot jersey spring-boot-actuator open-telemetry
1个回答
0
投票

我们通过将 OTel Java Agent 升级到 v1.22 解决了这个问题。似乎旧版本(在我们的例子中是 1.18)有某种不明显的神秘端口冲突。

© www.soinside.com 2019 - 2024. All rights reserved.