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

Metric kube_pod_container_status_last_terminated_reason representation in Metricbeat #27840

Closed
sanjaruzic opened this issue Sep 9, 2021 · 1 comment · Fixed by #30306
Closed
Assignees
Labels
kubernetes Enable builds in the CI for kubernetes Metricbeat Metricbeat Team:Integrations Label for the Integrations team

Comments

@sanjaruzic
Copy link

sanjaruzic commented Sep 9, 2021

Describe the enhancement:
See the last termination reason of a running container in Metricbeat

Describe a specific use case for the enhancement or feature:

Metricbeat is deployed by the official Elastic Helm chart in conjunction with kube-state-metrics (all done by the Metricbeat Helm chart).

To find out the restart reason, the only metric available is kubernetes.container.status.reason
(docs).
This will only be reported in a Metricbeat's fetch when the container/pod is actually down. In incidents the customer experiences, the pod is restarting so fast, there is only a little chance to capture this event.

kube-state-metrics has the metric kube_pod_container_status_last_terminated_reason (added here) to see the last termination reason of a running container.

However, this metric is not represented/fetched in Metricbeat. The user wishes this feature as a part of Metricbeat.

@sanjaruzic sanjaruzic added Metricbeat Metricbeat kubernetes Enable builds in the CI for kubernetes labels Sep 9, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 9, 2021
@jsoriano jsoriano added the Team:Integrations Label for the Integrations team label Sep 13, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Sep 13, 2021
@tetianakravchenko tetianakravchenko self-assigned this Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kubernetes Enable builds in the CI for kubernetes Metricbeat Metricbeat Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants