Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes module for metricbeat #3916

Merged
merged 2 commits into from
Apr 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
90 changes: 90 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ grouped in the following categories:
* <<exported-fields-haproxy>>
* <<exported-fields-jolokia>>
* <<exported-fields-kafka>>
* <<exported-fields-kubelet>>
* <<exported-fields-memcached>>
* <<exported-fields-mongodb>>
* <<exported-fields-mysql>>
Expand Down Expand Up @@ -3329,6 +3330,95 @@ type: keyword
Broker address


[[exported-fields-kubelet]]
== kubelet Fields

beta[]
kubelet Module



[float]
== kubelet Fields




[float]
== container Fields

node



[float]
=== kubelet.container.example

type: keyword

Example field


[float]
== node Fields

node



[float]
=== kubelet.node.example

type: keyword

Example field


[float]
== pod Fields

node



[float]
=== kubelet.pod.example

type: keyword

Example field


[float]
== system Fields

node



[float]
=== kubelet.system.example

type: keyword

Example field


[float]
== volume Fields

node



[float]
=== kubelet.volume.example

type: keyword

Example field


[[exported-fields-memcached]]
== memcached Fields

Expand Down
53 changes: 53 additions & 0 deletions metricbeat/docs/modules/kubelet.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
////
This file is generated! See scripts/docs_collector.py
////

[[metricbeat-module-kubelet]]
== kubelet Module

This is the kubelet Module.



[float]
=== Example Configuration

The kubelet module supports the standard configuration options that are described
in <<configuration-metricbeat>>. Here is an example configuration:

[source,yaml]
----
metricbeat.modules:
#- module: kubelet
# metricsets: ["node","container","volume","pod","system"]
# enabled: true
# period: 10s
# hosts: ["localhost:10255"]

----

[float]
=== Metricsets

The following metricsets are available:

* <<metricbeat-metricset-kubelet-container,container>>

* <<metricbeat-metricset-kubelet-node,node>>

* <<metricbeat-metricset-kubelet-pod,pod>>

* <<metricbeat-metricset-kubelet-system,system>>

* <<metricbeat-metricset-kubelet-volume,volume>>

include::kubelet/container.asciidoc[]

include::kubelet/node.asciidoc[]

include::kubelet/pod.asciidoc[]

include::kubelet/system.asciidoc[]

include::kubelet/volume.asciidoc[]

19 changes: 19 additions & 0 deletions metricbeat/docs/modules/kubelet/container.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
////
This file is generated! See scripts/docs_collector.py
////

[[metricbeat-metricset-kubelet-container]]
include::../../../module/kubelet/container/_meta/docs.asciidoc[]


==== Fields

For a description of each field in the metricset, see the
<<exported-fields-kubelet,exported fields>> section.

Here is an example document generated by this metricset:

[source,json]
----
include::../../../module/kubelet/container/_meta/data.json[]
----
19 changes: 19 additions & 0 deletions metricbeat/docs/modules/kubelet/node.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
////
This file is generated! See scripts/docs_collector.py
////

[[metricbeat-metricset-kubelet-node]]
include::../../../module/kubelet/node/_meta/docs.asciidoc[]


==== Fields

For a description of each field in the metricset, see the
<<exported-fields-kubelet,exported fields>> section.

Here is an example document generated by this metricset:

[source,json]
----
include::../../../module/kubelet/node/_meta/data.json[]
----
19 changes: 19 additions & 0 deletions metricbeat/docs/modules/kubelet/pod.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
////
This file is generated! See scripts/docs_collector.py
////

[[metricbeat-metricset-kubelet-pod]]
include::../../../module/kubelet/pod/_meta/docs.asciidoc[]


==== Fields

For a description of each field in the metricset, see the
<<exported-fields-kubelet,exported fields>> section.

Here is an example document generated by this metricset:

[source,json]
----
include::../../../module/kubelet/pod/_meta/data.json[]
----
19 changes: 19 additions & 0 deletions metricbeat/docs/modules/kubelet/system.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
////
This file is generated! See scripts/docs_collector.py
////

