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

Introduce log message for not supported annotations for Hints based autodiscover of Elastic Agent #3064

Closed
5 tasks done
gizas opened this issue Jul 12, 2023 · 0 comments
Closed
5 tasks done
Assignees
Labels
enhancement New feature or request

Comments

@gizas
Copy link
Contributor

gizas commented Jul 12, 2023

Describe the enhancement:

Hints annotation based autodiscover is based on specific annotations that are provided on pods. In more details, the hints mechanism looks for hints in Kubernetes Pod annotations that have the prefix co.elastic.hints. But what if the user specifies an annotation that is not supported or with a typo, this means that no extra configuration will be applied and the autodiscovery will fail with no errors although users will believe that they have configured everything correctly.

This enhancement will compare the provided annotations against a specific list of supported values and will return

Describe a specific use case for the enhancement or feature:

One of the basic annotations is co.elastic.hints/host: Specifies The host to use for metrics retrieval. We had configured our pod with a typo so the annotation provided was co.elastic.hints/hosts. We lost time trying troubleshooting why this was happening. But if we had a message in logs eg. co.elastic.hints/hosts is not recognised as supported annotation, this would help us troubleshoot quicker

What is the definition of done?

  • Introduce the code that will check the provided annotations against the supported list
  • Provide test evidence that enhancement is working
  • Introduce a new test to log specific message
  • Document any new informations for the users on the 'Troubleshooting' section of Hints Autodiscover page

Tasks

Preview Give feedback
  1. Team:Cloudnative-Monitoring
    gizas
  2. Team:Cloudnative-Monitoring Team:Elastic-Agent Team:Elastic-Agent-Control-Plane backport-skip
    gizas
  3. Team:Cloudnative-Monitoring Team:Elastic-Agent
    gizas
  4. Team:Cloudnative-Monitoring Team:Elastic-Agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant