Skip to content

Commit

Permalink
Do not collect dashboards from Functionbeat (#13221)
Browse files Browse the repository at this point in the history
As we do not provide dashboards for Functionbeat, there is no need to collect them.
  • Loading branch information
kvch authored Aug 12, 2019
1 parent 913b254 commit fd30cbb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@ import (
)

var (
// Beats is a list of Beats to collect dashboards from.
Beats = []string{
// BeatsWithDashboards is a list of Beats to collect dashboards from.
BeatsWithDashboards = []string{
"heartbeat",
"journalbeat",
"packetbeat",
"winlogbeat",
"x-pack/auditbeat",
"x-pack/filebeat",
"x-pack/metricbeat",
"x-pack/functionbeat",
}
)

Expand All @@ -66,7 +65,7 @@ func PackageBeatDashboards() error {
OutputFile: "build/distributions/dashboards/{{.Name}}-{{.Version}}{{if .Snapshot}}-SNAPSHOT{{end}}",
}

for _, beatDir := range Beats {
for _, beatDir := range BeatsWithDashboards {
// The generated dashboard content is moving in the build dir, but
// not all projects have been updated so detect which dir to use.
dashboardDir := filepath.Join(beatDir, "build/kibana")
Expand Down

0 comments on commit fd30cbb

Please sign in to comment.