Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
557706e
Renaming anchor for beats common fields
ycombinator Jun 20, 2019
b843fa0
Removing extraneous file accidentally checked in
ycombinator Jun 20, 2019
20f2211
Adding beats module with stats metricset
ycombinator May 13, 2019
14e760b
Rename argument for clarity
ycombinator May 20, 2019
38c4b4d
Adding tests
ycombinator May 20, 2019
a4c1d1f
Adding tests + sample data
ycombinator Jun 17, 2019
3fb7030
Removing debugging statements
ycombinator Jun 17, 2019
ae9b43a
Regenerating data.json file
ycombinator Jun 17, 2019
564e5d7
Result of running make update
ycombinator Jun 17, 2019
80f6f87
Trying a different host name
ycombinator Jun 18, 2019
98106b8
Stubbing out xpack code path
ycombinator Jun 18, 2019
a819586
Fixing service name in system test
ycombinator Jun 18, 2019
3cb3139
Fleshing out TODOs
ycombinator Jun 18, 2019
ad75bb6
Fixing index name
ycombinator Jun 18, 2019
9843f38
Renaming module name from beats to beat
ycombinator Jun 19, 2019
3e9ff21
Regenerating data.json file
ycombinator Jun 19, 2019
b202ae5
Update metricbeat/docker-compose.yml
ycombinator Jun 19, 2019
7360ebe
Update metricbeat/module/beat/_meta/config.reference.yml
ycombinator Jun 19, 2019
c9c50d4
Update metricbeat/metricbeat.reference.yml
ycombinator Jun 19, 2019
0d1944d
Update metricbeat/docker-compose.yml
ycombinator Jun 19, 2019
c5c954b
Update metricbeat/module/beat/_meta/config-xpack.yml
ycombinator Jun 19, 2019
3189e4c
Update metricbeat/module/beat/_meta/config.yml
ycombinator Jun 19, 2019
a9d2fec
Update metricbeat/docker-compose.yml
ycombinator Jun 19, 2019
56ebe7c
Update metricbeat/modules.d/beat-xpack.yml.disabled
ycombinator Jun 19, 2019
aa56839
Update x-pack/metricbeat/metricbeat.reference.yml
ycombinator Jun 19, 2019
3198cd3
Update metricbeat/modules.d/beat.yml.disabled
ycombinator Jun 19, 2019
1626576
Renaming system test
ycombinator Jun 19, 2019
d09091b
Regenerating files
ycombinator Jun 19, 2019
82fcefb
Trying to use the new testdata framework
ycombinator Jun 19, 2019
06faf32
Renaming service to avoid naming collision
ycombinator Jun 19, 2019
71a8cb0
Adding back data_test.go
ycombinator Jun 19, 2019
ea37564
Fixing HTTP server hostname
ycombinator Jun 19, 2019
9f8f2d0
Trying localhost
ycombinator Jun 19, 2019
48a696d
Fixing inconsistencies
ycombinator Jun 19, 2019
9041773
Fixing typo
ycombinator Jun 19, 2019
d7c128b
Make runtime optional as it is absent in older versions of Beats
ycombinator Jun 19, 2019
6e4b903
Updates from make update
ycombinator Jun 20, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions metricbeat/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
env_file:
- ./module/aerospike/_meta/env
- ./module/apache/_meta/env
- ./module/beat/_meta/env
- ./module/ceph/_meta/env
- ./module/consul/_meta/env
- ./module/couchbase/_meta/env
Expand Down Expand Up @@ -63,6 +64,11 @@ services:
ports:
- 80

metricbeat:
build: ./module/beat/_meta
ports:
- 5066

ceph:
build: ./module/ceph/_meta
ports:
Expand Down
226 changes: 226 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ grouped in the following categories:
* <<exported-fields-apache>>
* <<exported-fields-aws>>
* <<exported-fields-beat-common>>
* <<exported-fields-beat>>
* <<exported-fields-ceph>>
* <<exported-fields-cloud>>
* <<exported-fields-common>>
Expand Down Expand Up @@ -1568,6 +1569,231 @@ type: keyword

Time series instance id

--

[[exported-fields-beat]]
== Beat fields

Beat module



[float]
== beat fields




*`beat.id`*::
+
--
type: keyword

Beat ID.


--

*`beat.type`*::
+
--
type: keyword

Beat type.


--

[float]
== stats fields

Beat stats