[[metricbeat-metricset-kubelet-system]]
include::../../../module/kubelet/system/_meta/docs.asciidoc[]


==== Fields

For a description of each field in the metricset, see the
<<exported-fields-kubelet,exported fields>> section.

Here is an example document generated by this metricset:

[source,json]
----
include::../../../module/kubelet/system/_meta/data.json[]
----
19 changes: 19 additions & 0 deletions metricbeat/docs/modules/kubelet/volume.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
////
This file is generated! See scripts/docs_collector.py
////

[[metricbeat-metricset-kubelet-volume]]
include::../../../module/kubelet/volume/_meta/docs.asciidoc[]


==== Fields

For a description of each field in the metricset, see the
<<exported-fields-kubelet,exported fields>> section.

Here is an example document generated by this metricset:

[source,json]
----
include::../../../module/kubelet/volume/_meta/data.json[]
----
2 changes: 2 additions & 0 deletions metricbeat/docs/modules_list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This file is generated! See scripts/docs_collector.py
* <<metricbeat-module-haproxy,HAProxy>>
* <<metricbeat-module-jolokia,Jolokia>>
* <<metricbeat-module-kafka,kafka>>
* <<metricbeat-module-kubelet,kubelet>>
* <<metricbeat-module-memcached,memcached>>
* <<metricbeat-module-mongodb,MongoDB>>
* <<metricbeat-module-mysql,MySQL>>
Expand All @@ -33,6 +34,7 @@ include::modules/golang.asciidoc[]
include::modules/haproxy.asciidoc[]
include::modules/jolokia.asciidoc[]
include::modules/kafka.asciidoc[]
include::modules/kubelet.asciidoc[]
include::modules/memcached.asciidoc[]
include::modules/mongodb.asciidoc[]
include::modules/mysql.asciidoc[]
Expand Down
6 changes: 6 additions & 0 deletions metricbeat/include/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ import (
_ "github.com/elastic/beats/metricbeat/module/kafka"
_ "github.com/elastic/beats/metricbeat/module/kafka/consumergroup"
_ "github.com/elastic/beats/metricbeat/module/kafka/partition"
_ "github.com/elastic/beats/metricbeat/module/kubelet"
_ "github.com/elastic/beats/metricbeat/module/kubelet/container"
_ "github.com/elastic/beats/metricbeat/module/kubelet/node"
_ "github.com/elastic/beats/metricbeat/module/kubelet/pod"
_ "github.com/elastic/beats/metricbeat/module/kubelet/system"
_ "github.com/elastic/beats/metricbeat/module/kubelet/volume"
_ "github.com/elastic/beats/metricbeat/module/memcached"
_ "github.com/elastic/beats/metricbeat/module/memcached/stats"
_ "github.com/elastic/beats/metricbeat/module/mongodb"
Expand Down
8 changes: 8 additions & 0 deletions metricbeat/metricbeat.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,14 @@ metricbeat.modules:
#username: ""
#password: ""

#------------------------------- kubelet Module ------------------------------
#- module: kubelet
# metricsets: ["node","container","volume","pod","system"]
# enabled: true
# period: 10s
# hosts: ["localhost:10255"]


#------------------------------ memcached Module -----------------------------
- module: memcached
metricsets: ["stats"]
Expand Down
6 changes: 6 additions & 0 deletions metricbeat/module/kubelet/_meta/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#- module: kubelet
# metricsets: ["node","container","volume","pod","system"]
# enabled: true
# period: 10s
# hosts: ["localhost:10255"]

4 changes: 4 additions & 0 deletions metricbeat/module/kubelet/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
== kubelet Module

This is the kubelet Module.

12 changes: 12 additions & 0 deletions metricbeat/module/kubelet/_meta/fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- key: kubelet
title: "kubelet"
description: >
beta[]

kubelet Module
short_config: false
fields:
- name: kubelet
type: group
description: >
fields:
Loading