Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to include the broker healthCheck status in the broker metrics. #20146

Open
2 tasks done
vineeth1995 opened this issue Apr 20, 2023 · 1 comment
Open
2 tasks done
Labels
Stale type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Comments

@vineeth1995
Copy link
Contributor

vineeth1995 commented Apr 20, 2023

Search before asking

  • I searched in the 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?

  • I'm willing to submit a PR!
@github-actions
Copy link

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

@github-actions github-actions bot added the Stale label May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

No branches or pull requests

1 participant