*`beat.stats.uptime.ms`*::
+
--
type: long

Beat uptime


--

*`beat.stats.runtime.goroutines`*::
+
--
type: long

Number of goroutines running in Beat


--

[float]
== libbeat fields

Fields common to all Beats



[float]
== output fields

Output stats



*`beat.stats.libbeat.output.type`*::
+
--
type: keyword

Type of output


--

[float]
== events fields

Event counters



*`beat.stats.libbeat.output.events.acked`*::
+
--
type: long

Number of events acknowledged


--

*`beat.stats.libbeat.output.events.active`*::
+
--
type: long

Number of active events


--

*`beat.stats.libbeat.output.events.batches`*::
+
--
type: long

Number of event batches


--

*`beat.stats.libbeat.output.events.dropped`*::
+
--
type: long

Number of events dropped


--

*`beat.stats.libbeat.output.events.duplicates`*::
+
--
type: long

Number of events duplicated


--

*`beat.stats.libbeat.output.events.failed`*::
+
--
type: long

Number of events failed


--

*`beat.stats.libbeat.output.events.toomany`*::
+
--
type: long

Number of too many events


--

*`beat.stats.libbeat.output.events.total`*::
+
--
type: long

Total number of events


--

[float]
== read fields

Read stats



*`beat.stats.libbeat.output.read.bytes`*::
+
--
type: long

Number of bytes read


--

*`beat.stats.libbeat.output.read.errors`*::
+
--
type: long

Number of read errors


--

[float]
== write fields

Write stats



*`beat.stats.libbeat.output.write.bytes`*::
+
--
type: long

Number of bytes written


--

*`beat.stats.libbeat.output.write.errors`*::
+
--
type: long

Number of write errors


--

[[exported-fields-ceph]]
Expand Down
2 changes: 2 additions & 0 deletions metricbeat/include/list.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions metricbeat/metricbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@ metricbeat.modules:
# Password of hosts. Empty by default
#password: password

#-------------------------------- Beat Module --------------------------------
- module: beat
metricsets:
- stats
period: 10s
hosts: ["http://localhost:5066"]
#ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

# Set to true to send data collected by module to X-Pack
# Monitoring instead of metricbeat-* indices.
#xpack.enabled: false

#-------------------------------- Ceph Module --------------------------------
- module: ceph
metricsets: ["cluster_disk", "cluster_health", "monitor_health", "pool_disk", "osd_tree"]
Expand Down
6 changes: 6 additions & 0 deletions metricbeat/module/beat/_meta/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM docker.elastic.co/beats/metricbeat:7.0.0

COPY healthcheck.sh /
HEALTHCHECK --interval=1s --retries=300 CMD sh /healthcheck.sh

ENTRYPOINT [ "metricbeat", "-E", "http.enabled=true", "-E", "http.host=0.0.0.0" ]
9 changes: 9 additions & 0 deletions metricbeat/module/beat/_meta/config-xpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- module: beat
metricsets:
- stats
period: 10s
hosts: ["http://localhost:5066"]
#username: "user"
#password: "secret"
xpack.enabled: true

10 changes: 10 additions & 0 deletions metricbeat/module/beat/_meta/config.reference.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- module: beat
metricsets:
- stats
period: 10s
hosts: ["http://localhost:5066"]
#ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

# Set to true to send data collected by module to X-Pack
# Monitoring instead of metricbeat-* indices.
#xpack.enabled: false
6 changes: 6 additions & 0 deletions metricbeat/module/beat/_meta/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- module: beat
metricsets:
- stats
period: 10s
hosts: ["http://localhost:5066"]

2 changes: 2 additions & 0 deletions metricbeat/module/beat/_meta/env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BEAT_HOST=metricbeat
BEAT_PORT=5066
20 changes: 20 additions & 0 deletions metricbeat/module/beat/_meta/fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- key: beat
title: "Beat"
description: >
Beat module
release: ga
settings: ["ssl", "http"]
short_config: false
fields:
- name: beat
type: group
description: >
fields:
- name: id
type: keyword
description: >
Beat ID.
- name: type
type: keyword
description: >
Beat type.
6 changes: 6 additions & 0 deletions metricbeat/module/beat/_meta/healthcheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

# Check that all endpoints are available
curl -f http://localhost:5066 || exit 1
curl -f http://localhost:5066/stats || exit 1
curl -f http://localhost:5066/state || exit 1
Loading