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

Elastic-Agent support for selective monitor schema information #1350

Open
gizas opened this issue Sep 28, 2022 · 0 comments
Open

Elastic-Agent support for selective monitor schema information #1350

gizas opened this issue Sep 28, 2022 · 0 comments
Labels
enhancement New feature or request Team:Cloudnative-Monitoring Label for the Cloud Native Monitoring team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@gizas
Copy link
Contributor

gizas commented Sep 28, 2022

Describe the enhancement:
As part of #614 , we would like to implement the selective autodiscovery (hints based) feature in the Managed Elastic Agent scenario. For more information about hints autodiscovery you can see here

With specific feature we would like to be able on elastic-agent side to track events of a kubernetes cluster that include selective monitor data (hints) and upon a new emission of such data to be able to send a pre-defined schema of information towards Elastic Stack.

So main outcomes of this feature are:

Describe a specific use case for the enhancement or feature:
Example provided for use case that user defines a Redis hint to be discovered. The user has enabled auto-discover-hints (hints.enabled:true) on managed agent configuration.

Workflow will be the following:

1.Customer defines following hints block configuration, inside a specific kubernetes pod, under annotations block:

co.elastic.metrics/package: redis
co.elastic.metrics/host: http://localhost:6379
co.elastic.metrics/period: 10s 

** This is where this feature starts:**
2. This annotations config is discovered by kubernetes provider and will be emitted eventually to agent's data to be sent

**Below step will be handled by new feature #1349 **
3. Above data with specific annotations defined, will be saved in a predefined place.

**Below step will be handled by new feature #1347 **
4. Fleet will monitor index updates and if an update-event includes hints block configuration, this will trigger Fleet to perform specific actions needed for the new package installation as described #1347

Note
Work is already done to support selective monitoring on standalone agent (#662 ). If any discrepancies found, both schemas need to be adjusted.

Relevant Links:

Logical Flow

Hints drawio

cc @ChrsMark

@gizas gizas added enhancement New feature or request Team:Cloudnative-Monitoring Label for the Cloud Native Monitoring team labels Sep 28, 2022
@jlind23 jlind23 added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Team:Cloudnative-Monitoring Label for the Cloud Native Monitoring team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

2 participants