-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[Telemetry] Snapshot telemetry for health API as part of _xpack/health #90877
Labels
:Data Management/Health
>enhancement
Team:Data Management
Meta label for data/management team
v8.7.0
Comments
Pinging @elastic/es-data-management (Team:Data Management) |
Tasks:
|
elasticsearchmachine
pushed a commit
that referenced
this issue
Nov 18, 2022
This PR introduces the collectors of the health API telemetry. Our target telemetry has the following shape: ``` { "invocations": { "total": 22, "verbose_true": 12, "verbose_false": 10 }, "statuses": { "green": 10, "yellow": 4, "red": 8, "values": ["green", "yellow", "red"] }, "indicators": { "red" : { "master_stability": 2, "ilm":2, "slm": 4, "values": ["master_stability", "ilm", "slm"] }, "yellow": { "disk": 1, "shards_availability": 1, "master_stability": 2, "values": ["disk", "shards_availability", "master_stability"] } }, "diagnoses": { "red": { "elasticsearch:health:shards_availability:primary_unassigned": 1, "elasticsearch:health:disk:add_disk_capacity_master_nodes": 3, "values": ["elasticsearch:health:shards_availability:primary_unassigned", "elasticsearch:health:disk:add_disk_capacity_master_nodes"] }, "yellow": { "elasticsearch:health:disk:add_disk_capacity_data_nodes": 1, "values": [""elasticsearch:health:disk:add_disk_capacity_data_nodes"] } } } ``` This PR introduces the thread safe `Counters` class and the `HealthApiStats` which keeps keeps of the metrics above based on the health api responses that it encounters. The `HealthApiStatsAction` collects the `HealthApiStats` of all nodes. Part of: #90877
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Data Management/Health
>enhancement
Team:Data Management
Meta label for data/management team
v8.7.0
We'd like to report an overview of the health API diagnostics to be able to answer the following questions:
The output might look like this:
The text was updated successfully, but these errors were encountered: