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] Add priority to dynamic input provider mappings #22352

Merged
merged 3 commits into from
Nov 6, 2020

Conversation

blakerouse
Copy link
Contributor

@blakerouse blakerouse commented Nov 2, 2020

What does this PR do?

Adds a priority to the AddOrUpdate function on the communication channel for a dynamic composable input provider.

Why is it important?

This is used by the composable inputs controller to sort the mappings of a provider by priority before parsing them for the generated AST configuration for the running Elastic Agent. This ensures that matching of variables in the configuration happens based on the priority so lower priority processors are used over the higher priority processors. (lower wins)

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

@blakerouse blakerouse self-assigned this Nov 2, 2020
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Nov 2, 2020
@blakerouse blakerouse marked this pull request as ready for review November 2, 2020 15:30
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ingest-management (Team:Ingest Management)

@elasticmachine
Copy link
Collaborator

elasticmachine commented Nov 2, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #22352 updated]

  • Start Time: 2020-11-06T15:24:19.703+0000

  • Duration: 23 min 24 sec

Test stats 🧪

Test Results
Failed 0
Passed 1396
Skipped 4
Total 1400

@elasticmachine
Copy link
Collaborator

elasticmachine commented Nov 2, 2020

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 1396
Skipped 4
Total 1400

Copy link
Contributor

@exekias exekias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good to me! I left a question on the default scope

also pinging @jsoriano @ChrsMark in case you have some input here

@blakerouse blakerouse merged commit 8b2cebb into elastic:master Nov 6, 2020
@blakerouse blakerouse deleted the agent-dynamic-priority branch November 6, 2020 15:52
blakerouse added a commit to blakerouse/beats that referenced this pull request Nov 6, 2020
…tic#22352)

* Add priority to dynamic input provider mappings.

* Add changelog.

* Update config.go

(cherry picked from commit 8b2cebb)
blakerouse added a commit that referenced this pull request Nov 6, 2020
…) (#22470)

* Add priority to dynamic input provider mappings.

* Add changelog.

* Update config.go

(cherry picked from commit 8b2cebb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants