Introduce log message for not supported annotations for Hints based autodiscover of Elastic Agent #3064
Closed
5 tasks done
Labels
enhancement
New feature or request
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 wasco.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 quickerWhat is the definition of done?
Tasks
The text was updated successfully, but these errors were encountered: