Add a persistent cache for cloudfoundry metadata based on badger#20775
Merged
jsoriano merged 18 commits intoelastic:masterfrom Oct 6, 2020
Merged
Add a persistent cache for cloudfoundry metadata based on badger#20775jsoriano merged 18 commits intoelastic:masterfrom
jsoriano merged 18 commits intoelastic:masterfrom
Conversation
fd5d6a1 to
32ef2e5
Compare
Contributor
099abcf to
1d361e9
Compare
14 tasks
a7ab5d3 to
70b9040
Compare
2d98602 to
18339c2
Compare
Member
Author
|
jenkins run the tests please |
1e7b0f4 to
124a931
Compare
Member
Author
|
jenkins run the tests please |
124a931 to
701fca2
Compare
Member
Author
|
@urso @exekias I am going to open this for review as I would like to reach 7.10, it'd be nice if you could take a look. There are still some "controversial" points, but I think they can be considered non-blockers:
Let me know if you prefer this split in two PRs, one for the cache and another one for the changes for Cloud Foundry. |
exekias
approved these changes
Oct 5, 2020
Contributor
|
LGTM, besides lint issues which need some attention |
Member
Author
|
jenkins run the tests please |
Merged
11 tasks
jsoriano
added a commit
to jsoriano/beats
that referenced
this pull request
Oct 6, 2020
…stic#20775) Cache on disk is used by add_cloudfoundry_metadata. Cache is written into the beats data directory. Objects in cache are serialized using CBOR encoding. Badger DB is added as dependency. (cherry picked from commit 76905a2)
v1v
added a commit
to v1v/beats
that referenced
this pull request
Oct 6, 2020
* upstream/master: [CI] Setup git config globally (elastic#21562) docs: update generate_fields_docs.py (elastic#21359) Add support for additional fields from V2 ALB logs (elastic#21540) Move Prometheus query & remote_write to GA (elastic#21507) feat: add a new step to run the e2e tests for certain parts of Beats (elastic#21100) [Elastic Agent] Add elastic agent ID and version to events from filebeat and metricbeat. (elastic#21543) Release cloudfoundry input and processor as GA (elastic#21525) [Packetbeat] New SIP protocol (elastic#21221) [Filebeat][New Module] Add support for Microsoft MTP / 365 Defender (elastic#21446) [Beats][pytest] Asserting if filebeat logs include errors (elastic#20999) junipersrx-module initial release (elastic#20017) Add a persistent cache for cloudfoundry metadata based on badger (elastic#20775) Add missing changelog entry for cisco umbrella (elastic#21550) [Elastic Agent] Add upgrade CLI to initiate upgrade of Agent locally (elastic#21425) Enable filestream input (elastic#21533) Add filestream input reader (elastic#21481) [CI] fix 'no matches found within 10000' (elastic#21466) Fix billing.go aws.GetStartTimeEndTime (elastic#21531)
This was referenced Oct 7, 2020
This was referenced Oct 14, 2020
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Add a persistent cache on disk for Cloudfoundry metadata, based on badger.
Why is it important?
Improve restart of beats when monitoring very big Cloudfoundry deployments.
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration filesCHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Author's Checklist
Add settings to make it optional?How to test this PR locally
add_cloudfoundry_metadatawith Filebeat or Metricbeat.A way to confirm it is to check the http connections done with a reverse proxy like
mitmproxy.Related issues