tomsun28 commented on issue #2284:
URL: https://github.com/apache/hertzbeat/issues/2284#issuecomment-2230812214

   如下可以支持 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
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to