You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "vineeth1995 (via GitHub)" <gi...@apache.org> on 2023/04/20 00:49:49 UTC

[GitHub] [pulsar] vineeth1995 opened a new issue, #20146: Add support to include the broker healthCheck status in the broker metrics.

vineeth1995 opened a new issue, #20146:
URL: https://github.com/apache/pulsar/issues/20146

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Motivation
   
   Broker metrics don't have anything to indicate health of the broker (to indicate if broker is active). In Prometheus broker metrics which are used for monitoring, it will be useful if metrics also show the broker health. Prometheus can automatically scrape the broker state and can be used for monitoring purposes. So, add support to include the broker active status in the broker metrics.
   
   Ex:
   
   URL: http://localhost:8080/metrics
   :
   # 1 shows broker is active, 0 is inactive, -1 unknown
   pulsar_health 1
   
   ### Solution
   
   Allow periodic task to capture broker's health state and report to metrics, it should be controlled by config and by default it will be disabled.
   
   ### Alternatives
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add support to include the broker healthCheck status in the broker metrics. [pulsar]

Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat commented on issue #20146:
URL: https://github.com/apache/pulsar/issues/20146#issuecomment-6376823736

   Thanks @vineeth1995 for the proposal and the implementation. This was added by #20147 (milestone 4.0.0). When `healthCheckMetricsUpdateTimeInSeconds` is set to a positive value, the broker runs its health check periodically and exposes the result as the `pulsar_health` metric (1 healthy, 0 unhealthy, -1 unknown). If anything is still missing on a currently supported release, please reopen or open a new issue.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] github-actions[bot] commented on issue #20146: Add support to include the broker healthCheck status in the broker metrics.

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20146:
URL: https://github.com/apache/pulsar/issues/20146#issuecomment-1555421993

   The issue had no activity for 30 days, mark with Stale label.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add support to include the broker healthCheck status in the broker metrics. [pulsar]

Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat closed issue #20146: Add support to include the broker healthCheck status in the broker metrics. 
URL: https://github.com/apache/pulsar/issues/20146


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org