[Metricbeat/Kibana/Stats] GET /api/status
crashes the agent when 503 status code is received
#33838
Labels
bug
Feature:Stack Monitoring
impact:critical
Immediate priority; high value or cost to the product.
Module:kibana
Kibana Beats modules
Team:Monitoring
Stack Monitoring team
Metricbeat's Kibana module uses the
GET /api/status
in some places:status
metricset:beats/metricbeat/module/kibana/status/status.go
Line 41 in a1a6bd8
stats
metricset:beats/metricbeat/module/kibana/stats/stats.go
Lines 90 to 93 in a1a6bd8
When any of the core services in Kibana is not available, the
GET /api/status
returns503
while the body keeps the expected 200 body structure.Running ECK locally, I noticed that the Kibana k8s service takes longer to start when the
monitoring.metrics
options set up because themetricbeat
container bootloop-crashes (with backoff retries) while Kibana fully starts up andGET /api/status
returns200
.For details about how to set up a monitoring architecture in k8s, follow the steps explained in elastic/kibana#145558 (comment)
IMO, metricbeat should not crash on 503 and, on top of that, still process the response body for the Kibana metricsets.
The text was updated successfully, but these errors were encountered: