Comments (5)
如下可以支持 successCodes 为 200, 503 时返回正确响应,但是现在没有支持返回的指标有状态码和errorMsg
- name: health
priority: 6
fields:
- field: status
type: 1
protocol: http
http:
host: ^_^host^_^
port: ^_^port^_^
url: ^_^base_path^_^/health
method: GET
ssl: ^_^ssl^_^
authorization:
type: Basic Auth
basicAuthUsername: ^_^username^_^
basicAuthPassword: ^_^password^_^
successCodes: [200, 503]
parseType: default
from hertzbeat.
应该是可以的,你可以加一下
from hertzbeat.
Use JsonPath: https://hertzbeat.apache.org/zh-cn/docs/advanced/extend-http-example-hertzbeat
from hertzbeat.
应该是可以的,你可以加一下
我尝试直接在HTTP API 的 yml 文件的 field 字段中添加 statusCode 和 errorMsg,然而并不能获取到信息,是哪里有遗漏吗?
from hertzbeat.
Use JsonPath: https://hertzbeat.apache.org/zh-cn/docs/advanced/extend-http-example-hertzbeat
但 JsonPath 解析方式要求接口返回的内容必须为 Json 格式,但在某些时间并不能保证
例如某个接口经由 Nginx 进行代理,正常响应的情况下接口的确会返回 Json 格式,但当接口异常, Nginx 回报 HTTP 502 or 504 的时候,格式会变成 HTML,这个时候使用 JsonPath 解析应该会出现异常
from hertzbeat.
Related Issues (20)
- 1.6版本oracle数据库连接有问题 HOT 1
- [Question]store real-time metrics data not support redis-cluster? HOT 4
- [BUG] jpa expired data clean error HOT 3
- 建议将项目中的 Server酱 链接换成推荐链接 HOT 1
- [BUG] <Test> HostParamValidator vailt util is failed for `https://www.baidu.com` HOT 1
- [BUG] 添加自定义监控模板报错 HOT 7
- [Question] customer template seem incorrect loading HOT 15
- [Question] <title>When adding monitoring, the minimum monitoring period is 30 seconds. Can this limit be adjusted according to demand HOT 9
- [Question] iotdb cannot connected HOT 6
- [Question] <title>Linux process HOT 1
- [BUG] macos collect centos`s metrics connect error
- [EMAIL STARTTLS] <SMTPSendFailedException> HOT 4
- [Question] monitoring alarm HOT 1
- [BUG] AlertDefineExcelImExportServiceImpl#writeOS exec failed. HOT 2
- [Question] The master branch image cannot be started after creation HOT 3
- [Question] The number of ssh connections is full, resulting in failure to connect to the server HOT 2
- [Question] The master branch code does not work when I specify the collector for the task (rather than the default system scheduling) HOT 3
- [Question] Urgent need for global or environment variables HOT 3
- [Task] <java ssh connect prop CoreModuleProperties HEARTBEAT_REPLY_WAIT to HEARTBEAT_NO_REPLY_MAX > HOT 1
- [Task] Urgent need for global or environment variables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hertzbeat.