Skip to content

Add pod.status_reason and pod.status.ready_time fields state_pod data stream #10406

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

Merged

Conversation

MichaelKatsoulis
Copy link
Contributor

Proposed commit message

  • WHAT: Enhance kubernetes state_pod metricset with kubernetes.pod.status_reason and kubernetes.pod.status.ready_time fields.
  • WHY: Useful new metrics that indicate the reason a pod might not be in a desired state and the time it took for a pod to become ready.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

  1. create local k8s cluster: kind create cluster
  2. install stack: elastic-package-0.98.2 stack up -d -v --version=8.15.0-SNAPSHOT
  3. Install kubernetes integration version 1.63.0 and assign it to policy and a managed agent
  4. Create a pod with a low resources.limits.memory to cause OOMKilled

Related issues

Screenshots

@MichaelKatsoulis MichaelKatsoulis requested a review from a team as a code owner July 8, 2024 08:52
@elasticmachine
Copy link

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@elasticmachine
Copy link

💚 Build Succeeded

History

Copy link

@MichaelKatsoulis MichaelKatsoulis merged commit 4d86dbd into elastic:main Jul 9, 2024
5 checks passed
@elasticmachine
Copy link

Package kubernetes - 1.63.0 containing this change is available at https://epr.elastic.co/search?package=kubernetes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants