Skip to content

Commit 272615e

Browse files
ruflinjsoriano
authored andcommitted
Move heartbeat dashboards to monitors (#7260)
Apply decoding of dashboards also to Heartbeat. See #7224 for more details.
1 parent 9462a10 commit 272615e

11 files changed

+713
-134
lines changed

heartbeat/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
heartbeat
66

7-
_meta/kibana/*/index-pattern
7+
_meta/kibana
88

99
build
1010
/tests/load/logs

heartbeat/Makefile

+10-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ before-build:
1515

1616
# Collects all dependencies and then calls update
1717
.PHONY: collect
18-
collect: fields imports
18+
collect: fields imports kibana
1919

2020
# Generate imports for all monitors
2121
.PHONY: imports
@@ -27,3 +27,12 @@ imports: python-env
2727
.PHONY: create-monitor
2828
create-monitor:
2929
go run scripts/generate_monitor/main.go -monitor=${MONITOR}
30+
31+
# Collects all module dashboards
32+
.PHONY: kibana
33+
kibana:
34+
@rm -rf _meta/kibana
35+
@mkdir -p _meta/kibana
36+
@-cp -r monitors/active/*/_meta/kibana _meta/
37+
@# Convert all dashboards to string
38+
@python ${ES_BEATS}/libbeat/scripts/unpack_dashboards.py --glob="./_meta/kibana/6/dashboard/*.json"

heartbeat/_meta/kibana/6/dashboard/Heartbeat-http-monitor.json

-132
This file was deleted.

0 commit comments

Comments
 (0)