Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

ISSUE-20146: Add support to include the broker healthCheck status in the broker metrics. #5728

Open
2 tasks done
sijie opened this issue Apr 20, 2023 · 0 comments
Open
2 tasks done

Comments

@sijie
Copy link
Member

sijie commented Apr 20, 2023

Original Issue: apache#20146


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!
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant