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

Include kubernetes pod status phase in provider metadata #6154

Open
Alphayeeeet opened this issue Nov 27, 2024 · 2 comments
Open

Include kubernetes pod status phase in provider metadata #6154

Alphayeeeet opened this issue Nov 27, 2024 · 2 comments
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@Alphayeeeet
Copy link

Alphayeeeet commented Nov 27, 2024

Describe the enhancement:

As Cronjobs and Jobs have pod status phase lifecycle, there should be a flag for the phase like "Running", "Container creating", "Completed" etc.

Describe a specific use case for the enhancement or feature:
We try to implement annotations based autodiscovery via condition for scraping prometheus metrics. Unfortunately we have cronjobs with metrics, that complete on some point, from which on they should be ignored by the Prometheus integration. To achieve that, a condition for checking completed jobs is necessary.

What is the definition of done?

The kubernetes metadata provider should include this field. As a followup, condition checks can be built, to exclude pods that are completed.

As reference the doc, for the currently available metadata fields: https://www.elastic.co/guide/en/fleet/current/kubernetes-provider.html

@Alphayeeeet
Copy link
Author

Since the update to 8.16.1, the prometheus integration now goes degraded after a timout, which causes the entire agent to become unhealthy. Is this expected bahviour?

@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Nov 27, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

3 participants