Skip to content

Commit c0f42bd

Browse files
authored
Remove Beat generators (#28816)
From 8.0.0, we no longer support building custom Beats. This removes the documentation and the code as well. If someone wants to build their custom Beats, they still can based on 7.16.
1 parent 20d637e commit c0f42bd

70 files changed

Lines changed: 5 additions & 2449 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG-developer.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ The list below covers the major changes between 7.0.0-rc2 and master only.
5656
- Remove Metricbeat EventFetcher and EventsFetcher interface. Use the reporter interface instead. {pull}25093[25093]
5757
- Update Darwin build image to a debian 10 base that increases the MacOS SDK and minimum supported version used in build to 10.14. {issue}24193[24193]
5858
- Removed the `common.Float` type. {issue}28279[28279] {pull}28280[28280] {pull}28376[28376]
59+
- Removed Beat generators. {pull}28816[28816]
5960
- libbeat.logp package forces ECS compliant logs. Logs are JSON formatted. Options to enable ECS/JSON have been removed. {issue}15544[15544] {pull}28573[28573]
6061

6162
==== Bugfixes

Jenkinsfile.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ projects:
22
- "auditbeat"
33
- "deploy/kubernetes"
44
- "filebeat"
5-
# Skipping because they are failing, see https://github.com/elastic/beats/pull/28723
6-
#- "generator"
75
- "heartbeat"
86
- "libbeat"
97
- "metricbeat"

dev-tools/mage/fmt.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,10 @@ func Format() {
5050
mg.Deps(GoImports, PythonAutopep8)
5151
}
5252

53-
// GoImports executes goimports against all .go files in and below the CWD. It
54-
// ignores vendor/ and generator/_templates/ directories.
53+
// GoImports executes goimports against all .go files in and below the CWD.
5554
func GoImports() error {
5655
goFiles, err := FindFilesRecursive(func(path string, _ os.FileInfo) bool {
57-
return filepath.Ext(path) == ".go" &&
58-
!strings.Contains(path, "vendor/") &&
59-
!strings.Contains(path, "generator/_templates/")
56+
return filepath.Ext(path) == ".go"
6057
})
6158
if err != nil {
6259
return err
@@ -84,9 +81,7 @@ func GoImports() error {
8481
// ignores build/ directories.
8582
func PythonAutopep8() error {
8683
pyFiles, err := FindFilesRecursive(func(path string, _ os.FileInfo) bool {
87-
return filepath.Ext(path) == ".py" &&
88-
!strings.Contains(path, "build/") &&
89-
!strings.Contains(path, "vendor/")
84+
return filepath.Ext(path) == ".py" && !strings.Contains(path, "build/")
9085
})
9186
if err != nil {
9287
return err

docs/devguide/contributing.asciidoc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,6 @@ In the pull request, describe what your changes do and mention
3535
any bugs/issues related to the pull request. Please also add a changelog entry to
3636
https://github.com/elastic/beats/blob/master/CHANGELOG.next.asciidoc[CHANGELOG.next.asciidoc].
3737

38-
[float]
39-
[[adding-new-beat]]
40-
=== Adding a New Beat
41-
42-
If you want to create a new Beat, please read <<new-beat>>. You don't need to
43-
submit the code to this repository. Most new Beats start in their own repository
44-
and just make use of the libbeat packages. After you have a working Beat that
45-
you'd like to share with others, open a PR to add it to our list of
46-
https://github.com/elastic/beats/blob/master/libbeat/docs/communitybeats.asciidoc[community
47-
Beats].
48-
4938
[float]
5039
[[setting-up-dev-environment]]
5140
=== Setting Up Your Dev Environment

docs/devguide/create-metricset.asciidoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
=== Creating a Metricset
33

44
A metricset is the part of a Metricbeat module that fetches and structures the
5-
data from the remote service. Each module can have multiple metricsets. In this guide, you learn how to create your own metricset. If you want to create
6-
your own Beat that uses Metricbeat as a library, see <<creating-beat-from-metricbeat>>.
5+
data from the remote service. Each module can have multiple metricsets. In this guide, you learn how to create your own metricset.
76

87
When creating a metricset for the first time, it generally helps to look at the
98
implementation of existing metricsets for inspiration.

docs/devguide/creating-beat-from-metricbeat.asciidoc

Lines changed: 0 additions & 95 deletions
This file was deleted.

docs/devguide/index.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ include::./contributing.asciidoc[]
2121

2222
include::{libbeat-dir}/communitybeats.asciidoc[]
2323

24-
include::./newbeat.asciidoc[]
25-
2624
include::./fields-yml.asciidoc[]
2725

2826
include::./event-conventions.asciidoc[]

docs/devguide/metricbeat-devguide.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ This following topics describe how to contribute to Metricbeat by adding metrics
1818
* <<creating-metricsets>>
1919
* <<metricset-details>>
2020
* <<creating-metricbeat-module>>
21-
* <<creating-beat-from-metricbeat>>
2221
* <<dev-faq>>
2322

2423
If you would like to contribute to Metricbeat or the Beats project, also see
@@ -59,6 +58,4 @@ include::./metricset-details.asciidoc[]
5958

6059
include::./create-module.asciidoc[]
6160

62-
include::./creating-beat-from-metricbeat.asciidoc[]
63-
6461
include::./faq.asciidoc[]

0 commit comments

Comments
 (0)