简体   繁体   English

在 Java/Spring 中监控第三方 HTTP 服务

[英]Monitor third party HTTP service in Java / Spring

How should I monitor a HTTP service from within Spring or Java?我应该如何从 Spring 或 Java 中监控 HTTP 服务?
It's third party dependency my service critically relies upon.这是我的服务严重依赖的第三方依赖性。

Currently I would build my health check around a HttpRequest.目前我会围绕 HttpRequest 构建我的健康检查。
Is there any other way to query an HTTP service?还有其他方法可以查询 HTTP 服务吗? A sophiticated ping alternative?一个复杂的 ping 替代方案?

The dependency has no health endpoint, only a basic login screen.该依赖项没有健康端点,只有一个基本的登录屏幕。
It's a cloud service hosted aa cloud provider.它是由云提供商托管的云服务。

The only way to tell if an HTTP service is responsive is to send it an HTTP request.判断 HTTP 服务是否响应的唯一方法是向它发送 HTTP 请求。

If the service responds to something else, that might prove that it's running, but not that it's responsive to HTTP requests.如果服务响应其他内容,则可能证明它正在运行,但不能证明它响应 HTTP 请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM